massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-json / node_modules / vscode-languageserver-protocol / lib / common / protocol.colorProvider.d.ts
1 import { RequestHandler } from 'vscode-jsonrpc';
2 import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
3 import { ProtocolRequestType } from './messages';
4 import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5 export interface DocumentColorClientCapabilities {
6     /**
7      * Whether implementation supports dynamic registration. If this is set to `true`
8      * the client supports the new `DocumentColorRegistrationOptions` return value
9      * for the corresponding server capability as well.
10      */
11     dynamicRegistration?: boolean;
12 }
13 export interface DocumentColorOptions extends WorkDoneProgressOptions {
14 }
15 export interface DocumentColorRegistrationOptions extends TextDocumentRegistrationOptions, StaticRegistrationOptions, DocumentColorOptions {
16 }
17 /**
18  * Parameters for a [DocumentColorRequest](#DocumentColorRequest).
19  */
20 export interface DocumentColorParams extends WorkDoneProgressParams, PartialResultParams {
21     /**
22      * The text document.
23      */
24     textDocument: TextDocumentIdentifier;
25 }
26 /**
27  * A request to list all color symbols found in a given text document. The request's
28  * parameter is of type [DocumentColorParams](#DocumentColorParams) the
29  * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
30  * that resolves to such.
31  */
32 export declare namespace DocumentColorRequest {
33     const method: 'textDocument/documentColor';
34     const type: ProtocolRequestType<DocumentColorParams, ColorInformation[], ColorInformation[], void, DocumentColorRegistrationOptions>;
35     type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[], void>;
36 }
37 /**
38  * Parameters for a [ColorPresentationRequest](#ColorPresentationRequest).
39  */
40 export interface ColorPresentationParams extends WorkDoneProgressParams, PartialResultParams {
41     /**
42      * The text document.
43      */
44     textDocument: TextDocumentIdentifier;
45     /**
46      * The color to request presentations for.
47      */
48     color: Color;
49     /**
50      * The range where the color would be inserted. Serves as a context.
51      */
52     range: Range;
53 }
54 /**
55  * A request to list all presentation for a color. The request's
56  * parameter is of type [ColorPresentationParams](#ColorPresentationParams) the
57  * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
58  * that resolves to such.
59  */
60 export declare namespace ColorPresentationRequest {
61     const type: ProtocolRequestType<ColorPresentationParams, ColorPresentation[], ColorPresentation[], void, WorkDoneProgressOptions & TextDocumentRegistrationOptions>;
62     type HandlerSignature = RequestHandler<ColorPresentationParams, ColorPresentation[], void>;
63 }