File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,6 @@ export class Commands {
410
410
411
411
public async openAppStatus ( app : {
412
412
name ?: string
413
- status ?: string
414
413
url ?: string
415
414
agent_name ?: string
416
415
command ?: string
@@ -423,7 +422,7 @@ export class Commands {
423
422
title : `Connecting to AI Agent...` ,
424
423
cancellable : false
425
424
} , async ( ) => {
426
- const terminal = vscode . window . createTerminal ( app . status )
425
+ const terminal = vscode . window . createTerminal ( app . name )
427
426
428
427
// If workspace_name is provided, run coder ssh before the command
429
428
@@ -453,7 +452,7 @@ export class Commands {
453
452
}
454
453
455
454
// If no URL or command, show information about the app status
456
- vscode . window . showInformationMessage ( `${ app . name || "Application" } : ${ app . status || "Running" } ` , {
455
+ vscode . window . showInformationMessage ( `${ app . name } ` , {
457
456
detail : `Agent: ${ app . agent_name || "Unknown" } ` ,
458
457
} )
459
458
}
Original file line number Diff line number Diff line change @@ -255,9 +255,8 @@ export class WorkspaceProvider implements vscode.TreeDataProvider<vscode.TreeIte
255
255
// yet.
256
256
appStatuses . push (
257
257
new AppStatusTreeItem ( {
258
- name : status . icon ,
258
+ name : status . message ,
259
259
command : app . command ,
260
- status : status . message ,
261
260
workspace_name : element . workspaceName ,
262
261
} ) ,
263
262
)
@@ -374,14 +373,13 @@ class AppStatusTreeItem extends vscode.TreeItem {
374
373
constructor (
375
374
public readonly app : {
376
375
name : string
377
- status ?: string
378
376
url ?: string
379
377
command ?: string
380
378
workspace_name ?: string
381
379
} ,
382
380
) {
383
- super ( app . name , vscode . TreeItemCollapsibleState . None )
384
- this . description = app . status
381
+ super ( "" , vscode . TreeItemCollapsibleState . None )
382
+ this . description = app . name
385
383
this . contextValue = "coderAppStatus"
386
384
387
385
// Add command to handle clicking on the app
You can’t perform that action at this time.
0 commit comments