Skip to content

Commit

Permalink
Check if vetur is active (#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
IIFelix authored May 15, 2022
1 parent 7d8c939 commit ef8a061
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ export async function activate(context: vscode.ExtensionContext) {

// TODO: tsconfig infos
// TODO: warnings
const vetur = vscode.extensions.getExtension('octref.vetur')
if (vetur && vetur.isActive) {
vscode.window.showWarningMessage(
'Vetur is active. Disable it for Volar to work properly.'
)
}

const tsPaths = getCurrentTsPaths(context);
const tsVersion = shared.getTypeScriptVersion(tsPaths.serverPath);
Expand All @@ -19,7 +25,7 @@ vscode.typescript.version: ${tsVersion}
vscode.typescript-extension.actived: ${!!vscode.extensions.getExtension('vscode.typescript-language-features')}
vue-language-features.version: ${context.extension.packageJSON.version}
typescript-vue-plugin.version: ${vscode.extensions.getExtension('Vue.vscode-typescript-vue-plugin')?.packageJSON.version}
vetur.actived: ${!!vscode.extensions.getExtension('octref.vetur')}
vetur.actived: ${!!vetur}
workspace.vue-tsc.version: ${getWorkspacePackageJson('vue-tsc')?.version}
workspace.typescript.version: ${getWorkspacePackageJson('typescript')?.version}
workspace.vue.version: ${getWorkspacePackageJson('vue')?.version}
Expand Down

0 comments on commit ef8a061

Please sign in to comment.