Skip to content

Commit

Permalink
feat(vscode): active auto insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 7, 2023
1 parent df8b000 commit 960388d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions extensions/vscode/src/common.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
// activateAutoInsertion,
activateAutoInsertion,
// activateDocumentDropEdit,
// activateFindFileReferences,
// activateReloadProjects,
Expand Down Expand Up @@ -81,14 +81,14 @@ async function doActivate(context: vscode.ExtensionContext, createLc: CreateLang
// doctor.register(context, client);
// componentMeta.register(context, client);

// const supportedLanguages: Record<string, boolean> = {
// vue: true,
// markdown: true,
// javascript: true,
// typescript: true,
// javascriptreact: true,
// typescriptreact: true,
// };
const supportedLanguages: Record<string, boolean> = {
vue: true,
markdown: true,
javascript: true,
typescript: true,
javascriptreact: true,
typescriptreact: true,
};
const selectors: vscode.DocumentFilter[] = [{ language: 'vue' }];

if (config.server.petiteVue.supportHtmlFile) {
Expand All @@ -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);
Expand Down

0 comments on commit 960388d

Please sign in to comment.