Skip to content

manticore lsp: language server over stdio #454

Open

Description

@blacktrs

Why

Editors (VS Code, Zed, JetBrains) integrate through LSP. A native server compiled by Manticore gives instant start and low memory, and is the only tool that understands the superset syntax and compiler diagnostics.

Scope

  • manticore lsp command, JSON-RPC 2.0 with Content-Length framing, lifecycle, text sync.
  • UTF-16 position layer, debounce, cancellation.
  • Features in order: diagnostics, documentSymbol, hover, definition, references, rename, completion, workspace/symbol, formatting via manticore-fmt, code actions.
  • Opt-in activation and a capability subset so it can run beside another PHP server.
  • Leak replay test, RSS watchdog or restart policy, capped logs.
  • Recorded-session protocol tests (tests/lsp); benchmark vs Intelephense and Phpactor.

Depends on

Analyzer library API, incremental index, position queries.

Design: docs/superpowers/specs/2026-10-25-lsp-foundation-design.md (Phase 3).
Open: stdin read primitive, concurrency model, value of --deep (MIR) diagnostics in an editor.

Activity

  1. added
    enhancement
    needs-design
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds-design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions