From 068578b492e22705d8dacf4e041122b9abcdeada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=A4der?= Date: Tue, 26 Mar 2024 13:11:10 +0100 Subject: [PATCH] Clone values returned from WorkspaceConfiguration.inspect() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #13087 Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder --- packages/plugin-ext/src/plugin/preference-registry.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/plugin-ext/src/plugin/preference-registry.ts b/packages/plugin-ext/src/plugin/preference-registry.ts index 29863cfb265b6..6d676309d1889 100644 --- a/packages/plugin-ext/src/plugin/preference-registry.ts +++ b/packages/plugin-ext/src/plugin/preference-registry.ts @@ -198,10 +198,10 @@ export class PreferenceRegistryExtImpl implements PreferenceRegistryExt { } const configInspect: ConfigurationInspect = { key }; - configInspect.defaultValue = result.default?.value; - configInspect.globalValue = result.user?.value; - configInspect.workspaceValue = result.workspace?.value; - configInspect.workspaceFolderValue = result.workspaceFolder?.value; + configInspect.defaultValue = cloneDeep(result.default?.value); + configInspect.globalValue = cloneDeep(result.user?.value); + configInspect.workspaceValue = cloneDeep(result.workspace?.value); + configInspect.workspaceFolderValue = cloneDeep(result.workspaceFolder?.value); return configInspect; } };