No commit characters for string completions (#148597)

pull/148673/head
Andrew Branch 2022-05-03 13:36:20 -07:00 committed by GitHub
parent a763e90731
commit 076bb03cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ class MyCompletionItem extends vscode.CompletionItem {
}
private static getCommitCharacters(context: CompletionContext, entry: Proto.CompletionEntry): string[] | undefined {
if (entry.kind === PConst.Kind.warning) { // Ambient JS word based suggestion
if (entry.kind === PConst.Kind.warning || entry.kind === PConst.Kind.string) { // Ambient JS word based suggestion, strings
return undefined;
}