Skip to content

feat(vscode): configurable TUI location#15504

Open
dotneB wants to merge 1 commit intoanomalyco:devfrom
dotneB:feat/vscode-tuiLocation-config
Open

feat(vscode): configurable TUI location#15504
dotneB wants to merge 1 commit intoanomalyco:devfrom
dotneB:feat/vscode-tuiLocation-config

Conversation

@dotneB
Copy link

@dotneB dotneB commented Feb 28, 2026

Issue for this PR

Closes #15503

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds opencode.tuiLocation to the vscode extension. Defaults to 'editor' which keeps the previous behavior. Adds 'terminal' to spawn the TUI to vscode Terminal panel instead.

How did you verify your code works?

cd opencode\sdks\vscode
bun compile
[...]
npx @vscode/vsce package --no-git-tag-version --no-update-package-json --no-dependencies --skip-license -o dist/opencode.vsix 1.2.15
[...]

Then installed the vsix in vscode to validate that the default behavior was kept and that the new behavior properly spawned the TUI in the terminal panel.

Screenshots / recordings

In VSCode Setting UI
image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Feb 28, 2026
})

context.subscriptions.push(openTerminalDisposable, addFilepathDisposable)
context.subscriptions.push(openNewTerminalDisposable, openTerminalDisposable, addFilepathDisposable)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically not related to the configurable location. But that disposable was never disposed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running bun compile for the vscode ext gives

❯ bun compile
$ bun run check-types && bun run lint && node esbuild.js
$ tsc --noEmit
$ eslint src

D:\Development\opencode\sdks\vscode\src\extension.ts
    4:33   warning  Missing semicolon  semi
    6:33   warning  Missing semicolon  semi
[...]
  136:54   warning  Missing semicolon  semi
  140:26   warning  Missing semicolon  semi

✖ 50 problems (0 errors, 50 warnings)
  0 errors and 50 warnings potentially fixable with the `--fix` option.

This probably needs to be addressed in another PR

@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Mar 1, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

[FEATURE]: Configurable vscode extension TUI location

1 participant