Skip to content

Commit 67032a5

Browse files
authored
Merge pull request zignd#54 from bypatryk/master
Added support for Vue Single File Components
2 parents 8e9ef4e + 3c62764 commit 67032a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,14 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
111111
const htmlRegex = /class=["|']([\w- ]*$)/;
112112
const jsxRegex = /className=["|']([\w- ]*$)/;
113113

114-
const html = provideCompletionItemsGenerator('html', htmlRegex)
114+
const html = provideCompletionItemsGenerator('html', htmlRegex);
115+
const vue = provideCompletionItemsGenerator('vue', htmlRegex);
115116
const tsReact = provideCompletionItemsGenerator('typescriptreact', jsxRegex);
116117
const js = provideCompletionItemsGenerator('javascript', jsxRegex)
117118
const jsReact = provideCompletionItemsGenerator('javascriptreact', jsxRegex);
118119

119120
context.subscriptions.push(html);
121+
context.subscriptions.push(vue);
120122
context.subscriptions.push(tsReact);
121123
context.subscriptions.push(js);
122124
context.subscriptions.push(jsReact);

0 commit comments

Comments
 (0)