Skip to content

Commit eac7125

Browse files
committed
fix(language-core): do not generate __VLS_ctx. after __VLS_dollars.
1 parent eb5f98e commit eac7125

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/language-core/lib/codegen/template/interpolation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ function* generateVar(
178178
if (ctx.dollarVars.has(curVar.text)) {
179179
yield [`__VLS_dollars.`, undefined];
180180
}
181-
yield [`__VLS_ctx.`, undefined];
181+
else {
182+
yield [`__VLS_ctx.`, undefined];
183+
}
182184
yield [code.slice(curVar.offset, curVar.offset + curVar.text.length), curVar.offset];
183185
}
184186
}

0 commit comments

Comments
 (0)