From f3d85c5c3aa182c843364b9a6d11449db4d3d2ac Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 17 May 2022 14:48:37 -0700 Subject: [PATCH] Fix capitalization of keys in `initializationOptions` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While the TypeScript LSP client library didn’t lowercase the first letter of these properties, unfortunately OmniSharp’s stdio client (used for end-to-end testing) did, and so this was the easiest solution. --- src/session.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session.ts b/src/session.ts index a4288d328d..0fd1e5432e 100644 --- a/src/session.ts +++ b/src/session.ts @@ -542,8 +542,8 @@ export class SessionManager implements Middleware { }, // NOTE: Some settings are only applicable on startup, so we send them during initialization. initializationOptions: { - EnableProfileLoading: this.sessionSettings.enableProfileLoading, - InitialWorkingDirectory: this.sessionSettings.cwd, + enableProfileLoading: this.sessionSettings.enableProfileLoading, + initialWorkingDirectory: this.sessionSettings.cwd, }, errorHandler: { // Override the default error handler to prevent it from