Skip to content

Commit 4c2a482

Browse files
committed
refactor(language-core): remove semantic highlight of directives
1 parent c4c0413 commit 4c2a482

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ const _codeFeatures = {
5353
navigation: true,
5454
completion: true,
5555
} as VueCodeInformation,
56+
withoutHighlightAndNavigation: {
57+
semantic: { shouldHighlight: () => false },
58+
verification: true,
59+
completion: true,
60+
} as VueCodeInformation,
5661
withoutHighlightAndCompletion: {
5762
semantic: { shouldHighlight: () => false },
5863
verification: true,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function* generateIdentifier(
5959
rawName,
6060
prop.loc.start.offset,
6161
{
62-
...ctx.codeFeatures.all,
62+
...ctx.codeFeatures.withoutHighlight,
6363
verification: false,
6464
completion: {
6565
// fix https://github.com/vuejs/language-tools/issues/1905
@@ -143,7 +143,7 @@ export function* generateModifiers(
143143
ctx,
144144
mod.content,
145145
mod.loc.start.offset,
146-
ctx.codeFeatures.withoutNavigation
146+
ctx.codeFeatures.withoutHighlightAndNavigation
147147
);
148148
yield `: true, `;
149149
}

0 commit comments

Comments
 (0)