File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,25 @@ import {
17
17
import * as vscode from 'vscode' ;
18
18
import { config } from './lib/config' ;
19
19
20
+ const incompatibleExtensionIds = [
21
+ 'johnsoncodehk.vscode-typescript-vue-plugin' ,
22
+ 'Vue.vscode-typescript-vue-plugin' ,
23
+ ] ;
24
+
25
+ for ( const extensionId of incompatibleExtensionIds ) {
26
+ const extension = vscode . extensions . getExtension ( extensionId ) ;
27
+ if ( extension ) {
28
+ vscode . window . showErrorMessage (
29
+ `The "${ extensionId } " extension is incompatible with the Vue extension. Please uninstall it.` ,
30
+ 'Show Extension' ,
31
+ ) . then ( action => {
32
+ if ( action === 'Show Extension' ) {
33
+ vscode . commands . executeCommand ( 'workbench.extensions.search' , '@id:' + extensionId ) ;
34
+ }
35
+ } ) ;
36
+ }
37
+ }
38
+
20
39
let client : lsp . BaseLanguageClient | undefined ;
21
40
22
41
class _LanguageClient extends lsp . LanguageClient {
You can’t perform that action at this time.
0 commit comments