@@ -6,19 +6,19 @@ use erg_compiler::erg_parser::parse::Parsable;
6
6
use lsp_types:: request:: {
7
7
CallHierarchyIncomingCalls , CallHierarchyOutgoingCalls , CallHierarchyPrepare ,
8
8
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 ,
14
14
} ;
15
15
use lsp_types:: {
16
16
CallHierarchyIncomingCallsParams , CallHierarchyOutgoingCallsParams , CallHierarchyPrepareParams ,
17
17
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 ,
22
22
} ;
23
23
24
24
use crate :: server:: Server ;
@@ -61,6 +61,7 @@ pub struct SendChannels {
61
61
folding_range : mpsc:: Sender < WorkerMessage < FoldingRangeParams > > ,
62
62
selection_range : mpsc:: Sender < WorkerMessage < SelectionRangeParams > > ,
63
63
document_highlight : mpsc:: Sender < WorkerMessage < DocumentHighlightParams > > ,
64
+ document_link : mpsc:: Sender < WorkerMessage < DocumentLinkParams > > ,
64
65
pub ( crate ) health_check : mpsc:: Sender < WorkerMessage < ( ) > > ,
65
66
}
66
67
@@ -90,6 +91,7 @@ impl SendChannels {
90
91
let ( tx_folding_range, rx_folding_range) = mpsc:: channel ( ) ;
91
92
let ( tx_selection_range, rx_selection_range) = mpsc:: channel ( ) ;
92
93
let ( tx_document_highlight, rx_document_highlight) = mpsc:: channel ( ) ;
94
+ let ( tx_document_link, rx_document_link) = mpsc:: channel ( ) ;
93
95
let ( tx_health_check, rx_health_check) = mpsc:: channel ( ) ;
94
96
(
95
97
Self {
@@ -117,6 +119,7 @@ impl SendChannels {
117
119
folding_range : tx_folding_range,
118
120
selection_range : tx_selection_range,
119
121
document_highlight : tx_document_highlight,
122
+ document_link : tx_document_link,
120
123
health_check : tx_health_check,
121
124
} ,
122
125
ReceiveChannels {
@@ -144,6 +147,7 @@ impl SendChannels {
144
147
folding_range : rx_folding_range,
145
148
selection_range : rx_selection_range,
146
149
document_highlight : rx_document_highlight,
150
+ document_link : rx_document_link,
147
151
health_check : rx_health_check,
148
152
} ,
149
153
)
@@ -206,6 +210,7 @@ pub struct ReceiveChannels {
206
210
pub ( crate ) folding_range : mpsc:: Receiver < WorkerMessage < FoldingRangeParams > > ,
207
211
pub ( crate ) selection_range : mpsc:: Receiver < WorkerMessage < SelectionRangeParams > > ,
208
212
pub ( crate ) document_highlight : mpsc:: Receiver < WorkerMessage < DocumentHighlightParams > > ,
213
+ pub ( crate ) document_link : mpsc:: Receiver < WorkerMessage < DocumentLinkParams > > ,
209
214
pub ( crate ) health_check : mpsc:: Receiver < WorkerMessage < ( ) > > ,
210
215
}
211
216
@@ -292,3 +297,4 @@ impl_sendable!(
292
297
DocumentHighlightParams ,
293
298
document_highlight
294
299
) ;
300
+ impl_sendable ! ( DocumentLinkRequest , DocumentLinkParams , document_link) ;
0 commit comments