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
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
self
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.
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.
Revisions
Revision counters of data shared by all documents. See the module docs.
Seen
The revision a consumer last processed. Use as Local<Seen>, one per counter the system depends on.
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
Platform file system used by the server.
Lang
LangHelper

Functions§

get_current_cst_token
Resolve the token at the request’s cursor (see token_at_cursor) into a TokenComponent. In whitespace, the token is empty and sits at the cursor, so completion text is inserted there and filters accept anything.
get_current_triple
is_ignored
Whether file, inside workspace folder root, is one that walk_dir would skip: in a hidden or skip_folder, or ignored by a .gitignore / .ignore file between root and the file, or by .git/info/exclude. Used for files created after the workspace was indexed. (The global git excludes are only applied by walk_dir.)
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.
skip_folder
Folders a workspace walk does not descend into, even outside a git repository or when nothing ignores them.
spanned
spawn_background
Like spawn_or_insert, for documents the server loads in the background (LOV ontologies, owl:imports, configured ontologies and shapes).
spawn_or_insert
walk_dir
Walk root on the local file system (see FsTrait::walk).