From 18548e7af05ca7f071824159a6d27b0d8633ec24 Mon Sep 17 00:00:00 2001 From: SteVen Batten Date: Mon, 5 Apr 2021 09:20:51 -0700 Subject: [PATCH] fixes #120462 --- .../contrib/workspace/browser/workspace.contribution.ts | 2 +- src/vs/workbench/services/workspaces/common/workspaceTrust.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {