Expand description
Contains the structure and implementation of the Language Server Protocol.
Structs§
- Backend
- The Backend struct implements the LanguageServer trait, and thus must provide implementations for its methods. Most imporant methods includes:
- Completions
- Represents the completion items that will be returned to the client when requested.
- Execute
Command Parse Response - Represents the response from the parse command.
- Execute
Command Parse Statement - Represents the structure a client uses to understand statement’s kind and sql content.
- Initialize
Options - Contains customizable options send by the client.
- Parse
Result - This is a re-implementation of mz_sql_parser::parser::StatementParseResult but replacing the sql code with a rope.
- Schema
- Represents the current schema, database and all its objects the client is using.
- Schema
Object - Represents a Materialize object present in the schema, and its columns.
- Schema
Object Column - Represents a column from an [ObjectType
- Text
Document 🔒Item
Enums§
- Object
Type - Represents each possible object type admissible by the LSP.
Constants§
- DEFAULT_
FORMATTING_ WIDTH - Default formatting width to use in the LanguageServer::formatting implementation.
Functions§
- build_
error 🔒 - Builds a tower_lsp::jsonrpc::Error
- offset_
to_ 🔒position - This function is a helper function that converts an offset in the file to a (line, column).
- position_
to_ 🔒offset - This function converts a (line, column) position in the text to an offset in the file.