Skip to content

Commit c23b332

Browse files
committed
fix(language-service): exclude data- attribute completion from sfc level nodes
1 parent 32c3f28 commit c23b332

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/language-service/lib/plugins/vue-sfc.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,11 @@ export function create(): LanguageServicePlugin {
215215
if (!result) {
216216
return;
217217
}
218-
result.items = result.items.filter(item => item.label !== '!DOCTYPE' && item.label !== 'Custom Blocks');
218+
result.items = result.items.filter(item =>
219+
item.label !== '!DOCTYPE' &&
220+
item.label !== 'Custom Blocks' &&
221+
item.label !== 'data-'
222+
);
219223

220224
const tags = sfcDataProvider?.provideTags();
221225

0 commit comments

Comments
 (0)