Skip to content

[FEATURE]:VS Code integration: Unable to detect full workspace / multi-root projects #15796

@sinbazhou

Description

@sinbazhou

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request 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:

  1. Provide an official VS Code extension using vscode.workspace APIs
  2. Add a workspace bridge layer that passes workspace info to OpenCode CLI
  3. 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.

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussionwebRelates to opencode on web / desktop

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions