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:
BIN
Binary file not shown.
Vendored
+1252
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user