| 21 | } |
| 22 | |
| 23 | export 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 | |
| 39 | export const refreshCppSshTargetsViewCmd: string = 'C_Cpp.refreshCppSshTargetsView'; |
| 40 | export const addSshTargetCmd: string = 'C_Cpp.addSshTarget'; |
nothing calls this directly
no outgoing calls
no test coverage detected