Skip to content

Commit 6e64abd

Browse files
committed
fix: more robust start tag detection
make sure we do the cheaper component/element autocompletion lookup in more cases #2394
1 parent 1d5f3cd commit 6e64abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/language-server/src/plugins/typescript/features/CompletionProvider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ export class CompletionsProviderImpl implements CompletionsProvider<CompletionRe
400400
}
401401

402402
private mightBeAtStartTagWhitespace(document: Document, originalOffset: number) {
403-
return [' ', ' >', ' /'].includes(
403+
return /\s[\s>/]/.test(
404404
document.getText().substring(originalOffset - 1, originalOffset + 1)
405405
);
406406
}

0 commit comments

Comments
 (0)