Module mz_lsp_server::backend
source · Expand description
Contains the structure and implementation of the Language Server Protocol.
Structs§
- The Backend struct implements the LanguageServer trait, and thus must provide implementations for its methods. Most imporant methods includes:
- Represents the completion items that will be returned to the client when requested.
- Represents the response from the parse command.
- Represents the structure a client uses to understand statement’s kind and sql content.
- Contains customizable options send by the client.
- This is a re-implemention of mz_sql_parser::parser::StatementParseResult but replacing the sql code with a rope.
- Represents the current schema, database and all its objects the client is using.
- Represents a Materialize object present in the schema, and its columns.
- Represents a column from an [ObjectType
Enums§
- Represents each possible object type admissible by the LSP.
Constants§
- Default formatting width to use in the LanguageServer::formatting implementation.
Functions§
- Builds a tower_lsp::jsonrpc::Error
- This function is a helper function that converts an offset in the file to a (line, column).
- This function converts a (line, column) position in the text to an offset in the file.