Skip to content

Commit 24fa167

Browse files
authored
Merge pull request #1314 from jwortmann/exclude-exact-user-completion-matches
Exclude exact matches from user defined identifier completions
2 parents d92f409 + 16a4290 commit 24fa167

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)