Enhance status bar with new buttons for tree view and settings; refactor existing button setup

This commit is contained in:
2025-03-17 07:09:27 +00:00
parent d2b09eefbe
commit 7aece43a6b
3 changed files with 44 additions and 16 deletions

View File

@@ -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) {