Repository navigation
Conversation
|
I was just looking for this, what are the chances a pr got opened 4 minutes ago :O |
1 task done
Member
|
This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2. — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊 |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #19515
Type of change
What does this PR do?
Adds multi-root workspaces so a session can include multiple folders without relying on symlinks.
This adds persisted
.code-workspacefiles, workspace CRUD routes, app/TUI flows for creating and opening workspaces, session-level workspace association, SDK header propagation, instance root expansion, and LSPworkspaceFolderssupport.A follow-up commit from @dsturnbull extends the feature to instruction discovery, file indexing, file watching, and TUI auth header propagation across all workspace roots.
Existing external
.code-workspacefiles are copied into OpenCode's data directory before OpenCode manages them, so rename/delete actions do not mutate user-owned files.How did you verify your code works?
cd packages/opencode && bun run typecheckcd packages/app && bun run typecheckcd packages/opencode && bun test --timeout 30000 test/server/multi-root-middleware.test.ts test/session/multi-root.test.ts test/lsp/multi-root.test.tsbun turbo typecheckScreenshots / recordings
Checklist