v0.19.1
Added
runner lspcompletes[tasks.overrides]entry keys with the
project's own task names (discovered from the document's directory,
same detection as the CLI), each carrying its source and description.
Works both under the[tasks.overrides]header and as a dotted
overrides.<task>key in[tasks]; names that aren't bare TOML keys
(e.g.build:web) insert quoted. Dottedoverrides.<task> =values
now complete the source-label vocabulary like their
[tasks.overrides]equivalents.runner lspkey completions scaffold the value shape the field's
schema type calls for, when the client supports snippets: array fields
insertpms = ["|"], string fieldsnode = "|", others a bare tab
stop; table fields continue the dotted key path (overrides.), which
re-triggers completion. Clients without snippet support keep the plain
name =insert.
Fixed
runner lspno longer offers field completions after a dotted key
(group_output.suggested the section's whole field list; TOML reads
the dot as a key path, and no section has enumerable sub-keys). Key
completions also now carry an explicit text edit replacing the typed
token, so a completion accepted from a stale list (e.g. left open
across a backspace) substitutes the token instead of pasting after it
(group_outputgroup_output =).runner lspvalue completions inside an open string literal
(prefer = ["ba) insert the bare word instead of a quoted one — the
quotes are already typed (and auto-paired), so accepting previously
produced""bacon"".runner lspis now comment-aware: no completions or hover at or after
a#(whole-line or trailing); a#inside a string literal still
isn't treated as a comment.
What's Changed
- fix(lsp): dotted-key completion fixes + complete [tasks.overrides] keys with project task names by @kjanat in #85
Full Changelog: v0.19.0...v0.19.1