From 51476b8fb87e16f9cd6af082e573ec9f4c652056 Mon Sep 17 00:00:00 2001 From: Kai Salmen Date: Wed, 25 Sep 2024 21:43:03 +0200 Subject: [PATCH] Implemented further review comments --- packages/wrapper/src/vscode/services.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/wrapper/src/vscode/services.ts b/packages/wrapper/src/vscode/services.ts index cb7659ce3..6d3c6d278 100644 --- a/packages/wrapper/src/vscode/services.ts +++ b/packages/wrapper/src/vscode/services.ts @@ -51,12 +51,14 @@ export const configureServices = async (config: VscodeServicesConfig): Promise | undefined) ?? {}; + const devOptions: Record = { + ...serviceConfig.workspaceConfig.developmentOptions + }; devOptions.logLevel = config.logLevel; - (serviceConfig.workspaceConfig.developmentOptions as Record) = Object.assign(serviceConfig.workspaceConfig.developmentOptions ?? {}, devOptions); + (serviceConfig.workspaceConfig.developmentOptions as Record) = Object.assign({}, devOptions); } else if (devLogLevel !== config.logLevel) { throw new Error(`You have configured mismatching logLevels: ${config.logLevel} (wrapperConfig) ${devLogLevel} (workspaceConfig.developmentOptions)`);