Re-exports§
pub use completion::Label as CompletionLabel;pub use hover::Label as HoverLabel;pub use parse::Label as ParseLabel;pub use rename::PrepareRename as PrepareRenameLabel;pub use rename::Rename as RenameLabel;pub use save::Label as SaveLabel;pub use inlay::Label as InlayLabel;pub use format::Label as FormatLabel;pub use on_type_format::Label as OnTypeFormatLabel;pub use semantic::Label as SemanticLabel;pub use references::Label as ReferencesLabel;pub use goto_definition::Label as GotoDefinitionLabel;pub use goto_type::Label as GotoTypeLabel;pub use code_action::Label as CodeActionLabel;pub use config::*;pub use document::*;pub use resources::*;pub use type_hierarchy::*;
Modules§
- code_
action - completion
- config
- diagnostics
- document
- feature
- Hosts all common features of the semantic language server.
All features supported by the language server.
Features like completion (
CompletionRequest) and hover expose a component that collects items returned to the client. - format
- goto_
definition - goto_
type - hover
- inlay
- on_
type_ format - On-type formatting: react to a typed character and return text edits.
- parse
- references
- rename
- resources
- save
- semantic
- semantic_
token - systems
- type_
hierarchy
Structs§
- Backend
- Transport-agnostic LSP request handler.
- Completion
Request Componentindicating that the current document is handling a Completion request.- Create
Event - Event triggers when a document is opened
- CstTokens
Componentthat contains CST leaf tokens from the rowan syntax tree.- Diagnostic
Item - Diagnostic
Publisher - Diagnostic
Sender - File
- Format
Request Componentindicating that the current document is currently handling a Format request.- Fs
- FsDir
Entry - Highlight
Request Componentindicating that the current document is handling a Highlight request.- Hover
Request Componentindicating that the current document is handling a Hover request.- Inlay
Request Componentindicating that the current document is currently handling a Inlay request.- Line
Index - Source text plus a line-start index, supporting byte ↔
Positionconversion. - MyQuad
- MyTerm
- Prefix
- One defined prefix, maps prefix name to URL.
- Prefix
Component - Set when the cursor is on a prefix declaration (Turtle/SPARQL/TriG) or a
JSON-LD
@contextterm. Carries the resolved namespace so hover and goto-definition can describe / navigate to it instead of an unrelated triple. - Prefixes
Componentcontaining defined prefixes and base URL.- Prepare
Rename Request Componentindicating that the current document is handling a PrepareRename request.- Rename
Edits Componentfor collecting renameTextEdits.- Semantic
Tokens Dict Resourcemapping aSemanticTokenTypeto their used index.- Simple
Completion - Simple
Diagnostic - Spanned
- Token
Component Componentused to indicate the currently targeted token during a request.- Triple
Component Componentused to indicate the currently targetedMyQuad<'static>during a request.- Triples
Componentcontaining all derived Triples from the documents.- Triples2
Enums§
- Position
Encoding - The unit in which an LSP
Position.charactercolumn is measured. - Term
Context - Triple
Target Componentused to indicate the term type of currently targetedTokenin the Triple.
Traits§
Functions§
- get_
current_ cst_ token - get_
current_ triple - lsp_
range_ to_ range - offset_
to_ position - offsets_
to_ range - position_
to_ offset - range_
to_ range - setup_
schedule_ labels - Initializes a
World, includingResourcesandSchedules. All systems defined incrateare added to theWorld. - spanned
- spawn_
or_ insert