MCPcopy Create free account
hub / github.com/Marus/cortex-debug / getTreeItem

Method getTreeItem

src/frontend/views/live-watch.ts:348–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346 }
347
348 public getTreeItem(): TreeItem | Promise<TreeItem> {
349 const state = TreeItemCollapsibleState.None;
350 const tmp = 'Hint: Use & Enable "liveWatch" in your launch.json to enable this panel';
351 const label: vscode.TreeItemLabel = {
352 label: tmp + (this.empty ? ', and use the \'+\' button above to add new expressions' : '')
353 };
354 const item = new TreeItem(label, state);
355 item.contextValue = this.isRootChild() ? 'expression' : 'field';
356 item.tooltip = '~' + label.label + '~';
357 return item;
358 }
359
360 public getChildren(): LiveVariableNode[] {
361 return [];

Callers

nothing calls this directly

Calls 1

isRootChildMethod · 0.80

Tested by

no test coverage detected