Skip to content

feat: add Candor Language Server template#1609

Open
tombaldwin wants to merge 1 commit into
redhat-developer:mainfrom
tombaldwin:add-candor-lsp-template
Open

feat: add Candor Language Server template#1609
tombaldwin wants to merge 1 commit into
redhat-developer:mainfrom
tombaldwin:add-candor-lsp-template

Conversation

@tombaldwin

Copy link
Copy Markdown

Adds a template for the candor language server — a per-function side-effect map rendered in-editor from a precomputed report:

  • CodeLens on each effectful function: ⚡ Db, Net · blast radius 12 (transitive effects + how many functions are affected by a change);
  • Diagnostics: the repo's checked-in architecture policy (e.g. the domain layer performs no I/O) evaluated live, a violation squiggled at the offending function;
  • Hover: effect provenance — the call chain through which an inherited effect reaches its source.

The server is engine-agnostic (one report format covers JVM bytecode, TypeScript/JavaScript, Rust and Swift) and ships as candor-lsp in the candor-ts npm package. The template + installer follow the typescript-language-server pattern (npm install into the lsp4ij working dir, then configure the .bin command); template.json maps the file types the report can cover.

Tested locally: both JSON files parse, and the server negotiates codeLens/hover/diagnostics over LSP stdio (its behavioral suite runs in the candor-ts repo).

candor (https://candor.poly.io) renders a per-function side-effect map in the
editor — CodeLens (effects + blast radius), architecture-policy diagnostics, and
effect-provenance hover — from a precomputed report covering JVM/TS/Rust/Swift
code. The server ships in the candor-ts npm package as `candor-lsp`; the
installer follows the typescript-language-server pattern.
tombaldwin added a commit to tombaldwin/candor that referenced this pull request Jul 2, 2026
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LaEvHERUSb26e5qcgoMu8x
@tombaldwin tombaldwin changed the title Add Candor Language Server template feat: add Candor Language Server template Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant