This commit is contained in:
RUSShyTwo 2023-05-02 03:26:34 +02:00 committed by GitHub
commit 517a1cd9b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 16 deletions

View File

@ -624,10 +624,14 @@ void setCompletions(T)(ref AutocompleteResponse response,
} }
} }
} }
}
if (symbols[0].kind == CompletionKind.structName if (symbols[0].kind == CompletionKind.structName
|| symbols[0].kind == CompletionKind.className) || symbols[0].kind == CompletionKind.className)
{ {
auto constructor = symbols[0].getPartsByName(CONSTRUCTOR_SYMBOL_NAME); auto constructor = symbols[0].getPartsByName(CONSTRUCTOR_SYMBOL_NAME);
if (constructor.length == 0) if (constructor.length == 0)
{ {
// Build a call tip out of the struct fields // Build a call tip out of the struct fields
@ -644,7 +648,7 @@ void setCompletions(T)(ref AutocompleteResponse response,
goto setCallTips; goto setCallTips;
} }
} }
}
setCallTips: setCallTips:
response.completionType = CompletionType.calltips; response.completionType = CompletionType.calltips;
foreach (symbol; symbols) foreach (symbol; symbols)