From 960388d93978480316e5dd454b8d261294f91b30 Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Fri, 8 Dec 2023 04:48:57 +0800 Subject: [PATCH] feat(vscode): active auto insertion --- extensions/vscode/src/common.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/extensions/vscode/src/common.ts b/extensions/vscode/src/common.ts index b2712460b0..b2065879fe 100644 --- a/extensions/vscode/src/common.ts +++ b/extensions/vscode/src/common.ts @@ -1,5 +1,5 @@ import { - // activateAutoInsertion, + activateAutoInsertion, // activateDocumentDropEdit, // activateFindFileReferences, // activateReloadProjects, @@ -81,14 +81,14 @@ async function doActivate(context: vscode.ExtensionContext, createLc: CreateLang // doctor.register(context, client); // componentMeta.register(context, client); - // const supportedLanguages: Record = { - // vue: true, - // markdown: true, - // javascript: true, - // typescript: true, - // javascriptreact: true, - // typescriptreact: true, - // }; + const supportedLanguages: Record = { + vue: true, + markdown: true, + javascript: true, + typescript: true, + javascriptreact: true, + typescriptreact: true, + }; const selectors: vscode.DocumentFilter[] = [{ language: 'vue' }]; if (config.server.petiteVue.supportHtmlFile) { @@ -98,7 +98,7 @@ async function doActivate(context: vscode.ExtensionContext, createLc: CreateLang selectors.push({ language: 'markdown' }); } - // activateAutoInsertion([client], document => supportedLanguages[document.languageId]); + activateAutoInsertion([client], document => supportedLanguages[document.languageId]); // TODO: implement auto insert .value // activateDocumentDropEdit(selectors, client); // activateWriteVirtualFiles('volar.action.writeVirtualFiles', client); // activateFindFileReferences('volar.vue.findAllFileReferences', client);