Skip to content

Commit

Permalink
Merge pull request #1314 from jwortmann/exclude-exact-user-completion…
Browse files Browse the repository at this point in the history
…-matches

Exclude exact matches from user defined identifier completions
  • Loading branch information
pfitzseb authored Aug 19, 2024
2 parents d92f409 + 16a4290 commit 24fa167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/requests/completions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function collect_completions(x::StaticLint.Scope, spartial, state::CompletionSta
possible_names = String[]
for n in x.names
resize!(possible_names, 0)
if is_completion_match(n[1], spartial)
if is_completion_match(n[1], spartial) && n[1] != spartial
push!(possible_names, n[1])
end
if (nn = string_macro_altname(n[1]); nn !== nothing) && is_completion_match(nn, spartial)
Expand Down

0 comments on commit 24fa167

Please sign in to comment.