Repository navigation
v5.1.0
The language server catches up with the language. Everything the compiler
knows — every declaration, every built-in type's methods, every keyword in
every place — the editor now completes, explains, finds and renames, and
it gains formatting, references, signature help, folding, inlay types and
semantic highlighting. What it offers is read from tables the compiler
publishes, each held by a test to the code that reads it, so the editor
cannot fall behind the compiler again.
The editor
- Markdown pages are checked as you type, and a finding is checked
again when a file it depends on changes: a translation, a.env, a
project script, a file inpublic/. - Go to definition, find references, highlight and rename work for
every declaration — a type, an enum and its cases, a record's field, a
const, adatafile, an animation, a service's endpoint, a route
parameter, a socket, a form or element handle — and inside a string's
{…}splices. - Completion knows the fields of a record and the methods of each
built-in type (due.offersplus,isBefore, …), a service's
endpoints, the keywords each place allows (a store's, an action's, a
test's steps), type names after:, duration units after a number,
validaterules,persistsettings,formatstyles, responsive steps,
Hosttags, key names inon key("…"), translation keys int("…"),
publicenv.names, and codes in// wf-allow(. - Hover says what every name is:
Hostand the props every element
takes, a function the language gives, every keyword, a record's field, an
endpoint, a case, animage's size. - New: formatting (
wf fmton the open file), find references,
document highlights, signature help inside a call, folding, inlay hints
for the type of astateorderivedvalue written without one, and
semantic highlighting — a name coloured by what it resolves to.
The compiler
V10: aHost(tag: …)it does not make used to be adivwithout a
word; it is now a warning naming the tags it makes.- An
imageis typed:hero.widhtis aT05, with the fields an
image has.
Full Changelog: v5.0.1...v5.1.0