Skip to content

Commit fb5bce6

Browse files
authored
feat(workspaces): make the workspaces panel the default sidebar view (#1202)
Shows the Workspaces panel in the Coder Remote sidebar in place of the legacy My, Shared and All Workspaces tree views, with a visible setting to switch back. - Add coder.workspacesPanel.enabled (default true, application scope), replacing the hidden experimental setting and its activity bar container - Show exactly one of the panel and the tree views, using when clauses that read the setting directly and switch without a reload - Add Switch to Legacy Tree Views and Switch to Workspaces Panel to the title bar menus and Command Palette - Merge the refresh commands into coder.workspaces.refresh, which refreshes every visible workspace view - Skip panel refreshes while hidden, so the panel no longer shows a stale failure - Collect the setting in support bundles - List the panel's features in the CHANGELOG Related to #1113, #1205
1 parent b44f4a9 commit fb5bce6

10 files changed

Lines changed: 192 additions & 156 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@
55
from published versions since it shows up in the VS Code extension changelog
66
tab and is confusing to users. Add it back between releases if needed. -->
77

8+
## Unreleased
9+
10+
### Added
11+
12+
- A Workspaces panel is now the Coder Remote sidebar, replacing the legacy My
13+
Workspaces, Shared Workspaces, and All Workspaces tree views. From one place
14+
you can:
15+
- Switch between your workspaces, workspaces shared with you, and, for
16+
owners, all workspaces.
17+
- Search the listed workspaces by name, owner, or template with `Ctrl+F`
18+
(`Cmd+F` on macOS).
19+
- See at a glance whether each workspace and agent is healthy, and which
20+
workspaces have a Coder Agents chat.
21+
- Expand a workspace to see its agents, dev containers, app statuses, and
22+
agent metadata.
23+
- Start, stop, restart, update, and delete workspaces without leaving the
24+
editor. You're asked to confirm before deleting a workspace or
25+
interrupting the one you're connected to.
26+
- Open a workspace or a specific agent, or go to its dashboard, sharing, or
27+
settings page.
28+
- Ping, run a speed test, or collect a support bundle for a specific agent.
29+
- Keep working from the last results if your deployment can't be reached.
30+
- To switch back to the legacy tree views, choose **Switch to Legacy Tree
31+
Views** from the panel's **...** menu, or set `coder.workspacesPanel.enabled`
32+
to `false`. No reload is needed, and **Switch to Workspaces Panel** switches
33+
back.
34+
835
## [v1.18.1](https://github.com/coder/vscode-coder/releases/tag/v1.18.1) 2026-11-18
936

1037
### Security

‎package.json‎

Lines changed: 48 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@
194194
"default": false,
195195
"scope": "application"
196196
},
197+
"coder.workspacesPanel.enabled": {
198+
"markdownDescription": "Show workspaces in the Coder sidebar as a single panel where you can filter, check status, and start, stop, or update them. Disable to use the legacy My Workspaces, Shared Workspaces, and All Workspaces tree views instead.",
199+
"type": "boolean",
200+
"default": true,
201+
"scope": "application"
202+
},
197203
"coder.sshFlags": {
198204
"markdownDescription": "Additional flags to pass to the `coder ssh` command when establishing SSH connections. Enter each flag as a separate array item; values are passed verbatim and in order. See the [CLI ssh reference](https://coder.com/docs/reference/cli/ssh) for available flags.\n\nNote: `--network-info-dir` and `--ssh-host-prefix` are ignored (managed internally). Prefer `#coder.proxyLogDirectory#` over `--log-dir`/`-l` for full functionality.",
199205
"type": "array",
@@ -334,38 +340,41 @@
334340
"id": "coderTasks",
335341
"title": "Coder Tasks (Deprecated)",
336342
"icon": "media/tasks-logo.svg"
337-
},
338-
{
339-
"id": "coderExperimentalWorkspaces",
340-
"title": "Coder Workspaces",
341-
"icon": "media/shorthand-logo.svg"
342343
}
343344
]
344345
},
345346
"views": {
346347
"coder": [
348+
{
349+
"type": "webview",
350+
"id": "coder.workspacesPanel",
351+
"name": "Workspaces",
352+
"icon": "media/logo-white.svg",
353+
"when": "config.coder.workspacesPanel.enabled"
354+
},
347355
{
348356
"id": "myWorkspaces",
349357
"name": "My Workspaces",
350358
"visibility": "visible",
351359
"icon": "media/logo-white.svg",
352-
"initialSize": 2
360+
"initialSize": 2,
361+
"when": "!config.coder.workspacesPanel.enabled"
353362
},
354363
{
355364
"id": "sharedWorkspaces",
356365
"name": "Shared Workspaces",
357366
"visibility": "visible",
358367
"icon": "media/logo-white.svg",
359368
"initialSize": 1,
360-
"when": "coder.authenticated"
369+
"when": "!config.coder.workspacesPanel.enabled && coder.authenticated"
361370
},
362371
{
363372
"id": "allWorkspaces",
364373
"name": "All Workspaces",
365374
"visibility": "visible",
366375
"icon": "media/logo-white.svg",
367376
"initialSize": 1,
368-
"when": "coder.authenticated && coder.isOwner"
377+
"when": "!config.coder.workspacesPanel.enabled && coder.authenticated && coder.isOwner"
369378
}
370379
],
371380
"coderTasks": [
@@ -382,15 +391,6 @@
382391
"icon": "media/tasks-logo.svg",
383392
"when": "coder.authenticated && coder.tasksSupported"
384393
}
385-
],
386-
"coderExperimentalWorkspaces": [
387-
{
388-
"type": "webview",
389-
"id": "coder.workspacesPanel",
390-
"name": "Coder Workspaces",
391-
"icon": "media/shorthand-logo.svg",
392-
"when": "coder.workspacesPanelEnabled"
393-
}
394394
]
395395
},
396396
"viewsWelcome": [
@@ -469,12 +469,6 @@
469469
"title": "Update Workspace",
470470
"category": "Coder"
471471
},
472-
{
473-
"command": "coder.refreshWorkspaces",
474-
"title": "Refresh Workspace",
475-
"category": "Coder",
476-
"icon": "$(refresh)"
477-
},
478472
{
479473
"command": "coder.speedTest",
480474
"title": "Speed Test Workspace",
@@ -561,6 +555,16 @@
561555
"category": "Coder",
562556
"icon": "$(search)"
563557
},
558+
{
559+
"command": "coder.workspaces.showPanel",
560+
"title": "Switch to Workspaces Panel",
561+
"category": "Coder"
562+
},
563+
{
564+
"command": "coder.workspaces.showTreeViews",
565+
"title": "Switch to Legacy Tree Views",
566+
"category": "Coder"
567+
},
564568
{
565569
"command": "coder.applyRecommendedSettings",
566570
"title": "Apply Recommended SSH Settings",
@@ -642,10 +646,6 @@
642646
"command": "coder.workspace.update",
643647
"when": "coder.workspace.updatable"
644648
},
645-
{
646-
"command": "coder.refreshWorkspaces",
647-
"when": "coder.authenticated"
648-
},
649649
{
650650
"command": "coder.viewLogs",
651651
"when": "true"
@@ -699,12 +699,20 @@
699699
},
700700
{
701701
"command": "coder.workspaces.refresh",
702-
"when": "false"
702+
"when": "coder.authenticated"
703703
},
704704
{
705705
"command": "coder.workspaces.search",
706706
"when": "false"
707707
},
708+
{
709+
"command": "coder.workspaces.showPanel",
710+
"when": "!config.coder.workspacesPanel.enabled"
711+
},
712+
{
713+
"command": "coder.workspaces.showTreeViews",
714+
"when": "config.coder.workspacesPanel.enabled"
715+
},
708716
{
709717
"command": "coder.applyRecommendedSettings"
710718
}
@@ -725,6 +733,16 @@
725733
"group": "deployment@1",
726734
"when": "coder.authenticated && (view == myWorkspaces || view == coder.workspacesPanel)"
727735
},
736+
{
737+
"command": "coder.workspaces.showPanel",
738+
"group": "view@1",
739+
"when": "view == myWorkspaces"
740+
},
741+
{
742+
"command": "coder.workspaces.showTreeViews",
743+
"group": "view@1",
744+
"when": "view == coder.workspacesPanel"
745+
},
728746
{
729747
"command": "coder.login",
730748
"when": "!coder.authenticated && (view == myWorkspaces || view == coder.workspacesPanel)"
@@ -734,21 +752,11 @@
734752
"when": "coder.authenticated && (view == myWorkspaces || view == coder.workspacesPanel)",
735753
"group": "navigation@1"
736754
},
737-
{
738-
"command": "coder.refreshWorkspaces",
739-
"when": "coder.authenticated && view == myWorkspaces",
740-
"group": "navigation@2"
741-
},
742755
{
743756
"command": "coder.searchMyWorkspaces",
744757
"when": "coder.authenticated && view == myWorkspaces",
745758
"group": "navigation@3"
746759
},
747-
{
748-
"command": "coder.refreshWorkspaces",
749-
"when": "coder.authenticated && view == sharedWorkspaces",
750-
"group": "navigation@2"
751-
},
752760
{
753761
"command": "coder.searchSharedWorkspaces",
754762
"when": "coder.authenticated && view == sharedWorkspaces",
@@ -766,8 +774,8 @@
766774
},
767775
{
768776
"command": "coder.workspaces.refresh",
769-
"when": "coder.authenticated && view == coder.workspacesPanel",
770-
"group": "navigation@1"
777+
"when": "coder.authenticated && (view == myWorkspaces || view == sharedWorkspaces || view == allWorkspaces || view == coder.workspacesPanel)",
778+
"group": "navigation@2"
771779
},
772780
{
773781
"command": "coder.workspaces.search",

‎packages/workspaces/README.md‎

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,8 @@
22

33
This package contains the Workspaces webview panel for the Coder VS Code extension.
44

5-
## Enabling the Feature
6-
7-
The workspaces panel is controlled by the `coder.experimental.workspacesPanel` configuration setting.
8-
9-
To enable via settings.json:
10-
11-
1. Open your VS Code settings.json (Cmd/Ctrl + Shift + P → "Preferences: Open User Settings (JSON)")
12-
2. Add the following:
13-
14-
```json
15-
{
16-
"coder.experimental.workspacesPanel": true
17-
}
18-
```
19-
20-
3. Reload VS Code
21-
22-
The **Coder Workspaces** activity bar icon opens the **Coder Workspaces** view when the setting is enabled.
5+
The panel is the default view in the **Coder Remote** sidebar. Setting
6+
`coder.workspacesPanel.enabled` to `false` shows the My Workspaces, Shared
7+
Workspaces, and All Workspaces tree views instead. The sidebar shows either the
8+
panel or the tree views, never both, and switches as soon as the setting
9+
changes.

0 commit comments

Comments
 (0)