Feature hasn't been suggested before.
Describe the enhancement you want to request
Problem
When using OpenCode embedded inside VS Code, it cannot properly detect the VS Code workspace.
This is especially problematic for multi-root workspaces (e.g. frontend + backend projects).
Currently, OpenCode:
- Cannot access all workspace folders
- Cannot understand VS Code multi-root structure
- Often only sees a single directory or cwd
This makes it hard to use OpenCode as an in-editor agent compared to tools like Cline or Continue.
Expected Behavior
When running inside VS Code, OpenCode should be able to:
- Detect all
workspaceFolders
- Support multi-root workspaces
- Access the active editor context
- Optionally sync the active project root
Suggested Solutions (Optional)
Some possible approaches:
- Provide an official VS Code extension using
vscode.workspace APIs
- Add a workspace bridge layer that passes workspace info to OpenCode CLI
- Allow explicit workspace injection from VS Code (multi-root aware)
Use Case
My setup:
- VS Code with multi-root workspace
- Frontend (vue)
- Backend (Flask / Python)
This is a very common full-stack workflow in VS Code.
Why This Matters
Without workspace awareness, OpenCode works well in CLI mode,
but loses much of its value when embedded in VS Code.
Better workspace integration would significantly improve adoption
for VS Code users.
Feature hasn't been suggested before.
Describe the enhancement you want to request
Problem
When using OpenCode embedded inside VS Code, it cannot properly detect the VS Code workspace.
This is especially problematic for multi-root workspaces (e.g. frontend + backend projects).
Currently, OpenCode:
This makes it hard to use OpenCode as an in-editor agent compared to tools like Cline or Continue.
Expected Behavior
When running inside VS Code, OpenCode should be able to:
workspaceFoldersSuggested Solutions (Optional)
Some possible approaches:
vscode.workspaceAPIsUse Case
My setup:
This is a very common full-stack workflow in VS Code.
Why This Matters
Without workspace awareness, OpenCode works well in CLI mode,
but loses much of its value when embedded in VS Code.
Better workspace integration would significantly improve adoption
for VS Code users.