Skip to content

Commit

Permalink
chore: fix typo (vuejs#3399)
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve committed Jul 13, 2023
1 parent a716e9b commit 378b853
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vue-language-core/src/parsers/scriptSetupRanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ export function parseScriptSetupRanges(
// fix https://github.com/vuejs/language-tools/issues/1223
&& !ts.isImportEqualsDeclaration(node)
) {
const commentRagnes = ts.getLeadingCommentRanges(ast.getFullText(), node.getFullStart());
if (commentRagnes?.length) {
const commentRange = commentRagnes.sort((a, b) => a.pos - b.pos)[0];
const commentRanges = ts.getLeadingCommentRanges(ast.getFullText(), node.getFullStart());
if (commentRanges?.length) {
const commentRange = commentRanges.sort((a, b) => a.pos - b.pos)[0];
importSectionEndOffset = commentRange.pos;
}
else {
Expand Down

0 comments on commit 378b853

Please sign in to comment.