Skip to content

Commit 2573dd1

Browse files
committed
Removed -NoProfile when launching ISE. Avoided hardcoding C:\Windows in ISEPath variable.
1 parent 4a33f1b commit 2573dd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/OpenInISE.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var uri = document.uri
1111

1212
if (process.env.hasOwnProperty('PROCESSOR_ARCHITEW6432')) {
1313

14-
var ISEPath = 'C:\\Windows\\Sysnative\\WindowsPowerShell\\v1.0\\powershell_ise.exe';
14+
var ISEPath = process.env.windir + '\\Sysnative\\WindowsPowerShell\\v1.0\\powershell_ise.exe';
1515

1616
} else
1717
{
@@ -20,7 +20,7 @@ if (process.env.hasOwnProperty('PROCESSOR_ARCHITEW6432')) {
2020

2121
}
2222

23-
require("child_process").exec(ISEPath + ' -NoProfile -File ' + uri.fsPath).unref();
23+
require("child_process").exec(ISEPath + ' -File ' + uri.fsPath).unref();
2424

2525

2626
});

0 commit comments

Comments
 (0)