Skip to content

Commit 35baa6e

Browse files
committed
feat: completion snippet for v-for
1 parent 7b55e64 commit 35baa6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ export function create(
311311
}
312312

313313
item.sortText = tokens.join('') + (item.sortText ?? item.label);
314+
315+
if (item.label === 'v-for') {
316+
item.textEdit!.newText = item.label + '="$1 in $2"';
317+
}
314318
}
315319
},
316320

0 commit comments

Comments
 (0)