Skip to content

Commit 09e14ce

Browse files
WardenGnawgregg-miskelly
authored andcommitted
Fixing incorrect windows redirect. (#1286)
1 parent c57e7e9 commit 09e14ce

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/coreclr-debug/activate.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,18 @@ function showDotnetToolsWarning(message: string) : void
9898
goToSettingsMessage, getDotNetMessage).then(value => {
9999
if (value === getDotNetMessage) {
100100
let open = require('open');
101-
open('https://www.microsoft.com/net/core');
101+
let dotnetcoreURL = 'https://www.microsoft.com/net/core'
102+
103+
// Windows redirects https://www.microsoft.com/net/core to https://www.microsoft.com/net/core#windowsvs2015
104+
if (process.platform == "win32")
105+
{
106+
dotnetcoreURL = dotnetcoreURL + '#windowscmd';
107+
}
108+
109+
open(dotnetcoreURL);
102110
} else if (value === goToSettingsMessage) {
103111
vscode.commands.executeCommand('workbench.action.openGlobalSettings');
104112
}
105113
});
106114
}
107-
}
115+
}

0 commit comments

Comments
 (0)