Skip to content

Commit

Permalink
Ive created a monster
Browse files Browse the repository at this point in the history
  • Loading branch information
amunger committed Nov 17, 2023
1 parent f76f831 commit d39e29e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ export class NotebookVariablesDelegate implements IListVirtualDelegate<IVariable
}

getTemplateId(element: IVariableTreeElement): string {
return 'variableElement';
return NotebookVariableRenderer.ID;
}
}

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

static readonly ID = 'variableElement';

get templateId(): string {
return 'variableElement';
return NotebookVariableRenderer.ID;
}

renderTemplate(container: HTMLElement) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down

0 comments on commit d39e29e

Please sign in to comment.