Update doc

This commit is contained in:
bangbangsheshotmedown 2024-11-10 20:18:54 +00:00 committed by GitHub
parent 88f04e5d16
commit 5b95f7187f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -594,7 +594,6 @@ void setCompletions(T)(ref AutocompleteResponse response,
&& (p is null ? true : toUpper(sym.name.data).startsWith(toUpper(p))) && (p is null ? true : toUpper(sym.name.data).startsWith(toUpper(p)))
&& !r.completions.canFind!((a) { && !r.completions.canFind!((a) {
// this filters out similar symbols // this filters out similar symbols
// this is needed because similar symbols can exist do to version conditionals
// fast check first, only compare full definition if it matches // fast check first, only compare full definition if it matches
bool same = a.identifier == sym.name && a.kind == sym.kind; bool same = a.identifier == sym.name && a.kind == sym.kind;
if (same) { if (same) {
@ -622,7 +621,6 @@ void setCompletions(T)(ref AutocompleteResponse response,
&& toUpper(a.name.data).startsWith(toUpper(partial)) && toUpper(a.name.data).startsWith(toUpper(partial))
&& !response.completions.canFind!((r) { && !response.completions.canFind!((r) {
// this filters out similar symbols // this filters out similar symbols
// this is needed because similar symbols can exist do to version conditionals
// fast check first, only compare full definition if it matches // fast check first, only compare full definition if it matches
bool same = (r.identifier == a.name && r.kind == a.kind); bool same = (r.identifier == a.name && r.kind == a.kind);
if (same) { if (same) {