1 | import { TextDocumentIdentifier, Range, InlineValue, InlineValueContext } from 'vscode-languageserver-types';
|
2 | import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
3 | import { MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
4 | import type { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams } from './protocol';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export type InlineValueClientCapabilities = {
|
11 | |
12 |
|
13 |
|
14 | dynamicRegistration?: boolean;
|
15 | };
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export type InlineValueWorkspaceClientCapabilities = {
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | refreshSupport?: boolean;
|
32 | };
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | export type InlineValueOptions = WorkDoneProgressOptions;
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | export type InlineValueRegistrationOptions = InlineValueOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | export type InlineValueParams = WorkDoneProgressParams & {
|
51 | |
52 |
|
53 |
|
54 | textDocument: TextDocumentIdentifier;
|
55 | |
56 |
|
57 |
|
58 | range: Range;
|
59 | |
60 |
|
61 |
|
62 |
|
63 | context: InlineValueContext;
|
64 | };
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 | export declare namespace InlineValueRequest {
|
73 | const method: 'textDocument/inlineValue';
|
74 | const messageDirection: MessageDirection;
|
75 | const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[], void, InlineValueRegistrationOptions>;
|
76 | type HandlerSignature = RequestHandler<InlineValueParams, InlineValue[] | null, void>;
|
77 | }
|
78 |
|
79 |
|
80 |
|
81 | export declare namespace InlineValueRefreshRequest {
|
82 | const method: `workspace/inlineValue/refresh`;
|
83 | const messageDirection: MessageDirection;
|
84 | const type: ProtocolRequestType0<void, void, void, void>;
|
85 | type HandlerSignature = RequestHandler0<void, void>;
|
86 | }
|