Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve committed Jul 5, 2023
1 parent 23cd81a commit 47a917e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/vue-language-core/src/generators/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,12 +481,9 @@ declare function defineProp<T>(value?: T | (() => T), required?: boolean, rest?:
`.trim() + '\n');
}

const scriptSetupGeneratedOffset = muggle.getLength(codes) - scriptSetupRanges.importSectionEndOffsetWithComment;
console.log(muggle.toString(codes))
const scriptSetupGeneratedOffset = muggle.getLength(codes) - scriptSetupRanges.importSectionEndOffsetWithoutComment;

addVirtualCode('scriptSetup', scriptSetupRanges.importSectionEndOffsetWithComment);

console.log(muggle.toString(codes))
addVirtualCode('scriptSetup', scriptSetupRanges.importSectionEndOffsetWithoutComment);

if (scriptSetupRanges.propsTypeArg && scriptSetupRanges.withDefaultsArg) {
// fix https://github.com/vuejs/language-tools/issues/1187
Expand Down

0 comments on commit 47a917e

Please sign in to comment.