File tree 3 files changed +16
-5
lines changed
3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ ### Added
6
+
7
+ - Workspace and agent statuses now show in the sidebar. These are updated every
8
+ five seconds.
9
+
5
10
## [ v1.0.2] ( https://github.com/coder/vscode-coder/releases/tag/v1.0.2 ) (2024-06-12)
6
11
7
12
### Fixed
Original file line number Diff line number Diff line change @@ -253,7 +253,11 @@ export class Remote {
253
253
writeEmitter . fire ( log . output + "\r\n" )
254
254
} )
255
255
socket . on ( "error" , ( error ) => {
256
- reject ( new Error ( `Failed to watch workspace build using ${ socketUrlRaw } : ${ errToStr ( error , "no further details" ) } ` ) )
256
+ reject (
257
+ new Error (
258
+ `Failed to watch workspace build using ${ socketUrlRaw } : ${ errToStr ( error , "no further details" ) } ` ,
259
+ ) ,
260
+ )
257
261
} )
258
262
socket . on ( "close" , ( ) => {
259
263
resolve ( )
Original file line number Diff line number Diff line change @@ -280,6 +280,7 @@ export class OpenableTreeItem extends vscode.TreeItem {
280
280
constructor (
281
281
label : string ,
282
282
tooltip : string ,
283
+ description : string ,
283
284
collapsibleState : vscode . TreeItemCollapsibleState ,
284
285
285
286
public readonly workspaceOwner : string ,
@@ -292,6 +293,7 @@ export class OpenableTreeItem extends vscode.TreeItem {
292
293
super ( label , collapsibleState )
293
294
this . contextValue = contextValue
294
295
this . tooltip = tooltip
296
+ this . description = description
295
297
}
296
298
297
299
iconPath = {
@@ -307,11 +309,10 @@ class AgentTreeItem extends OpenableTreeItem {
307
309
workspaceName : string ,
308
310
watchMetadata = false ,
309
311
) {
310
- const label = agent . name
311
- const detail = `Status: ${ agent . status } `
312
312
super (
313
- label ,
314
- detail ,
313
+ agent . name , // label
314
+ `Status: ${ agent . status } ` , // tooltip
315
+ agent . status , // description
315
316
watchMetadata ? vscode . TreeItemCollapsibleState . Collapsed : vscode . TreeItemCollapsibleState . None ,
316
317
workspaceOwner ,
317
318
workspaceName ,
@@ -337,6 +338,7 @@ export class WorkspaceTreeItem extends OpenableTreeItem {
337
338
super (
338
339
label ,
339
340
detail ,
341
+ workspace . latest_build . status , // description
340
342
showOwner ? vscode . TreeItemCollapsibleState . Collapsed : vscode . TreeItemCollapsibleState . Expanded ,
341
343
workspace . owner_name ,
342
344
workspace . name ,
You can’t perform that action at this time.
0 commit comments