Skip to content

Commit

Permalink
fix: more robust start tag detection
Browse files Browse the repository at this point in the history
make sure we do the cheaper component/element autocompletion lookup in more cases
#2394
  • Loading branch information
dummdidumm committed Jun 24, 2024
1 parent 1d5f3cd commit 6e64abd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export class CompletionsProviderImpl implements CompletionsProvider<CompletionRe
}

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

0 comments on commit 6e64abd

Please sign in to comment.