1 | import { RequestHandler } from 'vscode-jsonrpc';
|
2 | import { Declaration, DeclarationLink, Location, LocationLink } from 'vscode-languageserver-types';
|
3 | import { MessageDirection, ProtocolRequestType } from './messages';
|
4 | import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
5 |
|
6 |
|
7 |
|
8 | export interface DeclarationClientCapabilities {
|
9 | |
10 |
|
11 |
|
12 |
|
13 |
|
14 | dynamicRegistration?: boolean;
|
15 | |
16 |
|
17 |
|
18 | linkSupport?: boolean;
|
19 | }
|
20 | export interface DeclarationOptions extends WorkDoneProgressOptions {
|
21 | }
|
22 | export interface DeclarationRegistrationOptions extends DeclarationOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions {
|
23 | }
|
24 | export interface DeclarationParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
|
25 | }
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare namespace DeclarationRequest {
|
33 | const method: 'textDocument/declaration';
|
34 | const messageDirection: MessageDirection;
|
35 | const type: ProtocolRequestType<DeclarationParams, Declaration | LocationLink[] | null, Location[] | LocationLink[], void, DeclarationRegistrationOptions>;
|
36 | type HandlerSignature = RequestHandler<DeclarationParams, Declaration | DeclarationLink[] | null, void>;
|
37 | }
|