diff --git a/extensions/typescript-language-features/src/features/completions.ts b/extensions/typescript-language-features/src/features/completions.ts index da141a3f2440d..ff9eb608df63c 100644 --- a/extensions/typescript-language-features/src/features/completions.ts +++ b/extensions/typescript-language-features/src/features/completions.ts @@ -37,7 +37,8 @@ class MyCompletionItem extends vscode.CompletionItem { if (tsEntry.isRecommended) { // Make sure isRecommended property always comes first // https://github.com/Microsoft/vscode/issues/40325 - this.sortText = '\0' + tsEntry.sortText; + this.sortText = tsEntry.sortText; + this.preselect = true; } else if (tsEntry.source) { // De-prioritze auto-imports // https://github.com/Microsoft/vscode/issues/40311 @@ -594,4 +595,4 @@ export function register( return vscode.languages.registerCompletionItemProvider(selector, new TypeScriptCompletionItemProvider(client, typingsStatus, fileConfigurationManager, commandManager), ...TypeScriptCompletionItemProvider.triggerCharacters); -} \ No newline at end of file +}