fix(language-server): snippet completion for multi-word names and --version/--help #247
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!247
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/lsp-completion-snippets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two fixes found while testing the language server in editors other than VS Code (step B of 1.6).
Snippet completion for multi-word names
@wheat flouror&pizza doughinsertsName{$0}as a snippet when the client declaressnippetSupport(ClientProfile.snippets,nameInsertion()incompletions-ingredients.ts), so the cursor lands between the braces. Other clients keep the plain-text braces.lsp-completion-snippets.md.gram-language-server --version/--helpsrc/main.tsanswers--version/-v(the package version, injected at build time) or--help/-h, exits 0, and only loads./serverotherwise. The binary is stilldist/server.cjs;gram lspis unchanged (citty already answers both).transport.test.ts, one sentence inreference/tooling/language-server.mdx(en + fr), first bullet oflsp-universal.mdextended (the binary is unreleased).Checks:
bun testin language-server (249 pass),bun run typecheck, biome.