vscode-languageserver-protocol 3.15.0-next.1 → 3.15.0-next.13
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.
- package/.eslintrc.json +6 -0
- package/lib/main.d.ts +61 -6
- package/lib/main.js +31 -0
- package/lib/protocol.callHierarchy.proposed.d.ts +116 -0
- package/lib/protocol.callHierarchy.proposed.js +21 -0
- package/lib/protocol.colorProvider.d.ts +19 -26
- package/lib/protocol.colorProvider.js +1 -0
- package/lib/protocol.configuration.d.ts +2 -1
- package/lib/protocol.d.ts +1102 -571
- package/lib/protocol.declaration.d.ts +20 -26
- package/lib/protocol.declaration.js +1 -0
- package/lib/protocol.foldingRange.d.ts +22 -34
- package/lib/protocol.foldingRange.js +1 -0
- package/lib/protocol.implementation.d.ts +22 -26
- package/lib/protocol.implementation.js +1 -0
- package/lib/protocol.js +156 -53
- package/lib/protocol.progress.proposed.d.ts +115 -0
- package/lib/protocol.progress.proposed.js +27 -0
- package/lib/protocol.selectionRange.d.ts +19 -51
- package/lib/protocol.selectionRange.js +2 -21
- package/lib/protocol.typeDefinition.d.ts +22 -26
- package/lib/protocol.typeDefinition.js +1 -0
- package/lib/utils/is.d.ts +1 -1
- package/lib/utils/is.js +6 -3
- package/package.json +5 -5
|
@@ -1,33 +1,26 @@
|
|
|
1
|
-
import { RequestType, RequestHandler } from 'vscode-jsonrpc';
|
|
1
|
+
import { RequestType, RequestHandler, ProgressType } from 'vscode-jsonrpc';
|
|
2
2
|
import { Declaration, DeclarationLink, Location, LocationLink } from 'vscode-languageserver-types';
|
|
3
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
|
|
3
|
+
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
/**
|
|
5
|
+
* Since 3.14.0
|
|
6
|
+
*/
|
|
4
7
|
export interface DeclarationClientCapabilities {
|
|
5
8
|
/**
|
|
6
|
-
*
|
|
9
|
+
* Whether declaration supports dynamic registration. If this is set to `true`
|
|
10
|
+
* the client supports the new `DeclarationRegistrationOptions` return value
|
|
11
|
+
* for the corresponding server capability as well.
|
|
7
12
|
*/
|
|
8
|
-
|
|
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 {
|
|
13
|
+
dynamicRegistration?: boolean;
|
|
27
14
|
/**
|
|
28
|
-
* The
|
|
15
|
+
* The client supports additional metadata in the form of declaration links.
|
|
29
16
|
*/
|
|
30
|
-
|
|
17
|
+
linkSupport?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface DeclarationOptions extends WorkDoneProgressOptions {
|
|
20
|
+
}
|
|
21
|
+
export interface DeclarationRegistrationOptions extends DeclarationOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions {
|
|
22
|
+
}
|
|
23
|
+
export interface DeclarationParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
|
|
31
24
|
}
|
|
32
25
|
/**
|
|
33
26
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
@@ -37,6 +30,7 @@ export interface DeclarationServerCapabilities {
|
|
|
37
30
|
* to such.
|
|
38
31
|
*/
|
|
39
32
|
export declare namespace DeclarationRequest {
|
|
40
|
-
const type: RequestType<
|
|
41
|
-
|
|
33
|
+
const type: RequestType<DeclarationParams, Location | LocationLink[] | Location[] | null, void, DeclarationRegistrationOptions>;
|
|
34
|
+
const resultType: ProgressType<LocationLink[] | Location[]>;
|
|
35
|
+
type HandlerSignature = RequestHandler<DeclarationParams, Declaration | DeclarationLink[] | null, void>;
|
|
42
36
|
}
|
|
@@ -17,4 +17,5 @@ let __noDynamicImport;
|
|
|
17
17
|
var DeclarationRequest;
|
|
18
18
|
(function (DeclarationRequest) {
|
|
19
19
|
DeclarationRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/declaration');
|
|
20
|
+
DeclarationRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
20
21
|
})(DeclarationRequest = exports.DeclarationRequest || (exports.DeclarationRequest = {}));
|
|
@@ -1,41 +1,27 @@
|
|
|
1
|
-
import { RequestType } from 'vscode-jsonrpc';
|
|
1
|
+
import { RequestType, RequestHandler, ProgressType } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier } from 'vscode-languageserver-types';
|
|
3
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
|
|
3
|
+
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
4
|
export interface FoldingRangeClientCapabilities {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Whether implementation supports dynamic registration for folding range providers. If this is set to `true`
|
|
7
|
+
* the client supports the new `FoldingRangeRegistrationOptions` return value for the corresponding server
|
|
8
|
+
* capability as well.
|
|
7
9
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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 {
|
|
10
|
+
dynamicRegistration?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum number of folding ranges that the client prefers to receive per document. The value serves as a
|
|
13
|
+
* hint, servers are free to follow the limit.
|
|
14
|
+
*/
|
|
15
|
+
rangeLimit?: number;
|
|
35
16
|
/**
|
|
36
|
-
*
|
|
17
|
+
* If set, the client signals that it only supports folding complete lines. If set, client will
|
|
18
|
+
* ignore specified `startCharacter` and `endCharacter` properties in a FoldingRange.
|
|
37
19
|
*/
|
|
38
|
-
|
|
20
|
+
lineFoldingOnly?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface FoldingRangeOptions extends WorkDoneProgressOptions {
|
|
23
|
+
}
|
|
24
|
+
export interface FoldingRangeRegistrationOptions extends TextDocumentRegistrationOptions, FoldingRangeOptions, StaticRegistrationOptions {
|
|
39
25
|
}
|
|
40
26
|
/**
|
|
41
27
|
* Enum of known range kinds
|
|
@@ -84,7 +70,7 @@ export interface FoldingRange {
|
|
|
84
70
|
/**
|
|
85
71
|
* Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
|
|
86
72
|
*/
|
|
87
|
-
export interface FoldingRangeParams {
|
|
73
|
+
export interface FoldingRangeParams extends WorkDoneProgressParams, PartialResultParams {
|
|
88
74
|
/**
|
|
89
75
|
* The text document.
|
|
90
76
|
*/
|
|
@@ -97,5 +83,7 @@ export interface FoldingRangeParams {
|
|
|
97
83
|
* that resolves to such.
|
|
98
84
|
*/
|
|
99
85
|
export declare namespace FoldingRangeRequest {
|
|
100
|
-
const type: RequestType<FoldingRangeParams, FoldingRange[] | null, any,
|
|
86
|
+
const type: RequestType<FoldingRangeParams, FoldingRange[] | null, any, FoldingRangeRegistrationOptions>;
|
|
87
|
+
const resultType: ProgressType<FoldingRange[]>;
|
|
88
|
+
type HandlerSignature = RequestHandler<FoldingRangeParams, FoldingRange[] | null, void>;
|
|
101
89
|
}
|
|
@@ -32,4 +32,5 @@ var FoldingRangeKind;
|
|
|
32
32
|
var FoldingRangeRequest;
|
|
33
33
|
(function (FoldingRangeRequest) {
|
|
34
34
|
FoldingRangeRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/foldingRange');
|
|
35
|
+
FoldingRangeRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
35
36
|
})(FoldingRangeRequest = exports.FoldingRangeRequest || (exports.FoldingRangeRequest = {}));
|
|
@@ -1,33 +1,28 @@
|
|
|
1
|
-
import { RequestType, RequestHandler } from 'vscode-jsonrpc';
|
|
1
|
+
import { RequestType, RequestHandler, ProgressType } from 'vscode-jsonrpc';
|
|
2
2
|
import { Definition, DefinitionLink, Location, LocationLink } from 'vscode-languageserver-types';
|
|
3
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
|
|
3
|
+
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
/**
|
|
5
|
+
* Since 3.6.0
|
|
6
|
+
*/
|
|
4
7
|
export interface ImplementationClientCapabilities {
|
|
5
8
|
/**
|
|
6
|
-
*
|
|
9
|
+
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
10
|
+
* the client supports the new `ImplementationRegistrationOptions` return value
|
|
11
|
+
* for the corresponding server capability as well.
|
|
7
12
|
*/
|
|
8
|
-
|
|
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 {
|
|
13
|
+
dynamicRegistration?: boolean;
|
|
27
14
|
/**
|
|
28
|
-
* The
|
|
15
|
+
* The client supports additional metadata in the form of definition links.
|
|
16
|
+
*
|
|
17
|
+
* Since 3.14.0
|
|
29
18
|
*/
|
|
30
|
-
|
|
19
|
+
linkSupport?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ImplementationOptions extends WorkDoneProgressOptions {
|
|
22
|
+
}
|
|
23
|
+
export interface ImplementationRegistrationOptions extends TextDocumentRegistrationOptions, ImplementationOptions, StaticRegistrationOptions {
|
|
24
|
+
}
|
|
25
|
+
export interface ImplementationParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
|
|
31
26
|
}
|
|
32
27
|
/**
|
|
33
28
|
* A request to resolve the implementation locations of a symbol at a given text
|
|
@@ -36,6 +31,7 @@ export interface ImplementationServerCapabilities {
|
|
|
36
31
|
* Thenable that resolves to such.
|
|
37
32
|
*/
|
|
38
33
|
export declare namespace ImplementationRequest {
|
|
39
|
-
const type: RequestType<
|
|
40
|
-
|
|
34
|
+
const type: RequestType<ImplementationParams, Location | Location[] | LocationLink[] | null, void, ImplementationRegistrationOptions>;
|
|
35
|
+
const resultType: ProgressType<LocationLink[] | Location[]>;
|
|
36
|
+
type HandlerSignature = RequestHandler<ImplementationParams, Definition | DefinitionLink[] | null, void>;
|
|
41
37
|
}
|
|
@@ -16,4 +16,5 @@ let __noDynamicImport;
|
|
|
16
16
|
var ImplementationRequest;
|
|
17
17
|
(function (ImplementationRequest) {
|
|
18
18
|
ImplementationRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/implementation');
|
|
19
|
+
ImplementationRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
19
20
|
})(ImplementationRequest = exports.ImplementationRequest || (exports.ImplementationRequest = {}));
|
package/lib/protocol.js
CHANGED
|
@@ -24,17 +24,39 @@ const protocol_declaration_1 = require("./protocol.declaration");
|
|
|
24
24
|
exports.DeclarationRequest = protocol_declaration_1.DeclarationRequest;
|
|
25
25
|
const protocol_selectionRange_1 = require("./protocol.selectionRange");
|
|
26
26
|
exports.SelectionRangeRequest = protocol_selectionRange_1.SelectionRangeRequest;
|
|
27
|
-
exports.SelectionRangeKind = protocol_selectionRange_1.SelectionRangeKind;
|
|
28
27
|
// @ts-ignore: to avoid inlining LocatioLink as dynamic import
|
|
29
28
|
let __noDynamicImport;
|
|
29
|
+
/**
|
|
30
|
+
* The DocumentFilter namespace provides helper functions to work with
|
|
31
|
+
* [DocumentFilter](#DocumentFilter) literals.
|
|
32
|
+
*/
|
|
30
33
|
var DocumentFilter;
|
|
31
34
|
(function (DocumentFilter) {
|
|
32
35
|
function is(value) {
|
|
33
|
-
|
|
36
|
+
const candidate = value;
|
|
34
37
|
return Is.string(candidate.language) || Is.string(candidate.scheme) || Is.string(candidate.pattern);
|
|
35
38
|
}
|
|
36
39
|
DocumentFilter.is = is;
|
|
37
40
|
})(DocumentFilter = exports.DocumentFilter || (exports.DocumentFilter = {}));
|
|
41
|
+
/**
|
|
42
|
+
* The DocumentSelector namespace provides helper functions to work with
|
|
43
|
+
* [DocumentSelector](#DocumentSelector)s.
|
|
44
|
+
*/
|
|
45
|
+
var DocumentSelector;
|
|
46
|
+
(function (DocumentSelector) {
|
|
47
|
+
function is(value) {
|
|
48
|
+
if (!Array.isArray(value)) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
for (let elem of value) {
|
|
52
|
+
if (!Is.string(elem) && !DocumentFilter.is(elem)) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
DocumentSelector.is = is;
|
|
59
|
+
})(DocumentSelector = exports.DocumentSelector || (exports.DocumentSelector = {}));
|
|
38
60
|
/**
|
|
39
61
|
* The `client/registerCapability` request is sent from the server to the client to register a new capability
|
|
40
62
|
* handler on the client side.
|
|
@@ -91,27 +113,46 @@ var FailureHandlingKind;
|
|
|
91
113
|
FailureHandlingKind.Undo = 'undo';
|
|
92
114
|
})(FailureHandlingKind = exports.FailureHandlingKind || (exports.FailureHandlingKind = {}));
|
|
93
115
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
116
|
+
* The StaticRegistrationOptions namespace provides helper functions to work with
|
|
117
|
+
* [StaticRegistrationOptions](#StaticRegistrationOptions) literals.
|
|
96
118
|
*/
|
|
97
|
-
var
|
|
98
|
-
(function (
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
119
|
+
var StaticRegistrationOptions;
|
|
120
|
+
(function (StaticRegistrationOptions) {
|
|
121
|
+
function hasId(value) {
|
|
122
|
+
const candidate = value;
|
|
123
|
+
return candidate && Is.string(candidate.id) && candidate.id.length > 0;
|
|
124
|
+
}
|
|
125
|
+
StaticRegistrationOptions.hasId = hasId;
|
|
126
|
+
})(StaticRegistrationOptions = exports.StaticRegistrationOptions || (exports.StaticRegistrationOptions = {}));
|
|
127
|
+
/**
|
|
128
|
+
* The TextDocumentRegistrationOptions namespace provides helper functions to work with
|
|
129
|
+
* [TextDocumentRegistrationOptions](#TextDocumentRegistrationOptions) literals.
|
|
130
|
+
*/
|
|
131
|
+
var TextDocumentRegistrationOptions;
|
|
132
|
+
(function (TextDocumentRegistrationOptions) {
|
|
133
|
+
function is(value) {
|
|
134
|
+
const candidate = value;
|
|
135
|
+
return candidate && (candidate.documentSelector === null || DocumentSelector.is(candidate.documentSelector));
|
|
136
|
+
}
|
|
137
|
+
TextDocumentRegistrationOptions.is = is;
|
|
138
|
+
})(TextDocumentRegistrationOptions = exports.TextDocumentRegistrationOptions || (exports.TextDocumentRegistrationOptions = {}));
|
|
139
|
+
/**
|
|
140
|
+
* The WorkDoneProgressOptions namespace provides helper functions to work with
|
|
141
|
+
* [WorkDoneProgressOptions](#WorkDoneProgressOptions) literals.
|
|
142
|
+
*/
|
|
143
|
+
var WorkDoneProgressOptions;
|
|
144
|
+
(function (WorkDoneProgressOptions) {
|
|
145
|
+
function is(value) {
|
|
146
|
+
const candidate = value;
|
|
147
|
+
return Is.objectLiteral(candidate) && (candidate.workDoneProgress === undefined || Is.boolean(candidate.workDoneProgress));
|
|
148
|
+
}
|
|
149
|
+
WorkDoneProgressOptions.is = is;
|
|
150
|
+
function hasWorkDoneProgress(value) {
|
|
151
|
+
const candidate = value;
|
|
152
|
+
return candidate && Is.boolean(candidate.workDoneProgress);
|
|
153
|
+
}
|
|
154
|
+
WorkDoneProgressOptions.hasWorkDoneProgress = hasWorkDoneProgress;
|
|
155
|
+
})(WorkDoneProgressOptions = exports.WorkDoneProgressOptions || (exports.WorkDoneProgressOptions = {}));
|
|
115
156
|
/**
|
|
116
157
|
* The initialize request is sent from the client to the server.
|
|
117
158
|
* It is sent once as the request after starting up the server.
|
|
@@ -164,7 +205,6 @@ var ExitNotification;
|
|
|
164
205
|
(function (ExitNotification) {
|
|
165
206
|
ExitNotification.type = new vscode_jsonrpc_1.NotificationType0('exit');
|
|
166
207
|
})(ExitNotification = exports.ExitNotification || (exports.ExitNotification = {}));
|
|
167
|
-
//---- Configuration notification ----
|
|
168
208
|
/**
|
|
169
209
|
* The configuration change notification is sent from the client to the server
|
|
170
210
|
* when the client's configuration has changed. The notification contains
|
|
@@ -230,6 +270,28 @@ var TelemetryEventNotification;
|
|
|
230
270
|
(function (TelemetryEventNotification) {
|
|
231
271
|
TelemetryEventNotification.type = new vscode_jsonrpc_1.NotificationType('telemetry/event');
|
|
232
272
|
})(TelemetryEventNotification = exports.TelemetryEventNotification || (exports.TelemetryEventNotification = {}));
|
|
273
|
+
/**
|
|
274
|
+
* Defines how the host (editor) should sync
|
|
275
|
+
* document changes to the language server.
|
|
276
|
+
*/
|
|
277
|
+
var TextDocumentSyncKind;
|
|
278
|
+
(function (TextDocumentSyncKind) {
|
|
279
|
+
/**
|
|
280
|
+
* Documents should not be synced at all.
|
|
281
|
+
*/
|
|
282
|
+
TextDocumentSyncKind.None = 0;
|
|
283
|
+
/**
|
|
284
|
+
* Documents are synced by always sending the full content
|
|
285
|
+
* of the document.
|
|
286
|
+
*/
|
|
287
|
+
TextDocumentSyncKind.Full = 1;
|
|
288
|
+
/**
|
|
289
|
+
* Documents are synced by sending the full content on open.
|
|
290
|
+
* After that only incremental updates to the document are
|
|
291
|
+
* send.
|
|
292
|
+
*/
|
|
293
|
+
TextDocumentSyncKind.Incremental = 2;
|
|
294
|
+
})(TextDocumentSyncKind = exports.TextDocumentSyncKind || (exports.TextDocumentSyncKind = {}));
|
|
233
295
|
/**
|
|
234
296
|
* The document open notification is sent from the client to the server to signal
|
|
235
297
|
* newly opened text documents. The document's truth is now managed by the client
|
|
@@ -273,6 +335,25 @@ var DidSaveTextDocumentNotification;
|
|
|
273
335
|
(function (DidSaveTextDocumentNotification) {
|
|
274
336
|
DidSaveTextDocumentNotification.type = new vscode_jsonrpc_1.NotificationType('textDocument/didSave');
|
|
275
337
|
})(DidSaveTextDocumentNotification = exports.DidSaveTextDocumentNotification || (exports.DidSaveTextDocumentNotification = {}));
|
|
338
|
+
/**
|
|
339
|
+
* Represents reasons why a text document is saved.
|
|
340
|
+
*/
|
|
341
|
+
var TextDocumentSaveReason;
|
|
342
|
+
(function (TextDocumentSaveReason) {
|
|
343
|
+
/**
|
|
344
|
+
* Manually triggered, e.g. by the user pressing save, by starting debugging,
|
|
345
|
+
* or by an API call.
|
|
346
|
+
*/
|
|
347
|
+
TextDocumentSaveReason.Manual = 1;
|
|
348
|
+
/**
|
|
349
|
+
* Automatic after a delay.
|
|
350
|
+
*/
|
|
351
|
+
TextDocumentSaveReason.AfterDelay = 2;
|
|
352
|
+
/**
|
|
353
|
+
* When the editor lost focus.
|
|
354
|
+
*/
|
|
355
|
+
TextDocumentSaveReason.FocusOut = 3;
|
|
356
|
+
})(TextDocumentSaveReason = exports.TextDocumentSaveReason || (exports.TextDocumentSaveReason = {}));
|
|
276
357
|
/**
|
|
277
358
|
* A document will save notification is sent from the client to the server before
|
|
278
359
|
* the document is actually saved.
|
|
@@ -293,7 +374,6 @@ var WillSaveTextDocumentWaitUntilRequest;
|
|
|
293
374
|
(function (WillSaveTextDocumentWaitUntilRequest) {
|
|
294
375
|
WillSaveTextDocumentWaitUntilRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/willSaveWaitUntil');
|
|
295
376
|
})(WillSaveTextDocumentWaitUntilRequest = exports.WillSaveTextDocumentWaitUntilRequest || (exports.WillSaveTextDocumentWaitUntilRequest = {}));
|
|
296
|
-
//---- File eventing ----
|
|
297
377
|
/**
|
|
298
378
|
* The watched files notification is sent from the client to the server when
|
|
299
379
|
* the client detects changes to file watched by the language client.
|
|
@@ -335,7 +415,6 @@ var WatchKind;
|
|
|
335
415
|
*/
|
|
336
416
|
WatchKind.Delete = 4;
|
|
337
417
|
})(WatchKind = exports.WatchKind || (exports.WatchKind = {}));
|
|
338
|
-
//---- Diagnostic notification ----
|
|
339
418
|
/**
|
|
340
419
|
* Diagnostics notification are sent from the server to the client to signal
|
|
341
420
|
* results of validation runs.
|
|
@@ -378,6 +457,7 @@ var CompletionTriggerKind;
|
|
|
378
457
|
var CompletionRequest;
|
|
379
458
|
(function (CompletionRequest) {
|
|
380
459
|
CompletionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/completion');
|
|
460
|
+
CompletionRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
381
461
|
})(CompletionRequest = exports.CompletionRequest || (exports.CompletionRequest = {}));
|
|
382
462
|
/**
|
|
383
463
|
* Request to resolve additional information for a given completion item.The request's
|
|
@@ -388,7 +468,6 @@ var CompletionResolveRequest;
|
|
|
388
468
|
(function (CompletionResolveRequest) {
|
|
389
469
|
CompletionResolveRequest.type = new vscode_jsonrpc_1.RequestType('completionItem/resolve');
|
|
390
470
|
})(CompletionResolveRequest = exports.CompletionResolveRequest || (exports.CompletionResolveRequest = {}));
|
|
391
|
-
//---- Hover Support -------------------------------
|
|
392
471
|
/**
|
|
393
472
|
* Request to request hover information at a given text document position. The request's
|
|
394
473
|
* parameter is of type [TextDocumentPosition](#TextDocumentPosition) the response is of
|
|
@@ -398,11 +477,30 @@ var HoverRequest;
|
|
|
398
477
|
(function (HoverRequest) {
|
|
399
478
|
HoverRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/hover');
|
|
400
479
|
})(HoverRequest = exports.HoverRequest || (exports.HoverRequest = {}));
|
|
480
|
+
/**
|
|
481
|
+
* How a signature help was triggered.
|
|
482
|
+
*
|
|
483
|
+
* @since 3.15.0
|
|
484
|
+
*/
|
|
485
|
+
var SignatureHelpTriggerKind;
|
|
486
|
+
(function (SignatureHelpTriggerKind) {
|
|
487
|
+
/**
|
|
488
|
+
* Signature help was invoked manually by the user or by a command.
|
|
489
|
+
*/
|
|
490
|
+
SignatureHelpTriggerKind.Invoked = 1;
|
|
491
|
+
/**
|
|
492
|
+
* Signature help was triggered by a trigger character.
|
|
493
|
+
*/
|
|
494
|
+
SignatureHelpTriggerKind.TriggerCharacter = 2;
|
|
495
|
+
/**
|
|
496
|
+
* Signature help was triggered by the cursor moving or by the document content changing.
|
|
497
|
+
*/
|
|
498
|
+
SignatureHelpTriggerKind.ContentChange = 3;
|
|
499
|
+
})(SignatureHelpTriggerKind = exports.SignatureHelpTriggerKind || (exports.SignatureHelpTriggerKind = {}));
|
|
401
500
|
var SignatureHelpRequest;
|
|
402
501
|
(function (SignatureHelpRequest) {
|
|
403
502
|
SignatureHelpRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/signatureHelp');
|
|
404
503
|
})(SignatureHelpRequest = exports.SignatureHelpRequest || (exports.SignatureHelpRequest = {}));
|
|
405
|
-
//---- Goto Definition -------------------------------------
|
|
406
504
|
/**
|
|
407
505
|
* A request to resolve the definition location of a symbol at a given text
|
|
408
506
|
* document position. The request's parameter is of type [TextDocumentPosition]
|
|
@@ -413,6 +511,7 @@ var SignatureHelpRequest;
|
|
|
413
511
|
var DefinitionRequest;
|
|
414
512
|
(function (DefinitionRequest) {
|
|
415
513
|
DefinitionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/definition');
|
|
514
|
+
DefinitionRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
416
515
|
})(DefinitionRequest = exports.DefinitionRequest || (exports.DefinitionRequest = {}));
|
|
417
516
|
/**
|
|
418
517
|
* A request to resolve project-wide references for the symbol denoted
|
|
@@ -423,8 +522,8 @@ var DefinitionRequest;
|
|
|
423
522
|
var ReferencesRequest;
|
|
424
523
|
(function (ReferencesRequest) {
|
|
425
524
|
ReferencesRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/references');
|
|
525
|
+
ReferencesRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
426
526
|
})(ReferencesRequest = exports.ReferencesRequest || (exports.ReferencesRequest = {}));
|
|
427
|
-
//---- Document Highlight ----------------------------------
|
|
428
527
|
/**
|
|
429
528
|
* Request to resolve a [DocumentHighlight](#DocumentHighlight) for a given
|
|
430
529
|
* text document position. The request's parameter is of type [TextDocumentPosition]
|
|
@@ -434,8 +533,8 @@ var ReferencesRequest;
|
|
|
434
533
|
var DocumentHighlightRequest;
|
|
435
534
|
(function (DocumentHighlightRequest) {
|
|
436
535
|
DocumentHighlightRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentHighlight');
|
|
536
|
+
DocumentHighlightRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
437
537
|
})(DocumentHighlightRequest = exports.DocumentHighlightRequest || (exports.DocumentHighlightRequest = {}));
|
|
438
|
-
//---- Document Symbol Provider ---------------------------
|
|
439
538
|
/**
|
|
440
539
|
* A request to list all symbols found in a given text document. The request's
|
|
441
540
|
* parameter is of type [TextDocumentIdentifier](#TextDocumentIdentifier) the
|
|
@@ -445,8 +544,16 @@ var DocumentHighlightRequest;
|
|
|
445
544
|
var DocumentSymbolRequest;
|
|
446
545
|
(function (DocumentSymbolRequest) {
|
|
447
546
|
DocumentSymbolRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentSymbol');
|
|
547
|
+
DocumentSymbolRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
448
548
|
})(DocumentSymbolRequest = exports.DocumentSymbolRequest || (exports.DocumentSymbolRequest = {}));
|
|
449
|
-
|
|
549
|
+
/**
|
|
550
|
+
* A request to provide commands for the given text document and range.
|
|
551
|
+
*/
|
|
552
|
+
var CodeActionRequest;
|
|
553
|
+
(function (CodeActionRequest) {
|
|
554
|
+
CodeActionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/codeAction');
|
|
555
|
+
CodeActionRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
556
|
+
})(CodeActionRequest = exports.CodeActionRequest || (exports.CodeActionRequest = {}));
|
|
450
557
|
/**
|
|
451
558
|
* A request to list project-wide symbols matching the query string given
|
|
452
559
|
* by the [WorkspaceSymbolParams](#WorkspaceSymbolParams). The response is
|
|
@@ -456,20 +563,15 @@ var DocumentSymbolRequest;
|
|
|
456
563
|
var WorkspaceSymbolRequest;
|
|
457
564
|
(function (WorkspaceSymbolRequest) {
|
|
458
565
|
WorkspaceSymbolRequest.type = new vscode_jsonrpc_1.RequestType('workspace/symbol');
|
|
566
|
+
WorkspaceSymbolRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
459
567
|
})(WorkspaceSymbolRequest = exports.WorkspaceSymbolRequest || (exports.WorkspaceSymbolRequest = {}));
|
|
460
|
-
/**
|
|
461
|
-
* A request to provide commands for the given text document and range.
|
|
462
|
-
*/
|
|
463
|
-
var CodeActionRequest;
|
|
464
|
-
(function (CodeActionRequest) {
|
|
465
|
-
CodeActionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/codeAction');
|
|
466
|
-
})(CodeActionRequest = exports.CodeActionRequest || (exports.CodeActionRequest = {}));
|
|
467
568
|
/**
|
|
468
569
|
* A request to provide code lens for the given text document.
|
|
469
570
|
*/
|
|
470
571
|
var CodeLensRequest;
|
|
471
572
|
(function (CodeLensRequest) {
|
|
472
573
|
CodeLensRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/codeLens');
|
|
574
|
+
CodeLensRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
473
575
|
})(CodeLensRequest = exports.CodeLensRequest || (exports.CodeLensRequest = {}));
|
|
474
576
|
/**
|
|
475
577
|
* A request to resolve a command for a given code lens.
|
|
@@ -478,6 +580,23 @@ var CodeLensResolveRequest;
|
|
|
478
580
|
(function (CodeLensResolveRequest) {
|
|
479
581
|
CodeLensResolveRequest.type = new vscode_jsonrpc_1.RequestType('codeLens/resolve');
|
|
480
582
|
})(CodeLensResolveRequest = exports.CodeLensResolveRequest || (exports.CodeLensResolveRequest = {}));
|
|
583
|
+
/**
|
|
584
|
+
* A request to provide document links
|
|
585
|
+
*/
|
|
586
|
+
var DocumentLinkRequest;
|
|
587
|
+
(function (DocumentLinkRequest) {
|
|
588
|
+
DocumentLinkRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentLink');
|
|
589
|
+
DocumentLinkRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
590
|
+
})(DocumentLinkRequest = exports.DocumentLinkRequest || (exports.DocumentLinkRequest = {}));
|
|
591
|
+
/**
|
|
592
|
+
* Request to resolve additional information for a given document link. The request's
|
|
593
|
+
* parameter is of type [DocumentLink](#DocumentLink) the response
|
|
594
|
+
* is of type [DocumentLink](#DocumentLink) or a Thenable that resolves to such.
|
|
595
|
+
*/
|
|
596
|
+
var DocumentLinkResolveRequest;
|
|
597
|
+
(function (DocumentLinkResolveRequest) {
|
|
598
|
+
DocumentLinkResolveRequest.type = new vscode_jsonrpc_1.RequestType('documentLink/resolve');
|
|
599
|
+
})(DocumentLinkResolveRequest = exports.DocumentLinkResolveRequest || (exports.DocumentLinkResolveRequest = {}));
|
|
481
600
|
/**
|
|
482
601
|
* A request to to format a whole document.
|
|
483
602
|
*/
|
|
@@ -513,22 +632,6 @@ var PrepareRenameRequest;
|
|
|
513
632
|
(function (PrepareRenameRequest) {
|
|
514
633
|
PrepareRenameRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/prepareRename');
|
|
515
634
|
})(PrepareRenameRequest = exports.PrepareRenameRequest || (exports.PrepareRenameRequest = {}));
|
|
516
|
-
/**
|
|
517
|
-
* A request to provide document links
|
|
518
|
-
*/
|
|
519
|
-
var DocumentLinkRequest;
|
|
520
|
-
(function (DocumentLinkRequest) {
|
|
521
|
-
DocumentLinkRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentLink');
|
|
522
|
-
})(DocumentLinkRequest = exports.DocumentLinkRequest || (exports.DocumentLinkRequest = {}));
|
|
523
|
-
/**
|
|
524
|
-
* Request to resolve additional information for a given document link. The request's
|
|
525
|
-
* parameter is of type [DocumentLink](#DocumentLink) the response
|
|
526
|
-
* is of type [DocumentLink](#DocumentLink) or a Thenable that resolves to such.
|
|
527
|
-
*/
|
|
528
|
-
var DocumentLinkResolveRequest;
|
|
529
|
-
(function (DocumentLinkResolveRequest) {
|
|
530
|
-
DocumentLinkResolveRequest.type = new vscode_jsonrpc_1.RequestType('documentLink/resolve');
|
|
531
|
-
})(DocumentLinkResolveRequest = exports.DocumentLinkResolveRequest || (exports.DocumentLinkResolveRequest = {}));
|
|
532
635
|
/**
|
|
533
636
|
* A request send from the client to the server to execute a command. The request might return
|
|
534
637
|
* a workspace edit which the client will apply to the workspace.
|