Skip to content

Commit

Permalink
fixes #120462
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Apr 5, 2021
1 parent 80f1108 commit 18548e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>(WORKSPACE_TRUST_ENABLED);
const isEnabled = this.configurationService.inspect<boolean>(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?")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class WorkspaceTrustService extends Disposable implements IWorkspaceTrust
}

isWorkspaceTrustEnabled(): boolean {
return this.configurationService.getValue<boolean>(WORKSPACE_TRUST_ENABLED) ?? false;
return this.configurationService.inspect<boolean>(WORKSPACE_TRUST_ENABLED).userValue ?? false;
}

async requestWorkspaceTrust(options: WorkspaceTrustRequestOptions = { modal: true }): Promise<WorkspaceTrustState | undefined> {
Expand Down

0 comments on commit 18548e7

Please sign in to comment.