Skip to content

Commit e4e3201

Browse files
authored
Restore docs link (#60)
1 parent d59cb2f commit e4e3201

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"theme": "dark"
1111
},
1212
"license": "MIT",
13-
"version": "0.0.37",
13+
"version": "0.0.38",
1414
"repository": {
1515
"type": "git",
1616
"url": "https://github.com/imandra-ai/imandrax-vscode"

src/extension.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import * as installer from './installer';
66
import * as listeners from './listeners';
77

88
import {
9+
env,
910
ExtensionContext,
1011
ExtensionMode,
1112
Uri,
@@ -54,9 +55,12 @@ export async function activate(context: ExtensionContext) {
5455
);
5556
await installer.promptToInstall(openUri);
5657
} 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+
}
5863
}
59-
6064
if (context.extensionMode === ExtensionMode.Test || context.extensionMode === undefined) {
6165
(global as any).testExtensionContext = context;
6266
}

0 commit comments

Comments
 (0)