Skip to content

Commit

Permalink
fix: script setup first variable jsdoc missing
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Nov 29, 2022
1 parent 6d22b7f commit 0ae6ef6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function parseScriptSetupRanges(ts: typeof import('typescript/lib/tsserve
// fix https://github.com/johnsoncodehk/volar/issues/1223
&& !ts.isImportEqualsDeclaration(node)
) {
importSectionEndOffset = node.getStart(ast);
importSectionEndOffset = node.getStart(ast, true);
foundNonImportExportNode = true;
}
else if (isTypeExport && foundNonImportExportNode) {
Expand Down

0 comments on commit 0ae6ef6

Please sign in to comment.