@@ -5,15 +5,21 @@ use lsp_server::{Request, Response};
55use lsp_types:: request:: {
66 CallHierarchyIncomingCalls , CallHierarchyOutgoingCalls , CallHierarchyPrepare ,
77 CodeActionRequest , CodeLensRequest , CodeLensResolve , ColorPresentationRequest , Completion ,
8- DocumentColor , DocumentHighlightRequest , DocumentLinkRequest , DocumentLinkResolve ,
9- DocumentSymbolRequest , ExecuteCommand , FoldingRangeRequest , Formatting , GotoDefinition ,
10- GotoImplementation , HoverRequest , InlayHintRequest , InlayHintResolveRequest ,
8+ DocumentColor , DocumentDiagnosticRequest , DocumentHighlightRequest , DocumentLinkRequest ,
9+ DocumentLinkResolve , DocumentSymbolRequest , ExecuteCommand , FoldingRangeRequest , Formatting ,
10+ GotoDefinition , GotoImplementation , HoverRequest , InlayHintRequest , InlayHintResolveRequest ,
1111 InlineValueRequest , OnTypeFormatting , PrepareRenameRequest , RangeFormatting , References ,
1212 Rename , Request as LspRequest , ResolveCompletionItem , SelectionRangeRequest ,
1313 SemanticTokensFullRequest , SignatureHelpRequest , WorkspaceSymbolRequest ,
1414} ;
1515
16- use crate :: { context:: ServerContext , handlers:: document_type_format:: on_type_formatting_handler} ;
16+ use crate :: {
17+ context:: ServerContext ,
18+ handlers:: {
19+ document_diagnostic:: on_pull_document_diagnostic,
20+ document_type_format:: on_type_formatting_handler,
21+ } ,
22+ } ;
1723
1824use super :: {
1925 call_hierarchy:: {
@@ -112,6 +118,7 @@ pub async fn on_request_handler(
112118 CallHierarchyPrepare => on_prepare_call_hierarchy_handler,
113119 CallHierarchyIncomingCalls => on_incoming_calls_handler,
114120 CallHierarchyOutgoingCalls => on_outgoing_calls_handler,
121+ DocumentDiagnosticRequest => on_pull_document_diagnostic,
115122 } ) ;
116123
117124 Ok ( ( ) )
0 commit comments