File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,10 @@ def completion(
237
237
document = server .workspace .get_text_document (params .text_document .uri ),
238
238
position = params .position ,
239
239
)
240
+ char_after_cursor = pygls_utils .char_after_cursor (
241
+ document = server .workspace .get_text_document (params .text_document .uri ),
242
+ position = params .position ,
243
+ )
240
244
jedi_utils .clear_completions_cache ()
241
245
# number of characters in the string representation of the total number of
242
246
# completions returned by jedi.
@@ -245,12 +249,14 @@ def completion(
245
249
jedi_utils .lsp_completion_item (
246
250
completion = completion ,
247
251
char_before_cursor = char_before_cursor ,
252
+ char_after_cursor = char_after_cursor ,
248
253
enable_snippets = enable_snippets ,
249
254
resolve_eagerly = resolve_eagerly ,
250
255
markup_kind = markup_kind ,
251
256
sort_append_text = str (count ).zfill (total_completion_chars ),
252
257
)
253
258
for count , completion in enumerate (completions_jedi )
259
+ if completion .type != "path"
254
260
]
255
261
return (
256
262
CompletionList (is_incomplete = False , items = completion_items )
You can’t perform that action at this time.
0 commit comments