Skip to content

Commit 610fb45

Browse files
committed
Fix extension load issue with spaces in usernames
This change fixes #244 which reports that the extension does not load when the user's username contains a space. This was caused by the script execution of Start-EditorServices.ps1 not being contained within quotes.
1 parent 0fc0f3c commit 610fb45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function startPowerShell(powerShellExePath: string, bundledModulesPath: string,
177177

178178
// Add the Start-EditorServices.ps1 invocation arguments
179179
args.push('-Command')
180-
args.push(startScriptPath + ' ' + startArgs)
180+
args.push('& "' + startScriptPath + '" ' + startArgs)
181181

182182
// Launch PowerShell as child process
183183
powerShellProcess = cp.spawn(powerShellExePath, args);

0 commit comments

Comments
 (0)