diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.ts b/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.ts index c643cda1c6502..8427a77a9f1b6 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.ts @@ -31,14 +31,16 @@ export class NotebookVariablesDelegate implements IListVirtualDelegate { + static readonly ID = 'variableElement'; + get templateId(): string { - return 'variableElement'; + return NotebookVariableRenderer.ID; } renderTemplate(container: HTMLElement) { diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.ts b/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.ts index 14dd4f69c2324..e439fc88239b1 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.ts @@ -51,6 +51,8 @@ export class NotebookVariablesView extends ViewPane { } public override renderBody(container: HTMLElement): void { + super.renderBody(container); + this.tree = this.instantiationService.createInstance(NotebookVariablesTree, 'notebookVariablesView', container, new NotebookVariablesDelegate(), [new NotebookVariableRenderer()],