monaco-editor

command
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2026 License: MIT Imports: 17 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL