diff --git a/packages/language-server/src/plugins/typescript/features/CompletionProvider.ts b/packages/language-server/src/plugins/typescript/features/CompletionProvider.ts index f620db97e..dae13c72c 100644 --- a/packages/language-server/src/plugins/typescript/features/CompletionProvider.ts +++ b/packages/language-server/src/plugins/typescript/features/CompletionProvider.ts @@ -695,7 +695,7 @@ export class CompletionsProviderImpl implements CompletionsProvider a)) and get autocomplete for component A, + // then a commit character of `.` would auto import the component which is not what we want + if (isSvelteComp) { + return ['>']; + } + // https://github.com/microsoft/vscode/blob/d012408e88ffabd6456c367df4d343654da2eb10/extensions/typescript-language-features/src/languageFeatures/completions.ts#L504 if (!options.checkCommitCharacters) { return undefined;