1 | import { RequestHandler } from 'vscode-jsonrpc';
|
2 | import { Definition, DefinitionLink, LocationLink, Location } 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 TypeDefinitionClientCapabilities {
|
9 | |
10 |
|
11 |
|
12 |
|
13 |
|
14 | dynamicRegistration?: boolean;
|
15 | |
16 |
|
17 |
|
18 |
|
19 |
|
20 | linkSupport?: boolean;
|
21 | }
|
22 | export interface TypeDefinitionOptions extends WorkDoneProgressOptions {
|
23 | }
|
24 | export interface TypeDefinitionRegistrationOptions extends TextDocumentRegistrationOptions, TypeDefinitionOptions, StaticRegistrationOptions {
|
25 | }
|
26 | export interface TypeDefinitionParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
|
27 | }
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export declare namespace TypeDefinitionRequest {
|
34 | const method: 'textDocument/typeDefinition';
|
35 | const messageDirection: MessageDirection;
|
36 | const type: ProtocolRequestType<TypeDefinitionParams, Definition | LocationLink[] | null, Location[] | LocationLink[], void, TypeDefinitionRegistrationOptions>;
|
37 | type HandlerSignature = RequestHandler<TypeDefinitionParams, Definition | DefinitionLink[] | null, void>;
|
38 | }
|