diff --git a/src/vs/workbench/contrib/workspace/browser/workspace.contribution.ts b/src/vs/workbench/contrib/workspace/browser/workspace.contribution.ts index f6940c8ca9733..c35a5b063d339 100644 --- a/src/vs/workbench/contrib/workspace/browser/workspace.contribution.ts +++ b/src/vs/workbench/contrib/workspace/browser/workspace.contribution.ts @@ -187,7 +187,7 @@ export class WorkspaceTrustRequestHandler extends Disposable implements IWorkben this._register(this.configurationService.onDidChangeConfiguration(e => { if (e.affectsConfiguration(WORKSPACE_TRUST_ENABLED)) { - const isEnabled = this.configurationService.getValue(WORKSPACE_TRUST_ENABLED); + const isEnabled = this.configurationService.inspect(WORKSPACE_TRUST_ENABLED).userValue; if (!isEnabled || typeof isEnabled === 'boolean') { this.dialogService.confirm({ message: localize('trustConfigurationChangeMessage', "In order for this change to take effect, the window needs to be reloaded. Do you want to reload the window now?") diff --git a/src/vs/workbench/services/workspaces/common/workspaceTrust.ts b/src/vs/workbench/services/workspaces/common/workspaceTrust.ts index 033bb76ecf046..c234b5fcea7c5 100644 --- a/src/vs/workbench/services/workspaces/common/workspaceTrust.ts +++ b/src/vs/workbench/services/workspaces/common/workspaceTrust.ts @@ -429,7 +429,7 @@ export class WorkspaceTrustService extends Disposable implements IWorkspaceTrust } isWorkspaceTrustEnabled(): boolean { - return this.configurationService.getValue(WORKSPACE_TRUST_ENABLED) ?? false; + return this.configurationService.inspect(WORKSPACE_TRUST_ENABLED).userValue ?? false; } async requestWorkspaceTrust(options: WorkspaceTrustRequestOptions = { modal: true }): Promise {