-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from urgetolearn/main
added "start a local network" section
- Loading branch information
Showing
3 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const vscode = require('vscode'); | ||
|
||
class fabricsamples { | ||
constructor() { | ||
// Define the tree structure | ||
this.treeData = [ | ||
{ | ||
label: "Fabric Sample", | ||
collapsibleState: vscode.TreeItemCollapsibleState.Collapsed, // Collapsible node | ||
|
||
} | ||
]; | ||
} | ||
|
||
getTreeItem(element) { | ||
const treeItem = new vscode.TreeItem( | ||
element.label, | ||
element.collapsibleState | ||
); | ||
return treeItem; | ||
} | ||
|
||
getChildren(element) { | ||
if (element) { | ||
// Return children for the given element | ||
return element.children || []; | ||
} else { | ||
// Return top-level items (i.e., Start a Local Network) | ||
return this.treeData; | ||
} | ||
} | ||
} | ||
|
||
module.exports = fabricsamples; |