Skip to content

Commit 59d3096

Browse files
committed
Add the scope to the snippet
1 parent be8b0e9 commit 59d3096

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export function activate(context: vscode.ExtensionContext) {
2727
const snippet = {
2828
[name]: {
2929
prefix: `/${prefixName}`,
30+
scope: editor.document.languageId,
3031
body: [selection],
3132
},
3233
};

0 commit comments

Comments
 (0)