Skip to content

feat(workspaces): make the workspaces panel the default sidebar view - #1202

Merged
EhabY merged 1 commit into
mainfrom
feat/workspaces-panel-default
Nov 19, 2026
Merged

EhabY merged 1 commit into
mainfrom
feat/workspaces-panel-default

Conversation

@EhabY

@EhabY EhabY commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #1205, which adds the panel's missing features (search, polling, startup fixes) while it is still experimental. This PR makes the panel the default Coder Remote sidebar view, in place of the legacy My, Shared, and All Workspaces tree views.

Setting

  • coder.workspacesPanel.enabled (default true, application scope) is visible in the Settings UI and lets users opt back into the tree views.
  • It replaces the hidden coder.experimental.workspacesPanel setting and its separate activity bar container. The panel now lives in the coder container.

One view at a time

  • The views' when clauses read the setting directly (config.coder.workspacesPanel.enabled), so the sidebar shows exactly one of the panel and the trees, with no context key to keep in sync.
  • config.* resolves the declared default before activation, so the panel shows from the start, and changing the setting switches views without a reload. The container is never left empty (the Cursor bug noted for coder.tasksLogin).
  • The panel and the trees both stay registered and only fetch while visible.

Switching views

  • The panel's title menu offers Switch to Legacy Tree Views, and the My Workspaces tree offers Switch to Workspaces Panel, in their own group below Network Check. Both update the setting, so the sidebar switches at once.
  • The title-bar commands shared by the panel and the trees (login, logout, switch deployment, network check, create workspace) don't depend on which view is shown.

Refresh

  • coder.refreshWorkspaces and the panel's refresh merge into coder.workspaces.refresh, with one title-bar entry for every workspace view (the All Workspaces tree gains the button it lacked). Hidden views skip the refresh and list again when shown.
  • WorkspacesPanelProvider.refresh() now does nothing while hidden. It used to report the store's last status, so refreshing from the trees could show a stale panel failure.

Other

  • extension.ts sets up the panel, trees, setting, and commands in one section.
  • The setting is collected in support bundles.
  • The CHANGELOG lists the panel's features, which earlier releases left out while it was experimental (chore: release v1.18.1 #1199).

🤖 Generated with Claude Code

@EhabY
EhabY force-pushed the feat/workspaces-panel-default branch from 37f0881 to 4fe4570 Compare November 19, 2026 11:45
@EhabY
EhabY marked this pull request as ready for review November 19, 2026 11:45

@matifali matifali left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a setting in the left sidebar to opt out of the view?
I think we can, given we have full control over it. A hyperlink to take the user to the setting would suffice

@EhabY
EhabY force-pushed the feat/workspaces-panel-default branch from 9656a60 to fcb107f Compare November 19, 2026 13:01
@EhabY
EhabY force-pushed the feat/workspaces-panel-default branch from 3d2e3b7 to cbf12a1 Compare November 19, 2026 13:31
@EhabY
EhabY changed the base branch from main to feat/workspaces-panel-features November 19, 2026 13:31
@EhabY
EhabY added this pull request to stack #1206 November 19, 2026 13:33
@EhabY
EhabY force-pushed the feat/workspaces-panel-default branch 2 times, most recently from adbf5a7 to f93ecee Compare November 19, 2026 14:47
Base automatically changed from feat/workspaces-panel-features to main November 19, 2026 20:36
The workspaces panel now replaces the legacy My, Shared, and All
Workspaces tree views in the Coder Remote sidebar, instead of living in its
own activity bar container behind `coder.experimental.workspacesPanel`.

- `coder.workspacesPanel.enabled` (default true, visible in Settings)
  brings the tree views back. The views' `when` clauses read the setting
  through `config.*`, so the sidebar shows exactly one of the two, even
  before activation, and switches as soon as the setting changes.
- "Switch to Legacy Tree Views" and "Switch to Workspaces Panel" in the
  title menus flip the setting.
- One `coder.workspaces.refresh` command and title button serve every
  workspace view; hidden views skip it and list again when shown. The
  panel no longer reports a stale failure when refreshed while hidden.
- The setting is collected in support bundles, and the changelog lists the
  panel's features.
@EhabY
EhabY force-pushed the feat/workspaces-panel-default branch from f93ecee to 856ac3a Compare November 19, 2026 20:36
@EhabY
EhabY merged commit fb5bce6 into main Nov 19, 2026
16 checks passed
@EhabY
EhabY deleted the feat/workspaces-panel-default branch November 19, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants