@@ -6,19 +6,19 @@ use erg_compiler::erg_parser::parse::Parsable;
66use lsp_types:: request:: {
77 CallHierarchyIncomingCalls , CallHierarchyOutgoingCalls , CallHierarchyPrepare ,
88 CodeActionRequest , CodeActionResolveRequest , CodeLensRequest , Completion ,
9- DocumentHighlightRequest , DocumentSymbolRequest , ExecuteCommand , FoldingRangeRequest ,
10- GotoDefinition , GotoImplementation , GotoImplementationParams , GotoTypeDefinition ,
11- GotoTypeDefinitionParams , HoverRequest , InlayHintRequest , InlayHintResolveRequest , References ,
12- ResolveCompletionItem , SelectionRangeRequest , SemanticTokensFullRequest , SignatureHelpRequest ,
13- WillRenameFiles , WorkspaceSymbol ,
9+ DocumentHighlightRequest , DocumentLinkRequest , DocumentSymbolRequest , ExecuteCommand ,
10+ FoldingRangeRequest , GotoDefinition , GotoImplementation , GotoImplementationParams ,
11+ GotoTypeDefinition , GotoTypeDefinitionParams , HoverRequest , InlayHintRequest ,
12+ InlayHintResolveRequest , References , ResolveCompletionItem , SelectionRangeRequest ,
13+ SemanticTokensFullRequest , SignatureHelpRequest , WillRenameFiles , WorkspaceSymbol ,
1414} ;
1515use lsp_types:: {
1616 CallHierarchyIncomingCallsParams , CallHierarchyOutgoingCallsParams , CallHierarchyPrepareParams ,
1717 CodeAction , CodeActionParams , CodeLensParams , CompletionItem , CompletionParams ,
18- DocumentHighlightParams , DocumentSymbolParams , ExecuteCommandParams , FoldingRangeParams ,
19- GotoDefinitionParams , HoverParams , InlayHint , InlayHintParams , ReferenceParams ,
20- RenameFilesParams , SelectionRangeParams , SemanticTokensParams , SignatureHelpParams ,
21- WorkspaceSymbolParams ,
18+ DocumentHighlightParams , DocumentLinkParams , DocumentSymbolParams , ExecuteCommandParams ,
19+ FoldingRangeParams , GotoDefinitionParams , HoverParams , InlayHint , InlayHintParams ,
20+ ReferenceParams , RenameFilesParams , SelectionRangeParams , SemanticTokensParams ,
21+ SignatureHelpParams , WorkspaceSymbolParams ,
2222} ;
2323
2424use crate :: server:: Server ;
@@ -61,6 +61,7 @@ pub struct SendChannels {
6161 folding_range : mpsc:: Sender < WorkerMessage < FoldingRangeParams > > ,
6262 selection_range : mpsc:: Sender < WorkerMessage < SelectionRangeParams > > ,
6363 document_highlight : mpsc:: Sender < WorkerMessage < DocumentHighlightParams > > ,
64+ document_link : mpsc:: Sender < WorkerMessage < DocumentLinkParams > > ,
6465 pub ( crate ) health_check : mpsc:: Sender < WorkerMessage < ( ) > > ,
6566}
6667
@@ -90,6 +91,7 @@ impl SendChannels {
9091 let ( tx_folding_range, rx_folding_range) = mpsc:: channel ( ) ;
9192 let ( tx_selection_range, rx_selection_range) = mpsc:: channel ( ) ;
9293 let ( tx_document_highlight, rx_document_highlight) = mpsc:: channel ( ) ;
94+ let ( tx_document_link, rx_document_link) = mpsc:: channel ( ) ;
9395 let ( tx_health_check, rx_health_check) = mpsc:: channel ( ) ;
9496 (
9597 Self {
@@ -117,6 +119,7 @@ impl SendChannels {
117119 folding_range : tx_folding_range,
118120 selection_range : tx_selection_range,
119121 document_highlight : tx_document_highlight,
122+ document_link : tx_document_link,
120123 health_check : tx_health_check,
121124 } ,
122125 ReceiveChannels {
@@ -144,6 +147,7 @@ impl SendChannels {
144147 folding_range : rx_folding_range,
145148 selection_range : rx_selection_range,
146149 document_highlight : rx_document_highlight,
150+ document_link : rx_document_link,
147151 health_check : rx_health_check,
148152 } ,
149153 )
@@ -206,6 +210,7 @@ pub struct ReceiveChannels {
206210 pub ( crate ) folding_range : mpsc:: Receiver < WorkerMessage < FoldingRangeParams > > ,
207211 pub ( crate ) selection_range : mpsc:: Receiver < WorkerMessage < SelectionRangeParams > > ,
208212 pub ( crate ) document_highlight : mpsc:: Receiver < WorkerMessage < DocumentHighlightParams > > ,
213+ pub ( crate ) document_link : mpsc:: Receiver < WorkerMessage < DocumentLinkParams > > ,
209214 pub ( crate ) health_check : mpsc:: Receiver < WorkerMessage < ( ) > > ,
210215}
211216
@@ -292,3 +297,4 @@ impl_sendable!(
292297 DocumentHighlightParams ,
293298 document_highlight
294299) ;
300+ impl_sendable ! ( DocumentLinkRequest , DocumentLinkParams , document_link) ;
0 commit comments