Skip to content

Add right sidebar with file explorer, source control, and Monaco editor - #21

Merged
nwparker merged 1 commit into
mainfrom
nwparker/vscode-sidebar
Mar 22, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/vscode-sidebar

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

  • Adds a VS Code-style right sidebar with File Explorer (virtualized tree, lazy-loaded directories) and Source Control tabs (git status with stage/unstage/discard actions, "View All Changes" combined diff view)
  • Integrates Monaco Editor for file viewing/editing with syntax highlighting (70+ languages), Cmd+S save, and undo-aware dirty tracking
  • Diff Viewer with side-by-side and inline modes via Monaco DiffEditor
  • Unified tab bar — editor tabs (file/diff icons) live alongside terminal tabs with context menus, horizontal wheel scrolling, and keyboard shortcuts (Cmd+Shift+E/G, Cmd+W, Cmd+Shift+]/[)
  • Save confirmation dialog when closing dirty editor tabs, plus beforeunload guard on shutdown
  • Path-validated IPC handlers for filesystem and git operations (5MB limit, binary detection)
  • Right sidebar width persisted across sessions

Test plan

  • Toggle right sidebar via titlebar button or Cmd+Shift+E
  • File Explorer: expand/collapse folders, click files to open in Monaco
  • Edit a file, Cmd+S to save, verify undo clears dirty indicator
  • Source Control: view changed files, click for diff, use stage/unstage/discard buttons
  • "View All Changes" opens combined scrollable diff with collapsible sections
  • Unified tab bar: terminal + editor tabs coexist, right-click context menus work on both
  • Cmd+W on dirty editor tab shows Save/Don't Save/Cancel dialog
  • Horizontal wheel scrolling when many tabs overflow
  • Terminal still works when no editor tabs are open

🤖 Generated with Claude Code

Adds a VS Code-style right sidebar with File Explorer and Source Control
tabs, plus Monaco Editor integration for file viewing/editing and diff
viewing. Unified tab bar shows both terminal and editor tabs together.

Features:
- File Explorer: virtualized tree with lazy-loaded directories
- Source Control: git status with stage/unstage/discard, "View All Changes"
  combined diff view with collapsible sections
- Monaco Editor: syntax highlighting (70+ languages), Cmd+S save, dirty
  tracking with undo-aware state
- Diff Viewer: side-by-side and inline modes via Monaco DiffEditor
- Unified tab bar: editor tabs alongside terminal tabs with context menus,
  horizontal wheel scrolling, keyboard shortcuts (Cmd+Shift+E/G, Cmd+W)
- Save confirmation dialog when closing dirty editor tabs
- Path-validated IPC handlers for filesystem and git operations
- Right sidebar width persisted across sessions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nwparker
nwparker merged commit c0eaf32 into main Mar 22, 2026
sinkerine pushed a commit to sinkerine/orca that referenced this pull request Sep 12, 2026
…-pty-ownership

fix(window): a project window owns its project's terminals
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…or (stablyai#21)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
nwparker added a commit that referenced this pull request Oct 19, 2026
…ew callers off the deprecated owner resolver

The creation-action policy and browser creation (#3, #48) fold together, so the provider the
policy offers is the one creation uses. Browser panes, page lifecycle and conversion, tab
duplication, the explorer tree pane, doc-preview actions and editor path moves (#21, #43, #45-#47,
#49, #50) read runtimeEnvironmentIdWithLegacyFallbackUnlessTwin. File-explorer writes on a folder
(#51) take the owner from the rows alone, never from the focused server. Deprecated importers
16 -> 6.
nwparker added a commit that referenced this pull request Oct 19, 2026
…iew off the deprecated owner resolver (#30562)

* refactor(renderer): fold browser creation, file actions and doc-preview callers off the deprecated owner resolver

The creation-action policy and browser creation (#3, #48) fold together, so the provider the
policy offers is the one creation uses. Browser panes, page lifecycle and conversion, tab
duplication, the explorer tree pane, doc-preview actions and editor path moves (#21, #43, #45-#47,
#49, #50) read runtimeEnvironmentIdWithLegacyFallbackUnlessTwin. File-explorer writes on a folder
(#51) take the owner from the rows alone, never from the focused server. Deprecated importers
16 -> 6.

* refactor(renderer): fold file preview off the deprecated owner resolver; Open in Orca Browser refuses a twin

A project two hosts publish reads as no server for the doc-preview plan, but the file:// path now
refuses it with its own message instead of opening this machine's copy (#7). Deprecated importers
6 -> 5.

* fix(renderer): a twin's file preview and open-externally refuse instead of opening this machine's copy

Codex P2 on the F7 folds: a folder twin read as no server, so the preview plan built a local
file:// tab and open-externally handed the path to this machine's OS. Both now check the owner
for ambiguity first. Also fix two test fixtures that broke the renderer typecheck.

* refactor(renderer): move the file:// open target out of file-preview.ts

file-preview.ts crossed its line limit after main grew it; the file:// target, its type and its two
refusal messages move to workspace-file-browser-open-target.ts, which they never depended on
file-preview for.

* test: mock the replacement resolver in the quick-action availability suite (Codex P2)
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