Skip to content

Commit 16a4290

Browse files
committed
Exclude exact matches from user defined identifier completions
1 parent e04b51c commit 16a4290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/requests/completions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function collect_completions(x::StaticLint.Scope, spartial, state::CompletionSta
259259
possible_names = String[]
260260
for n in x.names
261261
resize!(possible_names, 0)
262-
if is_completion_match(n[1], spartial)
262+
if is_completion_match(n[1], spartial) && n[1] != spartial
263263
push!(possible_names, n[1])
264264
end
265265
if (nn = string_macro_altname(n[1]); nn !== nothing) && is_completion_match(nn, spartial)

0 commit comments

Comments
 (0)