Skip to main content

Module features

Module features 

Source
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 TextMate grammar 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.