@@ -22,6 +22,14 @@ defmodule NextLS.CompletionsTest do
22
22
end
23
23
""" )
24
24
25
+ bar = Path . join ( cwd , "my_proj/lib/bar.ex" )
26
+
27
+ File . write! ( bar , """
28
+ defmodule Bar do
29
+ defstruct [:one, :two, :three]
30
+ end
31
+ """ )
32
+
25
33
[ foo: foo , cwd: cwd ]
26
34
end
27
35
@@ -185,7 +193,7 @@ defmodule NextLS.CompletionsTest do
185
193
text: """
186
194
defmodule Foo do
187
195
def run() do
188
- IO.inspect([%URI {])
196
+ IO.inspect([%Bar {])
189
197
:ok
190
198
end
191
199
end
@@ -210,14 +218,9 @@ defmodule NextLS.CompletionsTest do
210
218
}
211
219
212
220
assert_result 2 , [
213
- % { "data" => nil , "documentation" => "" , "insertText" => "port" , "kind" => 5 , "label" => "port" } ,
214
- % { "data" => nil , "documentation" => "" , "insertText" => "scheme" , "kind" => 5 , "label" => "scheme" } ,
215
- % { "data" => nil , "documentation" => "" , "insertText" => "path" , "kind" => 5 , "label" => "path" } ,
216
- % { "data" => nil , "documentation" => "" , "insertText" => "host" , "kind" => 5 , "label" => "host" } ,
217
- % { "data" => nil , "documentation" => "" , "insertText" => "userinfo" , "kind" => 5 , "label" => "userinfo" } ,
218
- % { "data" => nil , "documentation" => "" , "insertText" => "fragment" , "kind" => 5 , "label" => "fragment" } ,
219
- % { "data" => nil , "documentation" => "" , "insertText" => "query" , "kind" => 5 , "label" => "query" } ,
220
- % { "data" => nil , "documentation" => "" , "insertText" => "authority" , "kind" => 5 , "label" => "authority" }
221
+ % { "data" => nil , "documentation" => "" , "insertText" => "one" , "kind" => 5 , "label" => "one" } ,
222
+ % { "data" => nil , "documentation" => "" , "insertText" => "two" , "kind" => 5 , "label" => "two" } ,
223
+ % { "data" => nil , "documentation" => "" , "insertText" => "three" , "kind" => 5 , "label" => "three" }
221
224
]
222
225
end
223
226
0 commit comments