| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "LibLsp/JsonRpc/RequestInMessage.h" |
| 4 |
#include "LibLsp/JsonRpc/lsResponseMessage.h" |
| 5 |
|
| 6 |
#include "LibLsp/lsp/lsTextDocumentPositionParams.h" |
| 7 |
#include "LibLsp/lsp/out_list.h" |
| 8 |
|
| 9 |
/** |
| 10 |
* The go to declaration request is sent from the client to the server to resolve |
| 11 |
* the declaration location of a symbol at a given text document position. |
| 12 |
* |
| 13 |
* Registration Options: TextDocumentRegistrationOptions |
| 14 |
* |
| 15 |
* Since version 3.14.0 |
| 16 |
*/ |
| 17 |
DEFINE_REQUEST_RESPONSE_TYPE( |
| 18 |
td_declaration, lsTextDocumentPositionParams, LocationListEither::Either, "textDocument/declaration" |
| 19 |
); |
| 20 |
|
| 21 |
/** |
| 22 |
* The goto definition request is sent from the client to the server to resolve |
| 23 |
* the definition location of a symbol at a given text document position. |
| 24 |
* |
| 25 |
* Registration Options: TextDocumentRegistrationOptions |
| 26 |
*/ |
| 27 |
DEFINE_REQUEST_RESPONSE_TYPE( |
| 28 |
td_definition, lsTextDocumentPositionParams, LocationListEither::Either, "textDocument/definition" |
| 29 |
); |