Skip to content

Commit 28308b4

Browse files
committed
fix(language-core): remove semantic code feature on first argument of useTemplateRef
1 parent 303af6c commit 28308b4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/language-core/lib/codegen/codeFeatures.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ const raw = {
6565
semantic: { shouldHighlight: () => false },
6666
verification: true,
6767
},
68+
withoutSemantic: {
69+
verification: true,
70+
navigation: true,
71+
completion: true,
72+
},
6873
} satisfies Record<string, VueCodeInformation>;
6974

7075
export const codeFeatures = raw as {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ function* generateSetupFunction(
236236
const templateRefType = arg
237237
? [
238238
`__VLS_TemplateRefs[`,
239-
generateSfcBlockSection(scriptSetup, arg.start, arg.end, codeFeatures.all),
239+
generateSfcBlockSection(scriptSetup, arg.start, arg.end, codeFeatures.withoutSemantic),
240240
`]`
241241
]
242242
: [`unknown`];

0 commit comments

Comments
 (0)