Documentation
¶
Overview ¶
gopls.go bridges the Monaco editor's LSP client to a gopls subprocess. gopls speaks LSP over stdio; this proxy exposes it to the WebView over HTTP — SSE downstream (gopls -> browser) and POST upstream (browser -> gopls).
Command monaco-editor is a dark desktop app that embeds the Monaco Editor (the code editor that powers VS Code) inside a native window, with Go language intelligence provided by gopls.
Monaco is loaded client-side via its AMD loader from vendored static files that dark serves same-origin. gopls runs as a subprocess; its LSP traffic is bridged to the WebView over SSE (downstream) and POST (upstream).
Run `make vendor` once to download Monaco into public/vs/, then `go run .`. Go intelligence additionally requires gopls on PATH (or in GOPATH/bin):
go install golang.org/x/tools/gopls@latest