@@ -21,7 +21,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
21
21
22
22
[ diagnostic | _ ] =
23
23
[ build_diagnostic ( message , file , position ) ]
24
- |> Diagnostics . normalize ( root_path )
24
+ |> Diagnostics . normalize ( root_path , Path . join ( root_path , "mix.exs" ) )
25
25
26
26
assert diagnostic . message == """
27
27
(CompileError) some message
@@ -49,7 +49,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
49
49
50
50
[ diagnostic | _ ] =
51
51
[ build_diagnostic ( message , file , position ) ]
52
- |> Diagnostics . normalize ( root_path )
52
+ |> Diagnostics . normalize ( root_path , Path . join ( root_path , "mix.exs" ) )
53
53
54
54
assert diagnostic . message == """
55
55
(CompileError) some message
@@ -73,7 +73,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
73
73
74
74
[ diagnostic | _ ] =
75
75
[ build_diagnostic ( message , file , position ) ]
76
- |> Diagnostics . normalize ( root_path )
76
+ |> Diagnostics . normalize ( root_path , Path . join ( root_path , "mix.exs" ) )
77
77
78
78
assert diagnostic . message == """
79
79
(CompileError) some message
@@ -98,7 +98,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
98
98
99
99
[ diagnostic | _ ] =
100
100
[ build_diagnostic ( message , file , position ) ]
101
- |> Diagnostics . normalize ( root_path )
101
+ |> Diagnostics . normalize ( root_path , Path . join ( root_path , "mix.exs" ) )
102
102
103
103
assert diagnostic . message =~ "(CompileError) some message"
104
104
assert diagnostic . file =~ "umbrella/apps/app2/lib/app2.ex"
@@ -117,7 +117,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
117
117
118
118
[ diagnostic | _ ] =
119
119
[ build_diagnostic ( message , file , position ) ]
120
- |> Diagnostics . normalize ( root_path )
120
+ |> Diagnostics . normalize ( root_path , Path . join ( root_path , "mix.exs" ) )
121
121
122
122
assert diagnostic . message == """
123
123
(CompileError) lib/non_existing.ex:3: some message
@@ -152,7 +152,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
152
152
153
153
[ diagnostic | _ ] =
154
154
[ build_diagnostic ( message , file , position ) ]
155
- |> Diagnostics . normalize ( root_path )
155
+ |> Diagnostics . normalize ( root_path , Path . join ( root_path , "mix.exs" ) )
156
156
157
157
assert diagnostic . position == 13
158
158
end
@@ -172,7 +172,7 @@ defmodule ElixirLS.LanguageServer.DiagnosticsTest do
172
172
173
173
[ diagnostic | _ ] =
174
174
[ build_diagnostic ( message , file , position ) ]
175
- |> Diagnostics . normalize ( root_path )
175
+ |> Diagnostics . normalize ( root_path , Path . join ( root_path , "mix.exs" ) )
176
176
177
177
assert diagnostic . position == 6
178
178
end
0 commit comments