lsp: type-aware field completions — scan type/let/param decls, complete on dot-access

When a document is opened or changed, scan for `type Name { field: Type }` blocks
and `let var: Type` / `fn foo(param: Type)` annotations. On completion requests,
if the text before the cursor ends with `identifier.`, look up the variable's type
and return its fields as Field (kind=5) completion items instead of the full list.
This commit is contained in:
Will Anderson
2026-05-03 16:16:11 -05:00
parent 0676725cb7
commit 71a1e41f93
3 changed files with 1560 additions and 2 deletions
Vendored Executable
BIN
View File
Binary file not shown.
+1252
View File
File diff suppressed because it is too large Load Diff