Expand description
One module per LSP feature. Each turns a Document into
protocol types and knows nothing about the connection.
ModulesΒ§
- completion π
- Completing what is being typed, offering only what fits where the cursor is: statements
that suit the block, elements in UI, argument labels and values in calls, and types after
a
:. - diagnostics π
- hover π
- What the name under the cursor is: a callableβs signature and, for built-ins, the summary from their table.
- navigation π
- Go to definition, find references and highlighting the name under the cursor. Top-level names are shared by every file of a project, so definitions and references can be in other files.
- outline π
- The document outline: top-level declarations, struct fields, and top-level elements such as windows.
- semantic_
tokens π - Semantic tokens for names, which the
TextMategrammar canβt tell apart: a struct from a view, a state value from a local, a built-in element from a declared function. Keywords, literals, operators and comments are left to the grammar. - signature_
help π - The parameters of the call being written, with the one being filled in highlighted.