pub struct LSPService { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Debug for LSPService
impl Debug for LSPService
Source§impl Handler for LSPService
impl Handler for LSPService
fn initialized(&self) -> bool
fn initialize( &self, req: InitializeParams, ) -> Result<InitializeResult, ErrorCode>
fn semantic_tokens_full_request( &self, req: SemanticTokensParams, ) -> Result<Option<SemanticTokensResult>, ErrorCode>
fn completion( &self, req: CompletionParams, ) -> Result<Option<CompletionResponse>, ErrorCode>
fn on_did_open_text_document(&self, req: DidOpenTextDocumentParams)
fn on_did_change_text_document(&self, req: DidChangeTextDocumentParams)
fn invalid_params(&self, id: Id) -> Message
fn method_not_found(&self, id: Id) -> Message
fn internal_error(&self, id: Id) -> Message
fn handle(&self, message: Message) -> Option<Message>
fn apply_workspace_edit( &self, _req: ApplyWorkspaceEditParams, ) -> Result<ApplyWorkspaceEditResponse, ErrorCode>
fn call_hierarchy_incoming_calls( &self, _req: CallHierarchyIncomingCallsParams, ) -> Result<Option<Vec<CallHierarchyIncomingCall>>, ErrorCode>
fn call_hierarchy_outgoing_calls( &self, _req: CallHierarchyOutgoingCallsParams, ) -> Result<Option<Vec<CallHierarchyOutgoingCall>>, ErrorCode>
fn call_hierarchy_prepare( &self, _req: CallHierarchyPrepareParams, ) -> Result<Option<Vec<CallHierarchyItem>>, ErrorCode>
fn code_action_request( &self, _req: CodeActionParams, ) -> Result<Option<CodeActionResponse>, ErrorCode>
fn code_action_resolve_request( &self, _req: CodeAction, ) -> Result<CodeAction, ErrorCode>
fn code_lens_refresh(&self) -> Result<(), ErrorCode>
fn code_lens_request( &self, _req: CodeLensParams, ) -> Result<Option<Vec<CodeLens>>, ErrorCode>
fn code_lens_resolve(&self, _req: CodeLens) -> Result<CodeLens, ErrorCode>
fn color_presentation_request( &self, _req: ColorPresentationParams, ) -> Result<Vec<ColorPresentation>, ErrorCode>
fn document_color( &self, _req: DocumentColorParams, ) -> Result<Vec<ColorInformation>, ErrorCode>
fn document_diagnostic_request( &self, _req: DocumentDiagnosticParams, ) -> Result<DocumentDiagnosticReportResult, ErrorCode>
fn document_highlight_request( &self, _req: DocumentHighlightParams, ) -> Result<Option<Vec<DocumentHighlight>>, ErrorCode>
fn document_link_request( &self, _req: DocumentLinkParams, ) -> Result<Option<Vec<DocumentLink>>, ErrorCode>
fn document_link_resolve( &self, _req: DocumentLink, ) -> Result<DocumentLink, ErrorCode>
fn document_symbol_request( &self, _req: DocumentSymbolParams, ) -> Result<Option<DocumentSymbolResponse>, ErrorCode>
fn execute_command( &self, _req: ExecuteCommandParams, ) -> Result<Option<Value>, ErrorCode>
fn folding_range_request( &self, _req: FoldingRangeParams, ) -> Result<Option<Vec<FoldingRange>>, ErrorCode>
fn formatting( &self, _req: DocumentFormattingParams, ) -> Result<Option<Vec<TextEdit>>, ErrorCode>
fn goto_declaration( &self, _req: GotoDefinitionParams, ) -> Result<GotoDefinitionResponse, ErrorCode>
fn goto_definition( &self, _req: GotoDefinitionParams, ) -> Result<GotoDefinitionResponse, ErrorCode>
fn goto_implementation( &self, _req: GotoDefinitionParams, ) -> Result<GotoDefinitionResponse, ErrorCode>
fn goto_type_definition( &self, _req: GotoDefinitionParams, ) -> Result<GotoDefinitionResponse, ErrorCode>
fn hover_request(&self, _req: HoverParams) -> Result<Option<Hover>, ErrorCode>
fn inlay_hint_refresh_request(&self) -> Result<(), ErrorCode>
fn inlay_hint_request( &self, _req: InlayHintParams, ) -> Result<Option<Vec<InlayHint>>, ErrorCode>
fn inlay_hint_resolve_request( &self, _req: InlayHint, ) -> Result<InlayHint, ErrorCode>
fn inline_value_refresh_request(&self) -> Result<(), ErrorCode>
fn inline_value_request( &self, _req: InlineValueParams, ) -> Result<Option<Vec<InlineValue>>, ErrorCode>
fn linked_editing_range( &self, _req: LinkedEditingRangeParams, ) -> Result<Option<LinkedEditingRanges>, ErrorCode>
fn moniker_request( &self, _req: MonikerParams, ) -> Result<Option<Vec<Moniker>>, ErrorCode>
fn on_type_formatting( &self, _req: DocumentOnTypeFormattingParams, ) -> Result<Option<Vec<TextEdit>>, ErrorCode>
fn prepare_rename_request( &self, _req: TextDocumentPositionParams, ) -> Result<Option<PrepareRenameResponse>, ErrorCode>
fn range_formatting( &self, _req: DocumentRangeFormattingParams, ) -> Result<Option<Vec<TextEdit>>, ErrorCode>
fn references( &self, _req: ReferenceParams, ) -> Result<Option<Vec<Location>>, ErrorCode>
fn register_capability(&self, _req: RegistrationParams) -> Result<(), ErrorCode>
fn rename(&self, _req: RenameParams) -> Result<Option<WorkspaceEdit>, ErrorCode>
fn resolve_completion_item( &self, _req: CompletionItem, ) -> Result<CompletionItem, ErrorCode>
fn selection_range_request( &self, _req: SelectionRangeParams, ) -> Result<Option<Vec<SelectionRange>>, ErrorCode>
fn semantic_tokens_full_delta_request( &self, _req: SemanticTokensDeltaParams, ) -> Result<Option<SemanticTokensFullDeltaResult>, ErrorCode>
fn semantic_tokens_range_request( &self, _req: SemanticTokensRangeParams, ) -> Result<Option<SemanticTokensRangeResult>, ErrorCode>
fn semantic_tokens_refresh(&self) -> Result<(), ErrorCode>
fn show_document( &self, _req: ShowDocumentParams, ) -> Result<ShowDocumentResult, ErrorCode>
fn show_message_request( &self, _req: ShowMessageParams, ) -> Result<Option<MessageActionItem>, ErrorCode>
fn shutdown(&self) -> Result<(), ErrorCode>
fn signature_help_request( &self, _req: SignatureHelpParams, ) -> Result<Option<SignatureHelp>, ErrorCode>
fn type_hierarchy_prepare( &self, _req: TypeHierarchyPrepareParams, ) -> Result<Option<Vec<TypeHierarchyItem>>, ErrorCode>
fn type_hierarchy_subtypes( &self, _req: TypeHierarchySubtypesParams, ) -> Result<Option<Vec<TypeHierarchyItem>>, ErrorCode>
fn type_hierarchy_supertypes( &self, _req: TypeHierarchySupertypesParams, ) -> Result<Option<Vec<TypeHierarchyItem>>, ErrorCode>
fn unregister_capability( &self, _req: UnregistrationParams, ) -> Result<(), ErrorCode>
fn will_create_files( &self, _req: CreateFilesParams, ) -> Result<Option<WorkspaceEdit>, ErrorCode>
fn will_delete_files( &self, _req: DeleteFilesParams, ) -> Result<Option<WorkspaceEdit>, ErrorCode>
fn will_rename_files( &self, _req: RenameFilesParams, ) -> Result<Option<WorkspaceEdit>, ErrorCode>
fn will_save_wait_until( &self, _req: WillSaveTextDocumentParams, ) -> Result<Option<Vec<TextEdit>>, ErrorCode>
fn work_done_progress_create( &self, _req: WorkDoneProgressCreateParams, ) -> Result<(), ErrorCode>
fn workspace_configuration( &self, _req: ConfigurationParams, ) -> Result<Vec<Value>, ErrorCode>
fn workspace_diagnostic_refresh(&self) -> Result<(), ErrorCode>
fn workspace_diagnostic_request( &self, _req: WorkspaceDiagnosticParams, ) -> Result<WorkspaceDiagnosticReportResult, ErrorCode>
fn workspace_folders_request( &self, ) -> Result<Option<Vec<WorkspaceFolder>>, ErrorCode>
fn workspace_symbol_request( &self, _req: WorkspaceSymbolParams, ) -> Result<Option<WorkspaceSymbolResponse>, ErrorCode>
fn workspace_symbol_resolve( &self, _req: WorkspaceSymbol, ) -> Result<WorkspaceSymbol, ErrorCode>
fn on_cancel(&self, _req: CancelParams)
fn on_did_change_configuration(&self, _req: DidChangeConfigurationParams)
fn on_did_change_notebook_document(&self, _req: DidChangeNotebookDocumentParams)
fn on_did_change_watched_files(&self, _req: DidChangeWatchedFilesParams)
fn on_did_change_workspace_folders(&self, _req: DidChangeWorkspaceFoldersParams)
fn on_did_close_notebook_document(&self, _req: DidCloseNotebookDocumentParams)
fn on_did_close_text_document(&self, _req: DidCloseTextDocumentParams)
fn on_did_create_files(&self, _req: CreateFilesParams)
fn on_did_delete_files(&self, _req: DeleteFilesParams)
fn on_did_open_notebook_document(&self, _req: DidOpenNotebookDocumentParams)
fn on_did_rename_files(&self, _req: RenameFilesParams)
fn on_did_save_notebook_document(&self, _req: DidSaveNotebookDocumentParams)
fn on_did_save_text_document(&self, _req: DidSaveTextDocumentParams)
fn on_initialized(&self, _req: InitializedParams)
fn on_log_message(&self, _req: LogMessageParams)
fn on_log_trace(&self, _req: LogTraceParams)
fn on_progress(&self, _req: ProgressParams)
fn on_publish_diagnostics(&self, _req: PublishDiagnosticsParams)
fn on_set_trace(&self, _req: SetTraceParams)
fn on_show_message(&self, _req: ShowMessageParams)
fn on_telemetry_event(&self, _req: OneOf<LSPObject, LSPArray>)
fn on_will_save_text_document(&self, _req: WillSaveTextDocumentParams)
fn on_work_done_progress_cance(&self, _req: WorkDoneProgressCancelParams)
Auto Trait Implementations§
impl !Freeze for LSPService
impl !RefUnwindSafe for LSPService
impl Send for LSPService
impl Sync for LSPService
impl Unpin for LSPService
impl !UnwindSafe for LSPService
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Set the foreground color generically Read more
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Set the background color generically. Read more
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to magenta
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Change the foreground color to the terminal default
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Change the background color to the terminal default
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Change the foreground color to bright black
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Change the background color to bright black
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Change the foreground color to bright red
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Change the background color to bright red
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Change the foreground color to bright green
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Change the background color to bright green
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Change the foreground color to bright yellow
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Change the background color to bright yellow
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Change the foreground color to bright blue
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Change the background color to bright blue
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright magenta
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright magenta
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright purple
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright purple
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Change the foreground color to bright cyan
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Change the background color to bright cyan
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Change the foreground color to bright white
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Change the background color to bright white
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Make the text blink (but fast!)
Hide the text
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Cross out the text
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the foreground color at runtime. Only use if you do not know which color will be used at
compile-time. If the color is constant, use either [
OwoColorize::fg
] or
a color-specific method, such as [OwoColorize::green
], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the background color at runtime. Only use if you do not know what color to use at
compile-time. If the color is constant, use either [
OwoColorize::bg
] or
a color-specific method, such as [OwoColorize::on_yellow
], Read more§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the foreground color to a specific RGB value.
§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the background color to a specific RGB value.
§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Sets the foreground color to an RGB value.
§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Sets the background color to an RGB value.