Skip to content

feat(workspace): Workspace sidebar for multi-root (opencode#215 AC6) - #459

Draft
Rchari1 wants to merge 2 commits into
fix/457-remove-catalogfrom
fix/215-workspace-sidebar
Draft

feat(workspace): Workspace sidebar for multi-root (opencode#215 AC6)#459
Rchari1 wants to merge 2 commits into
fix/457-remove-catalogfrom
fix/215-workspace-sidebar

Conversation

@Rchari1

@Rchari1 Rchari1 commented Aug 20, 2026

Copy link
Copy Markdown
Member

Part of opencode#215 — Workspace-Aware Amicode: Multi-Directory Sessions + Workspace Sidebar

This PR is the amicode extension half (AC6) — stacks on #458 (catalog removal, AC7). Target is fix/457-remove-catalog so diff is workspace-only; merge order: #458 → this.

AC6 — Workspace sidebar (mirrors VS Code Explorer):

  • Renders all workspaceFolders as collapsible roots, expands recursively via vscode.workspace.fs.readDirectory()
  • Theme icons via resourceUri (file/folder icons from active icon theme)
  • Git decorations delegated to VS Code (theme handles modified/untracked)
  • Opens files on click (vscode.open)
  • Context menus: Copy Path, Reveal in Finder — plus inline Open on files
  • Respects files.exclude (prefix filter) and hides .git
  • Live-updates via FileSystemWatcher("**/*")

package.json:

  • Rename amicode.armonia → amicode.workspace "Workspace"
  • Keep amicode.runInspector
  • activationEventsonView:amicode.workspace
  • menus.view/titleamicode.workspace
  • view/item/context for workspace files

Pairs with opencode PR #219 (engine: Location.Ref.directories, boundary, env, instruction multi-root, DB). Full 215 closes when both land.

Add WorkspaceTreeProvider — renders all workspace folders as collapsible
roots, expands recursively via vscode.workspace.fs.readDirectory(),
respects files.exclude, shows theme icons via resourceUri, opens files
on click, context menus (Copy Path, Reveal), and live-updates via
FileSystemWatcher. Replaces amicode.armonia placeholder; Catalog already
removed in #457.

package.json: rename amicode.armonia → amicode.workspace ("Workspace"),
keep runInspector, update activationEvents onView:workspace, add
view/item/context for workspace files.

Follows opencode#215 decision surface: Location.Ref.directories carries
all roots, no external-directory prompts, instructions stacked per dir.
Pairs with opencode PR #219 (engine: schema + boundary + env + instruction
multi-root + DB).
@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c5d5427b-daa3-47df-bf61-d29c5bb82fc8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

Add New File/Folder, Rename, Delete, Copy Path/Relative, Reveal,
Open in Terminal to amicode.workspace viewItem context. Ensures
AC6 full context-menu coverage; Run Inspector stays as separate
webview (amicode.runInspector) not a directory in the tree.
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.

1 participant