Gebruikershulpmiddelen

Site-hulpmiddelen


werkinstructies:vscodium_opencode

Dit is een oude revisie van het document!


connect OpenCode to VSCodium

VSCodium is a community-driven, fully open-source binary distribution of Visual Studio Code (VS Code), built from the same open-source repository (Code-OSS) but without Microsoft's proprietary components.

Connect a TUI interface

manual in the CLI

Because we start opencode with a webinterface we need to attach a TUI interface using opencode. On the command line we could do:
opencode attach http://localhost:4096

as a task in VSCodium

but since we plan to use the TUI in VSCodium we might as wel create a startup task in VSCodium that does this for us when VSCodium starts.

In VSCodium press ''Ctrl+Shift+P', in the list appearing at the top choose Task: Open User Task, choose Others and replace the placeholder text with:

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Attach to OpenCode",
      "type": "shell",
      "command": "opencode attach http://localhost:4096",
      "group": "none",
      "presentation": {
        "reveal": "always",
        "panel": "new"
      },
      "runOptions": {
        "runOn": "folderOpen"
      }
    }
  ]
}

this can now be run with Tasks: Run Task

automatic on VSCodium startup

there are two options to run this task at startup of VSCodium;

  • add the tasks.json file to every project and use Tasks: Manage Automatic Tasks in Folder
  • through an extension like AutoLaunch

the first option causes too much pollution so we choose the second.

werkinstructies/vscodium_opencode.1774446603.txt.gz · Laatst gewijzigd: 2026/03/25 14:50 door abel