diff --git a/src/features/OpenInISE.ts b/src/features/OpenInISE.ts index 70940588f9..3c86547745 100644 --- a/src/features/OpenInISE.ts +++ b/src/features/OpenInISE.ts @@ -15,6 +15,6 @@ export function registerOpenInISECommand(): void { var ISEPath = process.env.windir + '\\System32\\WindowsPowerShell\\v1.0\\powershell_ise.exe'; } - ChildProcess.exec(ISEPath + ' -File ' + uri.fsPath).unref(); + ChildProcess.exec(ISEPath + ' -File "' + uri.fsPath + '"').unref(); }); } \ No newline at end of file