mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
fixes #125319
This commit is contained in:
@@ -556,6 +556,7 @@ export class WorkspaceTrustEditor extends EditorPane {
|
||||
|
||||
protected createEditor(parent: HTMLElement): void {
|
||||
this.rootElement = append(parent, $('.workspace-trust-editor', { tabindex: '0' }));
|
||||
this.rootElement.style.display = 'none';
|
||||
|
||||
this.createHeaderElement(this.rootElement);
|
||||
|
||||
@@ -587,6 +588,7 @@ export class WorkspaceTrustEditor extends EditorPane {
|
||||
await super.setInput(input, options, context, token);
|
||||
if (token.isCancellationRequested) { return; }
|
||||
|
||||
await this.workspaceTrustManagementService.workspaceTrustInitialized;
|
||||
this.registerListeners();
|
||||
this.render();
|
||||
}
|
||||
@@ -738,6 +740,7 @@ export class WorkspaceTrustEditor extends EditorPane {
|
||||
|
||||
this.bodyScrollBar.getDomNode().style.height = `calc(100% - ${this.headerContainer.clientHeight}px)`;
|
||||
this.bodyScrollBar.scanDomNode();
|
||||
this.rootElement.style.display = '';
|
||||
this.rendering = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user