From 076bb03cb4fad77ab33bba0047580c48450469de Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Tue, 3 May 2022 13:36:20 -0700 Subject: [PATCH] No commit characters for string completions (#148597) --- .../src/languageFeatures/completions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/typescript-language-features/src/languageFeatures/completions.ts b/extensions/typescript-language-features/src/languageFeatures/completions.ts index 3cfb66a4d97..48149e56980 100644 --- a/extensions/typescript-language-features/src/languageFeatures/completions.ts +++ b/extensions/typescript-language-features/src/languageFeatures/completions.ts @@ -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; }