From b346b0ecc4d6eea552d497fbb9a02a928f967845 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Sun, 30 Sep 2018 20:07:50 -0600 Subject: [PATCH] Add spaces between parameters when starting PSES The current code works because the previous arg is quoted. For example, this is legal: Foo -Version '1.2.3.4'-NextParameter But this is not good form, so adding spaces between params. --- src/session.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session.ts b/src/session.ts index 990728d995..2692d8a8b7 100644 --- a/src/session.ts +++ b/src/session.ts @@ -169,9 +169,9 @@ export class SessionManager implements Middleware { this.editorServicesArgs = `-HostName 'Visual Studio Code Host' ` + `-HostProfileId 'Microsoft.VSCode' ` + - `-HostVersion '${this.hostVersion}'` + + `-HostVersion '${this.hostVersion}' ` + `-AdditionalModules @('PowerShellEditorServices.VSCode') ` + - `-BundledModulesPath '${PowerShellProcess.escapeSingleQuotes(this.bundledModulesPath)}'` + + `-BundledModulesPath '${PowerShellProcess.escapeSingleQuotes(this.bundledModulesPath)}' ` + `-EnableConsoleRepl `; if (this.sessionSettings.developer.editorServicesWaitForDebugger) {