massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-json / node_modules / vscode-languageserver-protocol / lib / common / protocol.selectionRange.d.ts
1 import { RequestHandler } from 'vscode-jsonrpc';
2 import { TextDocumentIdentifier, Position, SelectionRange } from 'vscode-languageserver-types';
3 import { ProtocolRequestType } from './messages';
4 import { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams, PartialResultParams } from './protocol';
5 export interface SelectionRangeClientCapabilities {
6     /**
7      * Whether implementation supports dynamic registration for selection range providers. If this is set to `true`
8      * the client supports the new `SelectionRangeRegistrationOptions` return value for the corresponding server
9      * capability as well.
10      */
11     dynamicRegistration?: boolean;
12 }
13 export interface SelectionRangeOptions extends WorkDoneProgressOptions {
14 }
15 export interface SelectionRangeRegistrationOptions extends SelectionRangeOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions {
16 }
17 /**
18  * A parameter literal used in selection range requests.
19  */
20 export interface SelectionRangeParams extends WorkDoneProgressParams, PartialResultParams {
21     /**
22      * The text document.
23      */
24     textDocument: TextDocumentIdentifier;
25     /**
26      * The positions inside the text document.
27      */
28     positions: Position[];
29 }
30 /**
31  * A request to provide selection ranges in a document. The request's
32  * parameter is of type [SelectionRangeParams](#SelectionRangeParams), the
33  * response is of type [SelectionRange[]](#SelectionRange[]) or a Thenable
34  * that resolves to such.
35  */
36 export declare namespace SelectionRangeRequest {
37     const method: 'textDocument/selectionRange';
38     const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[], any, SelectionRangeRegistrationOptions>;
39     type HandlerSignature = RequestHandler<SelectionRangeParams, SelectionRange[] | null, void>;
40 }