File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -267,6 +267,7 @@ export const baseRuntime = (connections: { reader: MessageReader; writer: Messag
267
267
sendProgress : < P > ( type : ProgressType < P > , token : ProgressToken , value : P ) => {
268
268
return lspConnection . sendProgress ( type , token , value )
269
269
} ,
270
+ onDefinition : handler => lspConnection . onDefinition ( handler ) ,
270
271
onHover : handler => lspConnection . onHover ( handler ) ,
271
272
onSignatureHelp : handler => lspConnection . onSignatureHelp ( handler ) ,
272
273
onCodeAction : handler => lspConnection . onCodeAction ( handler ) ,
Original file line number Diff line number Diff line change @@ -408,6 +408,7 @@ export const standalone = (props: RuntimeProps) => {
408
408
409
409
return lspConnection . sendProgress ( type , token , value )
410
410
} ,
411
+ onDefinition : handler => lspConnection . onDefinition ( handler ) ,
411
412
onHover : handler => lspConnection . onHover ( handler ) ,
412
413
onSignatureHelp : handler => lspConnection . onSignatureHelp ( handler ) ,
413
414
onCodeAction : handler => lspConnection . onCodeAction ( handler ) ,
Original file line number Diff line number Diff line change 8
8
CompletionList ,
9
9
CompletionParams ,
10
10
ConfigurationOptions ,
11
+ DefinitionParams ,
11
12
DidChangeConfigurationParams ,
12
13
DidChangeTextDocumentParams ,
13
14
DidChangeWorkspaceFoldersParams ,
@@ -26,6 +27,8 @@ import {
26
27
InlineCompletionList ,
27
28
InlineCompletionListWithReferences ,
28
29
InlineCompletionParams ,
30
+ Location ,
31
+ LocationLink ,
29
32
LogInlineCompletionSessionResultsParams ,
30
33
NotificationHandler ,
31
34
ProgressToken ,
@@ -133,6 +136,9 @@ export type Lsp = {
133
136
onDidSaveTextDocument : ( handler : NotificationHandler < DidSaveTextDocumentParams > ) => void
134
137
publishDiagnostics : ( params : PublishDiagnosticsParams ) => Promise < void >
135
138
sendProgress : < P > ( type : ProgressType < P > , token : ProgressToken , value : P ) => Promise < void >
139
+ onDefinition : (
140
+ handler : RequestHandler < DefinitionParams , Location | Location [ ] | LocationLink [ ] | null | undefined , void >
141
+ ) => void
136
142
onHover : ( handler : RequestHandler < HoverParams , Hover | null | undefined , void > ) => void
137
143
onExecuteCommand : ( handler : RequestHandler < ExecuteCommandParams , any | undefined | null , void > ) => void
138
144
onSemanticTokens : ( handler : RequestHandler < SemanticTokensParams , SemanticTokens | null , void > ) => void
You can’t perform that action at this time.
0 commit comments