Implement goto_declaration support

This commit is contained in:
Lukas Wirth
2021-06-22 20:43:48 +02:00
parent 9239943b84
commit 5a74e93c33
6 changed files with 135 additions and 3 deletions

View File

@@ -531,6 +531,7 @@ impl GlobalState {
.on::<lsp_types::request::OnTypeFormatting>(handlers::handle_on_type_formatting)
.on::<lsp_types::request::DocumentSymbolRequest>(handlers::handle_document_symbol)
.on::<lsp_types::request::GotoDefinition>(handlers::handle_goto_definition)
.on::<lsp_types::request::GotoDeclaration>(handlers::handle_goto_declaration)
.on::<lsp_types::request::GotoImplementation>(handlers::handle_goto_implementation)
.on::<lsp_types::request::GotoTypeDefinition>(handlers::handle_goto_type_definition)
.on::<lsp_types::request::Completion>(handlers::handle_completion)