LSP-openplanet for Sublime Text

Openplanet AngelScript language support for Sublime Text

View the Project on GitHub clankercode/lsp-openplanet-sublime

Verification

Verified on Linux x86_64 on 2026-10-19. This is evidence for the surfaces listed here, not a claim that every server feature or supported OS was exercised.

Versions and checks

Real editor

The screenshot was captured with ImageMagick import -window root from our own 1440×1000 Xvfb display. It is the actual Sublime editor, including its real diagnostics panel and inline annotation, with no HTML recreation, painted diagnostics, or compositing. The sample is an original minimal plugin in this repository, dedicated under both public-domain licenses; mesage is deliberately misspelled.

A temporary harness reads LSP’s actual session/buffer diagnostics. scripts/editor_smoke.py exercises the diagnostic lifecycle inside Sublime:

  1. Observe the server’s undefined identifier \mesage`` diagnostic.
  2. Correct the in-memory buffer to message; verify the diagnostic clears.
  3. Restore the original buffer; verify the diagnostic returns.
  4. Open info.toml; verify it is attached with TOML language ID.
  5. Open unrelated TOML; verify it is excluded.

Machine-readable editor receipt. The harness uses explicit exceptions rather than Python assert: Sublime’s optimized Python host disables assertions. It restores the example in memory and never saves its edits to disk.

Reproduce

  1. Download the official portable Sublime build into an empty /tmp directory and create its Data directory.
  2. Install LSP 2.16+ and its declared libraries into that portable profile. This run cloned the release and extracted the libraries from https://packages.sublimetext.com/channel_v4.json into Data/Lib/python314: mdpopups 5.1.2, bracex 3.1, wcmatch 11.1, typing-extensions 4.16.0, orjson 3.13.0, and pygments 2.21.0. Package Control was downloaded but disabled in the temporary profile; this was a manual harness install, not a verified Package Control end-user install.
  3. Clone/copy this repository to Data/Packages/LSP-openplanet; verify the folder name. Ensure openplanet-lsp is executable on PATH or set server_path in User settings.
  4. Start an unused Xvfb display and a window manager on that display. Use GDK_BACKEND=x11 and a private XDG_RUNTIME_DIR; a private dbus-run-session avoided desktop-session interference in this environment. Open examples/diagnostics and its Main.as in that portable editor.
  5. Focus Main.as, wait for real diagnostics, then copy scripts/editor_smoke.py into Data/Packages/User/. Read /tmp/lsp-sublime-smoke.json; a real passing receipt contains nonempty initial and final diagnostics, empty corrected diagnostics, and an attached TOML manifest.
  6. Maximize the editor, run LSP: Show Diagnostics Panel, capture with DISPLAY=:<your-display> import -window root screenshot.png. Remove temporary harnesses and terminate only the processes/displays you started.

Limits

Review corrections

The clean-start smoke also confirms the source is sent with language_id: angelscript. A symlinked temporary-directory run (TMPDIR=/proc/self/root/tmp) passed all 18 tests after resolving expected test paths, covering the macOS /var alias behavior.

Real editor testing found mixed-version syntax inheritance; a red/green regression test was added and the grammar now includes the built-in C++ scope. Independent API review found and fixed ClientConfig access, PATH normalization, crossed syntax/file selection, and advertising additional loose roots. The local registry checker led to moving shared code into lib/, removing generated Package Control metadata from source, and aligning the settings menu.