Skip to content

Commit 9738d8a

Browse files
committed
fix(language-core): fix incorrect syntax for class component virtual code
1 parent cd11190 commit 9738d8a

File tree

1 file changed

+1
-1
lines changed
  • packages/language-core/lib/codegen/script

1 file changed

+1
-1
lines changed

packages/language-core/lib/codegen/script/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function* generateScript(options: ScriptCodegenOptions): Generator<Code,
124124
yield `__VLS_template = () => {${newLine}`;
125125
const templateCodegenCtx = yield* generateTemplate(options, ctx);
126126
yield* generateComponentSelf(options, ctx, templateCodegenCtx);
127-
yield `},${newLine}`;
127+
yield `}${endOfLine}`;
128128
yield generateSfcBlockSection(options.sfc.script, classBlockEnd, options.sfc.script.content.length, codeFeatures.all);
129129
}
130130
}

0 commit comments

Comments
 (0)