Skip to content

Commit d39e29e

Browse files
committed
Ive created a monster
1 parent f76f831 commit d39e29e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ export class NotebookVariablesDelegate implements IListVirtualDelegate<IVariable
3131
}
3232

3333
getTemplateId(element: IVariableTreeElement): string {
34-
return 'variableElement';
34+
return NotebookVariableRenderer.ID;
3535
}
3636
}
3737

3838
export class NotebookVariableRenderer implements ITreeRenderer<IVariableTreeElement, FuzzyScore, { container: HTMLElement }> {
3939

40+
static readonly ID = 'variableElement';
41+
4042
get templateId(): string {
41-
return 'variableElement';
43+
return NotebookVariableRenderer.ID;
4244
}
4345

4446
renderTemplate(container: HTMLElement) {

src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export class NotebookVariablesView extends ViewPane {
5151
}
5252

5353
public override renderBody(container: HTMLElement): void {
54+
super.renderBody(container);
55+
5456
this.tree = this.instantiationService.createInstance(NotebookVariablesTree, 'notebookVariablesView', container,
5557
new NotebookVariablesDelegate(),
5658
[new NotebookVariableRenderer()],

0 commit comments

Comments
 (0)