MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / LabelLeafNode

Class LabelLeafNode

Extension/src/SSH/TargetsView/common.ts:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23export class LabelLeafNode implements BaseNode {
24 constructor(private readonly label: string) { /* blank */ }
25
26 async getChildren(): Promise<BaseNode[]> {
27 return [];
28 }
29
30 getTreeItem(): Promise<vscode.TreeItem> {
31 return Promise.resolve(new vscode.TreeItem(this.getLabel(), vscode.TreeItemCollapsibleState.None));
32 }
33
34 getLabel(): string {
35 return this.label;
36 }
37}
38
39export const refreshCppSshTargetsViewCmd: string = 'C_Cpp.refreshCppSshTargetsView';
40export const addSshTargetCmd: string = 'C_Cpp.addSshTarget';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected