File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 10
10
"theme" : " dark"
11
11
},
12
12
"license" : " MIT" ,
13
- "version" : " 0.0.37 " ,
13
+ "version" : " 0.0.38 " ,
14
14
"repository" : {
15
15
"type" : " git" ,
16
16
"url" : " https://github.com/imandra-ai/imandrax-vscode"
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import * as installer from './installer';
6
6
import * as listeners from './listeners' ;
7
7
8
8
import {
9
+ env ,
9
10
ExtensionContext ,
10
11
ExtensionMode ,
11
12
Uri ,
@@ -54,9 +55,12 @@ export async function activate(context: ExtensionContext) {
54
55
) ;
55
56
await installer . promptToInstall ( openUri ) ;
56
57
} else if ( languageClientConfig . binPathAvailability . status === "onWindows" ) {
57
- window . showErrorMessage ( `ImandraX can't run natively on Windows. Please start a remote VSCode session against WSL.` ) ;
58
+ const item = { title : "Go to docs" } ;
59
+ const itemT = await window . showErrorMessage ( `ImandraX can't run natively on Windows. Please start a remote VSCode session against WSL` , item ) ;
60
+ if ( itemT ?. title === item . title ) {
61
+ await env . openExternal ( await env . asExternalUri ( Uri . parse ( "https://code.visualstudio.com/docs/remote/wsl-tutorial" ) ) ) ;
62
+ }
58
63
}
59
-
60
64
if ( context . extensionMode === ExtensionMode . Test || context . extensionMode === undefined ) {
61
65
( global as any ) . testExtensionContext = context ;
62
66
}
You can’t perform that action at this time.
0 commit comments