vscode-languageserver-protocol 3.15.0-next.5 → 3.15.0-next.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,77 +0,0 @@
1
- import { RequestType, RequestHandler } from 'vscode-jsonrpc';
2
- import { TextDocumentIdentifier, Position, Range } from 'vscode-languageserver-types';
3
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
4
- export interface SelectionRangeClientCapabilities {
5
- /**
6
- * The text document client capabilities
7
- */
8
- textDocument?: {
9
- /**
10
- * Capabilities specific to `textDocument/selectionRange` requests
11
- */
12
- selectionRange?: {
13
- /**
14
- * Whether implementation supports dynamic registration for selection range providers. If this is set to `true`
15
- * the client supports the new `(SelectionRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
- * return value for the corresponding server capability as well.
17
- */
18
- dynamicRegistration?: boolean;
19
- };
20
- };
21
- }
22
- export interface SelectionRangeServerCapabilities {
23
- /**
24
- * The server provides selection range support.
25
- */
26
- selectionRangeProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions);
27
- }
28
- /**
29
- * A parameter literal used in selection range requests.
30
- */
31
- export interface SelectionRangeParams {
32
- /**
33
- * The text document.
34
- */
35
- textDocument: TextDocumentIdentifier;
36
- /**
37
- * The positions inside the text document.
38
- */
39
- positions: Position[];
40
- }
41
- /**
42
- * A selection range represents a part of a selection hierarchy. A selection range
43
- * may have a parent selection range that contains it.
44
- */
45
- export interface SelectionRange {
46
- /**
47
- * The [range](#Range) of this selection range.
48
- */
49
- range: Range;
50
- /**
51
- * The parent selection range containing this range. Therefore `parent.range` must contain `this.range`.
52
- */
53
- parent?: SelectionRange;
54
- }
55
- /**
56
- * The SelectionRange namespace provides helper function to work with
57
- * SelectionRange literals.
58
- */
59
- export declare namespace SelectionRange {
60
- /**
61
- * Creates a new SelectionRange
62
- * @param range the range.
63
- * @param parent an optional parent.
64
- */
65
- function create(range: Range, parent?: SelectionRange): SelectionRange;
66
- function is(value: any): value is SelectionRange;
67
- }
68
- /**
69
- * A request to provide selection ranges in a document. The request's
70
- * parameter is of type [SelectionRangeParams](#SelectionRangeParams), the
71
- * response is of type [SelectionRange[]](#SelectionRange[]) or a Thenable
72
- * that resolves to such.
73
- */
74
- export declare namespace SelectionRangeRequest {
75
- const type: RequestType<SelectionRangeParams, SelectionRange[] | null, any, any>;
76
- type HandlerSignature = RequestHandler<SelectionRangeParams, SelectionRange[] | null, void>;
77
- }