1 | import { RequestHandler } from 'vscode-jsonrpc';
|
2 | import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
|
3 | import { MessageDirection, ProtocolRequestType } from './messages';
|
4 | import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
5 | export interface DocumentColorClientCapabilities {
|
6 | |
7 |
|
8 |
|
9 |
|
10 |
|
11 | dynamicRegistration?: boolean;
|
12 | }
|
13 | export interface DocumentColorOptions extends WorkDoneProgressOptions {
|
14 | }
|
15 | export interface DocumentColorRegistrationOptions extends TextDocumentRegistrationOptions, StaticRegistrationOptions, DocumentColorOptions {
|
16 | }
|
17 |
|
18 |
|
19 |
|
20 | export interface DocumentColorParams extends WorkDoneProgressParams, PartialResultParams {
|
21 | |
22 |
|
23 |
|
24 | textDocument: TextDocumentIdentifier;
|
25 | }
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare namespace DocumentColorRequest {
|
33 | const method: 'textDocument/documentColor';
|
34 | const messageDirection: MessageDirection;
|
35 | const type: ProtocolRequestType<DocumentColorParams, ColorInformation[], ColorInformation[], void, DocumentColorRegistrationOptions>;
|
36 | type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[], void>;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 | export interface ColorPresentationParams extends WorkDoneProgressParams, PartialResultParams {
|
42 | |
43 |
|
44 |
|
45 | textDocument: TextDocumentIdentifier;
|
46 | |
47 |
|
48 |
|
49 | color: Color;
|
50 | |
51 |
|
52 |
|
53 | range: Range;
|
54 | }
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 | export declare namespace ColorPresentationRequest {
|
62 | const method: 'textDocument/colorPresentation';
|
63 | const messageDirection: MessageDirection;
|
64 | const type: ProtocolRequestType<ColorPresentationParams, ColorPresentation[], ColorPresentation[], void, WorkDoneProgressOptions & TextDocumentRegistrationOptions>;
|
65 | type HandlerSignature = RequestHandler<ColorPresentationParams, ColorPresentation[], void>;
|
66 | }
|