The compiler keeps the state of a compilation in a context
(Compilation.fs, on its branch compilation-context), and a value that was a
module-level mutable is a Per. The server sets Diagnostics.verbose,
Paths.sourceOverrides, Paths.compilerAssembly and the five observers, each
now as x.Value <- ...
No change to what the server does: every check still runs in the one root
context.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- textDocument/signatureHelp: the function whose call the cursor is in,
with the parameter that is being written marked. A definition shows its
head as written; an import, a trait's method and a builtin show their
type. It reads tokens as far as the cursor, so a call that is not closed
has help.
- textDocument/formatting: the whole text as bjo fmt lays it out. The
server runs bjo -q fmt - on the buffer's text.
- A quick fix at a function with no signature writes the one its body
gives it, on a line above the definition
(CheckDecl.observeMissingSignature, in the compiler).
- The server says version 0.8.0.
Needs the compiler at its commit "CheckDecl.observeMissingSignature".
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
textDocument/references and documentHighlight give the uses of the name
at point in its module, found as go to definition finds a binding: a
local, a top-level definition, a type or a constructor, or an imported
name where the module uses it. Uses.fs holds the search, which Rename
now shares.
textDocument/codeAction offers what the compiler worked out while it
checked (Exhaustiveness.observe, Holes.observe, kept by Fixes.fs): at an
incomplete match, the clauses it lacks, lined up after its last clause
with holes as bodies; at a typed hole, a binding in scope that fits, a
constructor of its type with holes for what it takes, or a fun.
Version 0.7.0.
🤖 Generated with [ECA](https://eca.dev)
Co-Authored-By: eca-agent <git@eca.dev>