Skip to content

Commit bcdfe88

Browse files
committed
Fix window reload with an empty remote window
1 parent a0bc15f commit bcdfe88

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/workbench/contrib/workspace/browser/workspace.contribution.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,10 @@ export class WorkspaceTrustUXHandler extends Disposable implements IWorkbenchCon
515515
disposable.dispose();
516516
}
517517
}));
518-
this.workspaceTrustManagementService.setWorkspaceTrust(this.configurationService.getValue<boolean>(WORKSPACE_TRUST_EMPTY_WINDOW) ?? false);
518+
// TODO: Consider moving the check into setWorkspaceTrust()
519+
if (this.workspaceTrustManagementService.canSetWorkspaceTrust()) {
520+
this.workspaceTrustManagementService.setWorkspaceTrust(this.configurationService.getValue<boolean>(WORKSPACE_TRUST_EMPTY_WINDOW) ?? false);
521+
}
519522
}
520523
}
521524

0 commit comments

Comments
 (0)