Enhance status bar with new buttons for tree view and settings; refactor existing button setup
This commit is contained in:
@@ -32,6 +32,16 @@ export class PrompterTreeProvider implements vscode.TreeDataProvider<FileTreeIte
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
showSettingsView(): void {
|
||||
this.showingSettings = true;
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
showFilesView(): void {
|
||||
this.showingSettings = false;
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
getTreeItem(element: FileTreeItem | SettingTreeItem): vscode.TreeItem {
|
||||
// Return the element as is if it's a SettingTreeItem
|
||||
if (element instanceof SettingTreeItem) {
|
||||
|
||||
Reference in New Issue
Block a user