Dit is een oude revisie van het document!
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.
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
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"
}
]
}
this can now be run with Tasks: Run Task
there are two options to run this task at startup of VSCodium;
for the first option needs you to add:
},
"runOptions": {
"runOn": "folderOpen"
}
it does cause too much pollution so we choose the second.