Skip to content

Commit

Permalink
Clone values returned from WorkspaceConfiguration.inspect() (#13527)
Browse files Browse the repository at this point in the history
Fixes #13087

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
  • Loading branch information
tsmaeder authored Mar 27, 2024
1 parent a47ddeb commit a828e58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/plugin-ext/src/plugin/preference-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ export class PreferenceRegistryExtImpl implements PreferenceRegistryExt {
}

const configInspect: ConfigurationInspect<T> = { 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;
}
};
Expand Down

0 comments on commit a828e58

Please sign in to comment.