pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
pub fn new(config: ServerConfig) -> Server
pub fn graph(&self) -> impl DatabaseContext + '_
pub fn apply_external_update(&mut self, key: Key, content: String)
pub fn apply_external_removal(&mut self, key: Key)
pub fn handle_did_open_text_document( &mut self, params: DidOpenTextDocumentParams, )
pub fn handle_did_close_text_document( &mut self, params: DidCloseTextDocumentParams, )
pub fn handle_hover(&self, params: HoverParams) -> Option<Hover>
pub fn handle_did_save_text_document( &mut self, params: DidSaveTextDocumentParams, )
pub fn handle_did_change_text_document( &mut self, params: DidChangeTextDocumentParams, )
pub fn handle_did_change_watched_files( &mut self, params: DidChangeWatchedFilesParams, )
pub fn handle_link_completion( &self, params: CompletionParams, completion_context: &LinkCompletionContext, ) -> Vec<CompletionItem>
pub fn handle_completion(&self, params: CompletionParams) -> CompletionResponse
pub fn resolve_completion(&self, completion: CompletionItem) -> CompletionItem
pub fn handle_workspace_symbols( &self, params: WorkspaceSymbolParams, ) -> WorkspaceSymbolResponse
pub fn handle_goto_definition( &self, params: GotoDefinitionParams, ) -> DefinitionResult
pub fn handle_document_formatting( &self, params: DocumentFormattingParams, ) -> Vec<TextEdit>
pub fn handle_inlay_hints(&self, params: InlayHintParams) -> Vec<InlayHint>
pub fn inclusion_edge_hints(&self, key: &Key) -> Vec<InlayHint>
pub fn container_hint(&self, key: &Key) -> Vec<InlayHint>
pub fn refs_counter_hints(&self, key: &Key) -> Vec<InlayHint>
pub fn handle_inline_values(&self, _: InlineValueParams) -> Vec<InlineValue>
pub fn handle_document_symbols( &self, params: DocumentSymbolParams, ) -> Vec<SymbolInformation>
pub fn handle_prepare_rename( &self, params: TextDocumentPositionParams, ) -> Option<PrepareRenameResponse>
pub fn handle_rename( &self, params: RenameParams, ) -> Result<Option<WorkspaceEdit>, ResponseError>
pub fn handle_references(&self, params: ReferenceParams) -> Vec<Location>
pub fn handle_code_action( &self, params: &CodeActionParams, ) -> CodeActionResponse
pub fn handle_code_action_resolve(&self, code_action: &CodeAction) -> CodeAction
pub fn handle_folding_range( &self, params: FoldingRangeParams, ) -> Vec<FoldingRange>
Trait Implementations§
Source§impl ActionContext for &Server
impl ActionContext for &Server
fn key_of(&self, node_id: NodeId) -> Key
fn collect(&self, key: &Key) -> Tree
fn squash(&self, key: &Key, depth: u8) -> Tree
fn random_key(&self, parent: &str) -> Key
fn markdown_options(&self) -> &MarkdownOptions
fn format_options(&self) -> FormatOptions
fn get_command(&self, name: &str) -> Option<&Command>
fn graph(&self) -> &Graph
fn patch(&self) -> Graph
fn key_exists(&self, key: &Key) -> bool
fn get_inclusion_edges_to(&self, key: &Key) -> Vec<NodeId> ⓘ
fn get_reference_edges_to(&self, key: &Key) -> Vec<NodeId> ⓘ
fn get_ref_text(&self, key: &Key) -> Option<String>
fn unique_ids(&self, parent: &str, number: usize) -> Vec<String>
fn random_keys(&self, parent: &str, number: usize) -> Vec<Key>
fn get_node_id_at(&self, key: &Key, line: usize) -> Option<NodeId>
fn get_document_markdown(&self, key: &Key) -> Option<String>
fn get_link_key_at( &self, key: &Key, line: usize, character: usize, ) -> Option<Key>
fn get_link_text_at( &self, key: &Key, line: usize, character: usize, ) -> Option<String>
fn now(&self) -> SystemTime
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
impl UnwindSafe for Server
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more