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

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,42 +1,42 @@
1
- import { RequestType, RequestHandler } from 'vscode-jsonrpc';
2
- import { Declaration, DeclarationLink, Location, LocationLink } from 'vscode-languageserver-types';
3
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
4
- export interface DeclarationClientCapabilities {
5
- /**
6
- * The text document client capabilities
7
- */
8
- textDocument?: {
9
- /**
10
- * Capabilities specific to the `textDocument/declaration`
11
- */
12
- declaration?: {
13
- /**
14
- * Whether declaration supports dynamic registration. If this is set to `true`
15
- * the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
- * return value for the corresponding server capability as well.
17
- */
18
- dynamicRegistration?: boolean;
19
- /**
20
- * The client supports additional metadata in the form of declaration links.
21
- */
22
- linkSupport?: boolean;
23
- };
24
- };
25
- }
26
- export interface DeclarationServerCapabilities {
27
- /**
28
- * The server provides Goto Type Definition support.
29
- */
30
- declarationProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions);
31
- }
32
- /**
33
- * A request to resolve the type definition locations of a symbol at a given text
34
- * document position. The request's parameter is of type [TextDocumentPositioParams]
35
- * (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
36
- * or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
37
- * to such.
38
- */
39
- export declare namespace DeclarationRequest {
40
- const type: RequestType<TextDocumentPositionParams, Location | Location[] | LocationLink[] | null, void, TextDocumentRegistrationOptions>;
41
- type HandlerSignature = RequestHandler<TextDocumentPositionParams, Declaration | DeclarationLink[] | null, void>;
42
- }
1
+ import { RequestType, RequestHandler } from 'vscode-jsonrpc';
2
+ import { Declaration, DeclarationLink, Location, LocationLink } from 'vscode-languageserver-types';
3
+ import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
4
+ export interface DeclarationClientCapabilities {
5
+ /**
6
+ * The text document client capabilities
7
+ */
8
+ textDocument?: {
9
+ /**
10
+ * Capabilities specific to the `textDocument/declaration`
11
+ */
12
+ declaration?: {
13
+ /**
14
+ * Whether declaration supports dynamic registration. If this is set to `true`
15
+ * the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
+ * return value for the corresponding server capability as well.
17
+ */
18
+ dynamicRegistration?: boolean;
19
+ /**
20
+ * The client supports additional metadata in the form of declaration links.
21
+ */
22
+ linkSupport?: boolean;
23
+ };
24
+ };
25
+ }
26
+ export interface DeclarationServerCapabilities {
27
+ /**
28
+ * The server provides Goto Type Definition support.
29
+ */
30
+ declarationProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions);
31
+ }
32
+ /**
33
+ * A request to resolve the type definition locations of a symbol at a given text
34
+ * document position. The request's parameter is of type [TextDocumentPositioParams]
35
+ * (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
36
+ * or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
37
+ * to such.
38
+ */
39
+ export declare namespace DeclarationRequest {
40
+ const type: RequestType<TextDocumentPositionParams, Location | Location[] | LocationLink[] | null, void, TextDocumentRegistrationOptions>;
41
+ type HandlerSignature = RequestHandler<TextDocumentPositionParams, Declaration | DeclarationLink[] | null, void>;
42
+ }
@@ -1,20 +1,20 @@
1
- /* --------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- * ------------------------------------------------------------------------------------------ */
5
- 'use strict';
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- const vscode_jsonrpc_1 = require("vscode-jsonrpc");
8
- // @ts-ignore: to avoid inlining LocatioLink as dynamic import
9
- let __noDynamicImport;
10
- /**
11
- * A request to resolve the type definition locations of a symbol at a given text
12
- * document position. The request's parameter is of type [TextDocumentPositioParams]
13
- * (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
14
- * or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
15
- * to such.
16
- */
17
- var DeclarationRequest;
18
- (function (DeclarationRequest) {
19
- DeclarationRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/declaration');
20
- })(DeclarationRequest = exports.DeclarationRequest || (exports.DeclarationRequest = {}));
1
+ /* --------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ * ------------------------------------------------------------------------------------------ */
5
+ 'use strict';
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const vscode_jsonrpc_1 = require("vscode-jsonrpc");
8
+ // @ts-ignore: to avoid inlining LocatioLink as dynamic import
9
+ let __noDynamicImport;
10
+ /**
11
+ * A request to resolve the type definition locations of a symbol at a given text
12
+ * document position. The request's parameter is of type [TextDocumentPositioParams]
13
+ * (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
14
+ * or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
15
+ * to such.
16
+ */
17
+ var DeclarationRequest;
18
+ (function (DeclarationRequest) {
19
+ DeclarationRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/declaration');
20
+ })(DeclarationRequest = exports.DeclarationRequest || (exports.DeclarationRequest = {}));
@@ -1,101 +1,101 @@
1
- import { RequestType } from 'vscode-jsonrpc';
2
- import { TextDocumentIdentifier } from 'vscode-languageserver-types';
3
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
4
- export interface FoldingRangeClientCapabilities {
5
- /**
6
- * The text document client capabilities
7
- */
8
- textDocument?: {
9
- /**
10
- * Capabilities specific to `textDocument/foldingRange` requests
11
- */
12
- foldingRange?: {
13
- /**
14
- * Whether implementation supports dynamic registration for folding range providers. If this is set to `true`
15
- * the client supports the new `(FoldingRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
- * return value for the corresponding server capability as well.
17
- */
18
- dynamicRegistration?: boolean;
19
- /**
20
- * The maximum number of folding ranges that the client prefers to receive per document. The value serves as a
21
- * hint, servers are free to follow the limit.
22
- */
23
- rangeLimit?: number;
24
- /**
25
- * If set, the client signals that it only supports folding complete lines. If set, client will
26
- * ignore specified `startCharacter` and `endCharacter` properties in a FoldingRange.
27
- */
28
- lineFoldingOnly?: boolean;
29
- };
30
- };
31
- }
32
- export interface FoldingRangeProviderOptions {
33
- }
34
- export interface FoldingRangeServerCapabilities {
35
- /**
36
- * The server provides folding provider support.
37
- */
38
- foldingRangeProvider?: boolean | FoldingRangeProviderOptions | (FoldingRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions);
39
- }
40
- /**
41
- * Enum of known range kinds
42
- */
43
- export declare enum FoldingRangeKind {
44
- /**
45
- * Folding range for a comment
46
- */
47
- Comment = "comment",
48
- /**
49
- * Folding range for a imports or includes
50
- */
51
- Imports = "imports",
52
- /**
53
- * Folding range for a region (e.g. `#region`)
54
- */
55
- Region = "region"
56
- }
57
- /**
58
- * Represents a folding range.
59
- */
60
- export interface FoldingRange {
61
- /**
62
- * The zero-based line number from where the folded range starts.
63
- */
64
- startLine: number;
65
- /**
66
- * The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line.
67
- */
68
- startCharacter?: number;
69
- /**
70
- * The zero-based line number where the folded range ends.
71
- */
72
- endLine: number;
73
- /**
74
- * The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line.
75
- */
76
- endCharacter?: number;
77
- /**
78
- * Describes the kind of the folding range such as `comment' or 'region'. The kind
79
- * is used to categorize folding ranges and used by commands like 'Fold all comments'. See
80
- * [FoldingRangeKind](#FoldingRangeKind) for an enumeration of standardized kinds.
81
- */
82
- kind?: string;
83
- }
84
- /**
85
- * Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
86
- */
87
- export interface FoldingRangeParams {
88
- /**
89
- * The text document.
90
- */
91
- textDocument: TextDocumentIdentifier;
92
- }
93
- /**
94
- * A request to provide folding ranges in a document. The request's
95
- * parameter is of type [FoldingRangeParams](#FoldingRangeParams), the
96
- * response is of type [FoldingRangeList](#FoldingRangeList) or a Thenable
97
- * that resolves to such.
98
- */
99
- export declare namespace FoldingRangeRequest {
100
- const type: RequestType<FoldingRangeParams, FoldingRange[] | null, any, any>;
101
- }
1
+ import { RequestType } from 'vscode-jsonrpc';
2
+ import { TextDocumentIdentifier } from 'vscode-languageserver-types';
3
+ import { TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
4
+ export interface FoldingRangeClientCapabilities {
5
+ /**
6
+ * The text document client capabilities
7
+ */
8
+ textDocument?: {
9
+ /**
10
+ * Capabilities specific to `textDocument/foldingRange` requests
11
+ */
12
+ foldingRange?: {
13
+ /**
14
+ * Whether implementation supports dynamic registration for folding range providers. If this is set to `true`
15
+ * the client supports the new `(FoldingRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
+ * return value for the corresponding server capability as well.
17
+ */
18
+ dynamicRegistration?: boolean;
19
+ /**
20
+ * The maximum number of folding ranges that the client prefers to receive per document. The value serves as a
21
+ * hint, servers are free to follow the limit.
22
+ */
23
+ rangeLimit?: number;
24
+ /**
25
+ * If set, the client signals that it only supports folding complete lines. If set, client will
26
+ * ignore specified `startCharacter` and `endCharacter` properties in a FoldingRange.
27
+ */
28
+ lineFoldingOnly?: boolean;
29
+ };
30
+ };
31
+ }
32
+ export interface FoldingRangeProviderOptions {
33
+ }
34
+ export interface FoldingRangeServerCapabilities {
35
+ /**
36
+ * The server provides folding provider support.
37
+ */
38
+ foldingRangeProvider?: boolean | FoldingRangeProviderOptions | (FoldingRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions);
39
+ }
40
+ /**
41
+ * Enum of known range kinds
42
+ */
43
+ export declare enum FoldingRangeKind {
44
+ /**
45
+ * Folding range for a comment
46
+ */
47
+ Comment = "comment",
48
+ /**
49
+ * Folding range for a imports or includes
50
+ */
51
+ Imports = "imports",
52
+ /**
53
+ * Folding range for a region (e.g. `#region`)
54
+ */
55
+ Region = "region"
56
+ }
57
+ /**
58
+ * Represents a folding range.
59
+ */
60
+ export interface FoldingRange {
61
+ /**
62
+ * The zero-based line number from where the folded range starts.
63
+ */
64
+ startLine: number;
65
+ /**
66
+ * The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line.
67
+ */
68
+ startCharacter?: number;
69
+ /**
70
+ * The zero-based line number where the folded range ends.
71
+ */
72
+ endLine: number;
73
+ /**
74
+ * The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line.
75
+ */
76
+ endCharacter?: number;
77
+ /**
78
+ * Describes the kind of the folding range such as `comment' or 'region'. The kind
79
+ * is used to categorize folding ranges and used by commands like 'Fold all comments'. See
80
+ * [FoldingRangeKind](#FoldingRangeKind) for an enumeration of standardized kinds.
81
+ */
82
+ kind?: string;
83
+ }
84
+ /**
85
+ * Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
86
+ */
87
+ export interface FoldingRangeParams {
88
+ /**
89
+ * The text document.
90
+ */
91
+ textDocument: TextDocumentIdentifier;
92
+ }
93
+ /**
94
+ * A request to provide folding ranges in a document. The request's
95
+ * parameter is of type [FoldingRangeParams](#FoldingRangeParams), the
96
+ * response is of type [FoldingRangeList](#FoldingRangeList) or a Thenable
97
+ * that resolves to such.
98
+ */
99
+ export declare namespace FoldingRangeRequest {
100
+ const type: RequestType<FoldingRangeParams, FoldingRange[] | null, any, any>;
101
+ }
@@ -1,35 +1,35 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Licensed under the MIT License. See License.txt in the project root for license information.
5
- *--------------------------------------------------------------------------------------------*/
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- const vscode_jsonrpc_1 = require("vscode-jsonrpc");
8
- /**
9
- * Enum of known range kinds
10
- */
11
- var FoldingRangeKind;
12
- (function (FoldingRangeKind) {
13
- /**
14
- * Folding range for a comment
15
- */
16
- FoldingRangeKind["Comment"] = "comment";
17
- /**
18
- * Folding range for a imports or includes
19
- */
20
- FoldingRangeKind["Imports"] = "imports";
21
- /**
22
- * Folding range for a region (e.g. `#region`)
23
- */
24
- FoldingRangeKind["Region"] = "region";
25
- })(FoldingRangeKind = exports.FoldingRangeKind || (exports.FoldingRangeKind = {}));
26
- /**
27
- * A request to provide folding ranges in a document. The request's
28
- * parameter is of type [FoldingRangeParams](#FoldingRangeParams), the
29
- * response is of type [FoldingRangeList](#FoldingRangeList) or a Thenable
30
- * that resolves to such.
31
- */
32
- var FoldingRangeRequest;
33
- (function (FoldingRangeRequest) {
34
- FoldingRangeRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/foldingRange');
35
- })(FoldingRangeRequest = exports.FoldingRangeRequest || (exports.FoldingRangeRequest = {}));
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * Licensed under the MIT License. See License.txt in the project root for license information.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const vscode_jsonrpc_1 = require("vscode-jsonrpc");
8
+ /**
9
+ * Enum of known range kinds
10
+ */
11
+ var FoldingRangeKind;
12
+ (function (FoldingRangeKind) {
13
+ /**
14
+ * Folding range for a comment
15
+ */
16
+ FoldingRangeKind["Comment"] = "comment";
17
+ /**
18
+ * Folding range for a imports or includes
19
+ */
20
+ FoldingRangeKind["Imports"] = "imports";
21
+ /**
22
+ * Folding range for a region (e.g. `#region`)
23
+ */
24
+ FoldingRangeKind["Region"] = "region";
25
+ })(FoldingRangeKind = exports.FoldingRangeKind || (exports.FoldingRangeKind = {}));
26
+ /**
27
+ * A request to provide folding ranges in a document. The request's
28
+ * parameter is of type [FoldingRangeParams](#FoldingRangeParams), the
29
+ * response is of type [FoldingRangeList](#FoldingRangeList) or a Thenable
30
+ * that resolves to such.
31
+ */
32
+ var FoldingRangeRequest;
33
+ (function (FoldingRangeRequest) {
34
+ FoldingRangeRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/foldingRange');
35
+ })(FoldingRangeRequest = exports.FoldingRangeRequest || (exports.FoldingRangeRequest = {}));
@@ -1,41 +1,41 @@
1
- import { RequestType, RequestHandler } from 'vscode-jsonrpc';
2
- import { Definition, DefinitionLink, Location, LocationLink } from 'vscode-languageserver-types';
3
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
4
- export interface ImplementationClientCapabilities {
5
- /**
6
- * The text document client capabilities
7
- */
8
- textDocument?: {
9
- /**
10
- * Capabilities specific to the `textDocument/implementation`
11
- */
12
- implementation?: {
13
- /**
14
- * Whether implementation supports dynamic registration. If this is set to `true`
15
- * the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
- * return value for the corresponding server capability as well.
17
- */
18
- dynamicRegistration?: boolean;
19
- /**
20
- * The client supports additional metadata in the form of definition links.
21
- */
22
- linkSupport?: boolean;
23
- };
24
- };
25
- }
26
- export interface ImplementationServerCapabilities {
27
- /**
28
- * The server provides Goto Implementation support.
29
- */
30
- implementationProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions);
31
- }
32
- /**
33
- * A request to resolve the implementation locations of a symbol at a given text
34
- * document position. The request's parameter is of type [TextDocumentPositioParams]
35
- * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
36
- * Thenable that resolves to such.
37
- */
38
- export declare namespace ImplementationRequest {
39
- const type: RequestType<TextDocumentPositionParams, Location | Location[] | LocationLink[] | null, void, TextDocumentRegistrationOptions>;
40
- type HandlerSignature = RequestHandler<TextDocumentPositionParams, Definition | DefinitionLink[] | null, void>;
41
- }
1
+ import { RequestType, RequestHandler } from 'vscode-jsonrpc';
2
+ import { Definition, DefinitionLink, Location, LocationLink } from 'vscode-languageserver-types';
3
+ import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
4
+ export interface ImplementationClientCapabilities {
5
+ /**
6
+ * The text document client capabilities
7
+ */
8
+ textDocument?: {
9
+ /**
10
+ * Capabilities specific to the `textDocument/implementation`
11
+ */
12
+ implementation?: {
13
+ /**
14
+ * Whether implementation supports dynamic registration. If this is set to `true`
15
+ * the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
+ * return value for the corresponding server capability as well.
17
+ */
18
+ dynamicRegistration?: boolean;
19
+ /**
20
+ * The client supports additional metadata in the form of definition links.
21
+ */
22
+ linkSupport?: boolean;
23
+ };
24
+ };
25
+ }
26
+ export interface ImplementationServerCapabilities {
27
+ /**
28
+ * The server provides Goto Implementation support.
29
+ */
30
+ implementationProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions);
31
+ }
32
+ /**
33
+ * A request to resolve the implementation locations of a symbol at a given text
34
+ * document position. The request's parameter is of type [TextDocumentPositioParams]
35
+ * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
36
+ * Thenable that resolves to such.
37
+ */
38
+ export declare namespace ImplementationRequest {
39
+ const type: RequestType<TextDocumentPositionParams, Location | Location[] | LocationLink[] | null, void, TextDocumentRegistrationOptions>;
40
+ type HandlerSignature = RequestHandler<TextDocumentPositionParams, Definition | DefinitionLink[] | null, void>;
41
+ }
@@ -1,19 +1,19 @@
1
- /* --------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- * ------------------------------------------------------------------------------------------ */
5
- 'use strict';
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- const vscode_jsonrpc_1 = require("vscode-jsonrpc");
8
- // @ts-ignore: to avoid inlining LocatioLink as dynamic import
9
- let __noDynamicImport;
10
- /**
11
- * A request to resolve the implementation locations of a symbol at a given text
12
- * document position. The request's parameter is of type [TextDocumentPositioParams]
13
- * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
14
- * Thenable that resolves to such.
15
- */
16
- var ImplementationRequest;
17
- (function (ImplementationRequest) {
18
- ImplementationRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/implementation');
19
- })(ImplementationRequest = exports.ImplementationRequest || (exports.ImplementationRequest = {}));
1
+ /* --------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ * ------------------------------------------------------------------------------------------ */
5
+ 'use strict';
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const vscode_jsonrpc_1 = require("vscode-jsonrpc");
8
+ // @ts-ignore: to avoid inlining LocatioLink as dynamic import
9
+ let __noDynamicImport;
10
+ /**
11
+ * A request to resolve the implementation locations of a symbol at a given text
12
+ * document position. The request's parameter is of type [TextDocumentPositioParams]
13
+ * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
14
+ * Thenable that resolves to such.
15
+ */
16
+ var ImplementationRequest;
17
+ (function (ImplementationRequest) {
18
+ ImplementationRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/implementation');
19
+ })(ImplementationRequest = exports.ImplementationRequest || (exports.ImplementationRequest = {}));