1 | import { RequestHandler } from 'vscode-jsonrpc';
|
2 | import { TypeHierarchyItem } 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 type TypeHierarchyClientCapabilities = {
|
9 | |
10 |
|
11 |
|
12 |
|
13 |
|
14 | dynamicRegistration?: boolean;
|
15 | };
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export type TypeHierarchyOptions = WorkDoneProgressOptions;
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | export type TypeHierarchyRegistrationOptions = TextDocumentRegistrationOptions & TypeHierarchyOptions & StaticRegistrationOptions;
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export type TypeHierarchyPrepareParams = TextDocumentPositionParams & WorkDoneProgressParams;
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | export declare namespace TypeHierarchyPrepareRequest {
|
41 | const method: 'textDocument/prepareTypeHierarchy';
|
42 | const messageDirection: MessageDirection;
|
43 | const type: ProtocolRequestType<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, never, void, TypeHierarchyRegistrationOptions>;
|
44 | type HandlerSignature = RequestHandler<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, void>;
|
45 | }
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | export type TypeHierarchySupertypesParams = WorkDoneProgressParams & PartialResultParams & {
|
52 | item: TypeHierarchyItem;
|
53 | };
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 | export declare namespace TypeHierarchySupertypesRequest {
|
60 | const method: 'typeHierarchy/supertypes';
|
61 | const messageDirection: MessageDirection;
|
62 | const type: ProtocolRequestType<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
|
63 | type HandlerSignature = RequestHandler<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, void>;
|
64 | }
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | export type TypeHierarchySubtypesParams = WorkDoneProgressParams & PartialResultParams & {
|
71 | item: TypeHierarchyItem;
|
72 | };
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 | export declare namespace TypeHierarchySubtypesRequest {
|
79 | const method: 'typeHierarchy/subtypes';
|
80 | const messageDirection: MessageDirection;
|
81 | const type: ProtocolRequestType<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
|
82 | type HandlerSignature = RequestHandler<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, void>;
|
83 | }
|