8000 show apps in need of attention only when there are some to show · coder/vscode-coder@08c93ae · GitHub
[go: up one dir, main page]

Skip to content

Commit 08c93ae

Browse files
com 8000 mitted
show apps in need of attention only when there are some to show
1 parent be1e137 commit 08c93ae

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ export class Commands {
418418
// Launch and run command in terminal if command is provided
419419
if (app.command) {
420420
const terminal = vscode.window.createTerminal(`${app.name || "Application"} Status`)
421-
terminal.show(false)
421+
terminal.show(true)
422422
vscode.commands.executeCommand("workbench.action.toggleMaximizedPanel")
423423
// If workspace_name is provided, run coder ssh before the command
424424
if (app.workspace_name) {

src/workspacesProvider.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,11 @@ export class WorkspaceProvider implements vscode.TreeDataProvider<vscode.TreeIte
273273
}
274274
}
275275

276-
const appStatusSection = new SectionTreeItem("Applications in need of attention", needsAttention)
277-
items.push(appStatusSection)
276+
// Only show the section if it has items that need attention
277+
if (needsAttention.length > 0) {
278+
const appStatusSection = new SectionTreeItem("Applications in need of attention", needsAttention)
279+
items.push(appStatusSection)
280+
}
278281
}
279282

280283
const savedMetadata = watcher?.metadata || []

0 commit comments

Comments
 (0)
0