This commit is contained in:
SteVen Batten
2021-06-02 13:44:22 -07:00
parent 093b03bb39
commit 4d4f0b528a
@@ -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;
}