Skip to main content

Module prelude

Module prelude 

Source

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.
CompletionRequest
Component indicating that the current document is handling a Completion request.
CreateEvent
Event triggers when a document is opened
CstTokens
Component that contains CST leaf tokens from the rowan syntax tree.
DiagnosticItem
DiagnosticPublisher
DiagnosticSender
File
FormatRequest
Component indicating that the current document is currently handling a Format request.
Fs
FsDirEntry
HighlightRequest
Component indicating that the current document is handling a Highlight request.
HoverRequest
Component indicating that the current document is handling a Hover request.
InlayRequest
Component indicating that the current document is currently handling a Inlay request.
LineIndex
Source text plus a line-start index, supporting byte ↔ Position conversion.
MyQuad
MyTerm
Prefix
One defined prefix, maps prefix name to URL.
PrefixComponent
Set when the cursor is on a prefix declaration (Turtle/SPARQL/TriG) or a JSON-LD @context term. Carries the resolved namespace so hover and goto-definition can describe / navigate to it instead of an unrelated triple.
Prefixes
Component containing defined prefixes and base URL.
PrepareRenameRequest
Component indicating that the current document is handling a PrepareRename request.
RenameEdits
Component for collecting rename TextEdits.
SemanticTokensDict
Resource mapping a SemanticTokenType to their used index.
SimpleCompletion
SimpleDiagnostic
Spanned
TokenComponent
Component used to indicate the currently targeted token during a request.
TripleComponent
Component used to indicate the currently targeted MyQuad<'static> during a request.
Triples
Component containing all derived Triples from the documents.
Triples2

Enums§

PositionEncoding
The unit in which an LSP Position.character column is measured.
TermContext
TripleTarget
Component used to indicate the term type of currently targeted Token in the Triple.

Traits§

Client
ClientSync
FsTrait
Lang
LangHelper

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, including Resources and Schedules. All systems defined in crate are added to the World.
spanned
spawn_or_insert