Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit08c93ae

Browse files
committed
show apps in need of attention only when there are some to show
1 parentbe1e137 commit08c93ae

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
constterminal=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-
constappStatusSection=newSectionTreeItem("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+
constappStatusSection=newSectionTreeItem("Applications in need of attention",needsAttention)
279+
items.push(appStatusSection)
280+
}
278281
}
279282

280283
constsavedMetadata=watcher?.metadata||[]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp