We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a33f1b commit 2573dd1Copy full SHA for 2573dd1
src/features/OpenInISE.ts
@@ -11,7 +11,7 @@ var uri = document.uri
11
12
if (process.env.hasOwnProperty('PROCESSOR_ARCHITEW6432')) {
13
14
- var ISEPath = 'C:\\Windows\\Sysnative\\WindowsPowerShell\\v1.0\\powershell_ise.exe';
+ var ISEPath = process.env.windir + '\\Sysnative\\WindowsPowerShell\\v1.0\\powershell_ise.exe';
15
16
} else
17
{
@@ -20,7 +20,7 @@ if (process.env.hasOwnProperty('PROCESSOR_ARCHITEW6432')) {
20
21
}
22
23
- require("child_process").exec(ISEPath + ' -NoProfile -File ' + uri.fsPath).unref();
+ require("child_process").exec(ISEPath + ' -File ' + uri.fsPath).unref();
24
25
26
});
0 commit comments