vscode-languageserver-protocol 3.17.0-next.16 → 3.17.0-next.17
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/lib/common/connection.d.ts +26 -2
- package/lib/common/proposed.diagnostic.d.ts +59 -33
- package/lib/common/proposed.diagnostic.js +12 -7
- package/lib/common/proposed.notebook.d.ts +34 -29
- package/lib/common/proposed.notebook.js +8 -4
- package/lib/common/protocol.d.ts +188 -45
- package/lib/common/protocol.foldingRange.d.ts +1 -18
- package/lib/common/protocol.foldingRange.js +1 -19
- package/lib/common/protocol.implementation.d.ts +1 -1
- package/lib/common/protocol.implementation.js +2 -2
- package/lib/common/protocol.inlayHint.d.ts +17 -9
- package/lib/common/protocol.inlayHint.js +6 -3
- package/lib/common/protocol.inlineValue.d.ts +15 -8
- package/lib/common/protocol.inlineValue.js +4 -2
- package/lib/common/protocol.js +54 -12
- package/lib/common/protocol.linkedEditingRange.d.ts +1 -1
- package/lib/common/protocol.moniker.d.ts +12 -10
- package/lib/common/protocol.moniker.js +8 -8
- package/lib/common/protocol.progress.d.ts +2 -0
- package/lib/common/protocol.progress.js +4 -2
- package/lib/common/protocol.selectionRange.d.ts +1 -1
- package/lib/common/protocol.typeHierarchy.d.ts +18 -9
- package/lib/common/protocol.typeHierarchy.js +6 -3
- package/lib/common/protocol.workspaceFolder.d.ts +1 -11
- package/metaModel.schema.json +686 -0
- package/package.json +3 -3
|
@@ -11,7 +11,8 @@ const messages_1 = require("./messages");
|
|
|
11
11
|
* type [InlayHintsParams](#InlayHintsParams), the response is of type
|
|
12
12
|
* [InlayHint[]](#InlayHint[]) or a Thenable that resolves to such.
|
|
13
13
|
*
|
|
14
|
-
* @since 3.17.0
|
|
14
|
+
* @since 3.17.0
|
|
15
|
+
* @proposed
|
|
15
16
|
*/
|
|
16
17
|
var InlayHintRequest;
|
|
17
18
|
(function (InlayHintRequest) {
|
|
@@ -23,7 +24,8 @@ var InlayHintRequest;
|
|
|
23
24
|
* The request's parameter is of type [InlayHint](#InlayHint), the response is
|
|
24
25
|
* of type [InlayHint](#InlayHint) or a Thenable that resolves to such.
|
|
25
26
|
*
|
|
26
|
-
* @since 3.17.0
|
|
27
|
+
* @since 3.17.0
|
|
28
|
+
* @proposed
|
|
27
29
|
*/
|
|
28
30
|
var InlayHintResolveRequest;
|
|
29
31
|
(function (InlayHintResolveRequest) {
|
|
@@ -31,7 +33,8 @@ var InlayHintResolveRequest;
|
|
|
31
33
|
InlayHintResolveRequest.type = new messages_1.ProtocolRequestType(InlayHintResolveRequest.method);
|
|
32
34
|
})(InlayHintResolveRequest = exports.InlayHintResolveRequest || (exports.InlayHintResolveRequest = {}));
|
|
33
35
|
/**
|
|
34
|
-
* @since 3.17.0
|
|
36
|
+
* @since 3.17.0
|
|
37
|
+
* @proposed
|
|
35
38
|
*/
|
|
36
39
|
var InlayHintRefreshRequest;
|
|
37
40
|
(function (InlayHintRefreshRequest) {
|
|
@@ -5,7 +5,8 @@ import type { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRe
|
|
|
5
5
|
/**
|
|
6
6
|
* Client capabilities specific to inline values.
|
|
7
7
|
*
|
|
8
|
-
* @since 3.17.0
|
|
8
|
+
* @since 3.17.0
|
|
9
|
+
* @proposed
|
|
9
10
|
*/
|
|
10
11
|
export declare type InlineValueClientCapabilities = {
|
|
11
12
|
/**
|
|
@@ -16,7 +17,8 @@ export declare type InlineValueClientCapabilities = {
|
|
|
16
17
|
/**
|
|
17
18
|
* Client workspace capabilities specific to inline values.
|
|
18
19
|
*
|
|
19
|
-
* @since 3.17.0
|
|
20
|
+
* @since 3.17.0
|
|
21
|
+
* @proposed
|
|
20
22
|
*/
|
|
21
23
|
export declare type InlineValueWorkspaceClientCapabilities = {
|
|
22
24
|
/**
|
|
@@ -33,19 +35,22 @@ export declare type InlineValueWorkspaceClientCapabilities = {
|
|
|
33
35
|
/**
|
|
34
36
|
* Inline value options used during static registration.
|
|
35
37
|
*
|
|
36
|
-
* @since 3.17.0
|
|
38
|
+
* @since 3.17.0
|
|
39
|
+
* @proposed
|
|
37
40
|
*/
|
|
38
41
|
export declare type InlineValueOptions = WorkDoneProgressOptions;
|
|
39
42
|
/**
|
|
40
43
|
* Inline value options used during static or dynamic registration.
|
|
41
44
|
*
|
|
42
|
-
* @since 3.17.0
|
|
45
|
+
* @since 3.17.0
|
|
46
|
+
* @proposed
|
|
43
47
|
*/
|
|
44
48
|
export declare type InlineValueRegistrationOptions = InlineValueOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
|
|
45
49
|
/**
|
|
46
50
|
* A parameter literal used in inline value requests.
|
|
47
51
|
*
|
|
48
|
-
* @since 3.17.0
|
|
52
|
+
* @since 3.17.0
|
|
53
|
+
* @proposed
|
|
49
54
|
*/
|
|
50
55
|
export declare type InlineValueParams = WorkDoneProgressParams & {
|
|
51
56
|
/**
|
|
@@ -67,15 +72,17 @@ export declare type InlineValueParams = WorkDoneProgressParams & {
|
|
|
67
72
|
* type [InlineValueParams](#InlineValueParams), the response is of type
|
|
68
73
|
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
69
74
|
*
|
|
70
|
-
* @since 3.17.0
|
|
75
|
+
* @since 3.17.0
|
|
76
|
+
* @proposed
|
|
71
77
|
*/
|
|
72
78
|
export declare namespace InlineValueRequest {
|
|
73
79
|
const method: 'textDocument/inlineValue';
|
|
74
|
-
const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[],
|
|
80
|
+
const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[], void, InlineValueRegistrationOptions>;
|
|
75
81
|
type HandlerSignature = RequestHandler<InlineValueParams, InlineValue[] | null, void>;
|
|
76
82
|
}
|
|
77
83
|
/**
|
|
78
|
-
* @since 3.17.0
|
|
84
|
+
* @since 3.17.0
|
|
85
|
+
* @proposed
|
|
79
86
|
*/
|
|
80
87
|
export declare namespace InlineValueRefreshRequest {
|
|
81
88
|
const method: `workspace/inlineValue/refresh`;
|
|
@@ -11,7 +11,8 @@ const messages_1 = require("./messages");
|
|
|
11
11
|
* type [InlineValueParams](#InlineValueParams), the response is of type
|
|
12
12
|
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
13
13
|
*
|
|
14
|
-
* @since 3.17.0
|
|
14
|
+
* @since 3.17.0
|
|
15
|
+
* @proposed
|
|
15
16
|
*/
|
|
16
17
|
var InlineValueRequest;
|
|
17
18
|
(function (InlineValueRequest) {
|
|
@@ -19,7 +20,8 @@ var InlineValueRequest;
|
|
|
19
20
|
InlineValueRequest.type = new messages_1.ProtocolRequestType(InlineValueRequest.method);
|
|
20
21
|
})(InlineValueRequest = exports.InlineValueRequest || (exports.InlineValueRequest = {}));
|
|
21
22
|
/**
|
|
22
|
-
* @since 3.17.0
|
|
23
|
+
* @since 3.17.0
|
|
24
|
+
* @proposed
|
|
23
25
|
*/
|
|
24
26
|
var InlineValueRefreshRequest;
|
|
25
27
|
(function (InlineValueRefreshRequest) {
|
package/lib/common/protocol.js
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = exports.InlineValueRefreshRequest = void 0;
|
|
7
|
+
exports.WorkspaceSymbolRequest = exports.CodeActionResolveRequest = exports.CodeActionRequest = exports.DocumentSymbolRequest = exports.DocumentHighlightRequest = exports.ReferencesRequest = exports.DefinitionRequest = exports.SignatureHelpRequest = exports.SignatureHelpTriggerKind = exports.HoverRequest = exports.CompletionResolveRequest = exports.CompletionRequest = exports.CompletionTriggerKind = exports.PublishDiagnosticsNotification = exports.WatchKind = exports.RelativePattern = exports.FileChangeType = exports.DidChangeWatchedFilesNotification = exports.WillSaveTextDocumentWaitUntilRequest = exports.WillSaveTextDocumentNotification = exports.TextDocumentSaveReason = exports.DidSaveTextDocumentNotification = exports.DidCloseTextDocumentNotification = exports.DidChangeTextDocumentNotification = exports.TextDocumentContentChangeEvent = exports.DidOpenTextDocumentNotification = exports.TextDocumentSyncKind = exports.TelemetryEventNotification = exports.LogMessageNotification = exports.ShowMessageRequest = exports.ShowMessageNotification = exports.MessageType = exports.DidChangeConfigurationNotification = exports.ExitNotification = exports.ShutdownRequest = exports.InitializedNotification = exports.InitializeErrorCodes = exports.InitializeRequest = exports.WorkDoneProgressOptions = exports.TextDocumentRegistrationOptions = exports.StaticRegistrationOptions = exports.PositionEncodingKind = exports.FailureHandlingKind = exports.ResourceOperationKind = exports.UnregistrationRequest = exports.RegistrationRequest = exports.DocumentSelector = exports.NotebookCellTextDocumentFilter = exports.NotebookDocumentFilter = exports.TextDocumentFilter = void 0;
|
|
8
|
+
exports.TypeHierarchySubtypesRequest = exports.TypeHierarchyPrepareRequest = exports.MonikerRequest = exports.MonikerKind = exports.UniquenessLevel = exports.WillDeleteFilesRequest = exports.DidDeleteFilesNotification = exports.WillRenameFilesRequest = exports.DidRenameFilesNotification = exports.WillCreateFilesRequest = exports.DidCreateFilesNotification = exports.FileOperationPatternKind = exports.LinkedEditingRangeRequest = exports.ShowDocumentRequest = exports.SemanticTokensRegistrationType = exports.SemanticTokensRefreshRequest = exports.SemanticTokensRangeRequest = exports.SemanticTokensDeltaRequest = exports.SemanticTokensRequest = exports.TokenFormat = exports.CallHierarchyPrepareRequest = exports.CallHierarchyOutgoingCallsRequest = exports.CallHierarchyIncomingCallsRequest = exports.WorkDoneProgressCancelNotification = exports.WorkDoneProgressCreateRequest = exports.WorkDoneProgress = exports.SelectionRangeRequest = exports.DeclarationRequest = exports.FoldingRangeRequest = exports.ColorPresentationRequest = exports.DocumentColorRequest = exports.ConfigurationRequest = exports.DidChangeWorkspaceFoldersNotification = exports.WorkspaceFoldersRequest = exports.TypeDefinitionRequest = exports.ImplementationRequest = exports.ApplyWorkspaceEditRequest = exports.ExecuteCommandRequest = exports.PrepareRenameRequest = exports.RenameRequest = exports.PrepareSupportDefaultBehavior = exports.DocumentOnTypeFormattingRequest = exports.DocumentRangeFormattingRequest = exports.DocumentFormattingRequest = exports.DocumentLinkResolveRequest = exports.DocumentLinkRequest = exports.CodeLensRefreshRequest = exports.CodeLensResolveRequest = exports.CodeLensRequest = exports.WorkspaceSymbolResolveRequest = void 0;
|
|
9
|
+
exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = exports.InlineValueRefreshRequest = exports.InlineValueRequest = exports.TypeHierarchySupertypesRequest = void 0;
|
|
10
10
|
const messages_1 = require("./messages");
|
|
11
|
+
const vscode_languageserver_types_1 = require("vscode-languageserver-types");
|
|
11
12
|
const Is = require("./utils/is");
|
|
12
13
|
const protocol_implementation_1 = require("./protocol.implementation");
|
|
13
14
|
Object.defineProperty(exports, "ImplementationRequest", { enumerable: true, get: function () { return protocol_implementation_1.ImplementationRequest; } });
|
|
@@ -75,7 +76,8 @@ let __noDynamicImport;
|
|
|
75
76
|
* The TextDocumentFilter namespace provides helper functions to work with
|
|
76
77
|
* [TextDocumentFilter](#TextDocumentFilter) literals.
|
|
77
78
|
*
|
|
78
|
-
* @since 3.17.0
|
|
79
|
+
* @since 3.17.0
|
|
80
|
+
* @proposed
|
|
79
81
|
*/
|
|
80
82
|
var TextDocumentFilter;
|
|
81
83
|
(function (TextDocumentFilter) {
|
|
@@ -89,7 +91,8 @@ var TextDocumentFilter;
|
|
|
89
91
|
* The NotebookDocumentFilter namespace provides helper functions to work with
|
|
90
92
|
* [NotebookDocumentFilter](#NotebookDocumentFilter) literals.
|
|
91
93
|
*
|
|
92
|
-
* @since 3.17.0
|
|
94
|
+
* @since 3.17.0
|
|
95
|
+
* @proposed
|
|
93
96
|
*/
|
|
94
97
|
var NotebookDocumentFilter;
|
|
95
98
|
(function (NotebookDocumentFilter) {
|
|
@@ -103,7 +106,8 @@ var NotebookDocumentFilter;
|
|
|
103
106
|
* The NotebookCellTextDocumentFilter namespace provides helper functions to work with
|
|
104
107
|
* [NotebookCellTextDocumentFilter](#NotebookCellTextDocumentFilter) literals.
|
|
105
108
|
*
|
|
106
|
-
* @since 3.17.0
|
|
109
|
+
* @since 3.17.0
|
|
110
|
+
* @proposed
|
|
107
111
|
*/
|
|
108
112
|
var NotebookCellTextDocumentFilter;
|
|
109
113
|
(function (NotebookCellTextDocumentFilter) {
|
|
@@ -189,6 +193,34 @@ var FailureHandlingKind;
|
|
|
189
193
|
*/
|
|
190
194
|
FailureHandlingKind.Undo = 'undo';
|
|
191
195
|
})(FailureHandlingKind = exports.FailureHandlingKind || (exports.FailureHandlingKind = {}));
|
|
196
|
+
/**
|
|
197
|
+
* A set of predefined position encoding kinds.
|
|
198
|
+
*
|
|
199
|
+
* @since 3.17.0
|
|
200
|
+
* @proposed
|
|
201
|
+
*/
|
|
202
|
+
var PositionEncodingKind;
|
|
203
|
+
(function (PositionEncodingKind) {
|
|
204
|
+
/**
|
|
205
|
+
* Character offsets count UTF-8 code units.
|
|
206
|
+
*/
|
|
207
|
+
PositionEncodingKind.UTF8 = 'utf-8';
|
|
208
|
+
/**
|
|
209
|
+
* Character offsets count UTF-16 code units.
|
|
210
|
+
*
|
|
211
|
+
* This is the default and must always be supported
|
|
212
|
+
* by servers
|
|
213
|
+
*/
|
|
214
|
+
PositionEncodingKind.UTF16 = 'utf-16';
|
|
215
|
+
/**
|
|
216
|
+
* Character offsets count UTF-32 code units.
|
|
217
|
+
*
|
|
218
|
+
* Implementation note: these are the same as Unicode code points,
|
|
219
|
+
* so this `PositionEncodingKind` may also be used for an
|
|
220
|
+
* encoding-agnostic representation of character offsets.
|
|
221
|
+
*/
|
|
222
|
+
PositionEncodingKind.UTF32 = 'utf-32';
|
|
223
|
+
})(PositionEncodingKind = exports.PositionEncodingKind || (exports.PositionEncodingKind = {}));
|
|
192
224
|
/**
|
|
193
225
|
* The StaticRegistrationOptions namespace provides helper functions to work with
|
|
194
226
|
* [StaticRegistrationOptions](#StaticRegistrationOptions) literals.
|
|
@@ -242,17 +274,18 @@ var InitializeRequest;
|
|
|
242
274
|
InitializeRequest.type = new messages_1.ProtocolRequestType('initialize');
|
|
243
275
|
})(InitializeRequest = exports.InitializeRequest || (exports.InitializeRequest = {}));
|
|
244
276
|
/**
|
|
245
|
-
* Known error codes for an `
|
|
277
|
+
* Known error codes for an `InitializeErrorCodes`;
|
|
246
278
|
*/
|
|
247
|
-
var
|
|
248
|
-
(function (
|
|
279
|
+
var InitializeErrorCodes;
|
|
280
|
+
(function (InitializeErrorCodes) {
|
|
249
281
|
/**
|
|
250
282
|
* If the protocol version provided by the client can't be handled by the server.
|
|
283
|
+
*
|
|
251
284
|
* @deprecated This initialize error got replaced by client capabilities. There is
|
|
252
285
|
* no version handshake in version 3.0x
|
|
253
286
|
*/
|
|
254
|
-
|
|
255
|
-
})(
|
|
287
|
+
InitializeErrorCodes.unknownProtocolVersion = 1;
|
|
288
|
+
})(InitializeErrorCodes = exports.InitializeErrorCodes || (exports.InitializeErrorCodes = {}));
|
|
256
289
|
/**
|
|
257
290
|
* The initialized notification is sent from the client to the
|
|
258
291
|
* server after the client is fully initialized and the server
|
|
@@ -505,6 +538,14 @@ var FileChangeType;
|
|
|
505
538
|
*/
|
|
506
539
|
FileChangeType.Deleted = 3;
|
|
507
540
|
})(FileChangeType = exports.FileChangeType || (exports.FileChangeType = {}));
|
|
541
|
+
var RelativePattern;
|
|
542
|
+
(function (RelativePattern) {
|
|
543
|
+
function is(value) {
|
|
544
|
+
const candidate = value;
|
|
545
|
+
return Is.objectLiteral(candidate) && (vscode_languageserver_types_1.URI.is(candidate.baseUri) || vscode_languageserver_types_1.WorkspaceFolder.is(candidate.baseUri)) && Is.string(candidate.pattern);
|
|
546
|
+
}
|
|
547
|
+
RelativePattern.is = is;
|
|
548
|
+
})(RelativePattern = exports.RelativePattern || (exports.RelativePattern = {}));
|
|
508
549
|
var WatchKind;
|
|
509
550
|
(function (WatchKind) {
|
|
510
551
|
/**
|
|
@@ -692,7 +733,8 @@ var WorkspaceSymbolRequest;
|
|
|
692
733
|
* A request to resolve the range inside the workspace
|
|
693
734
|
* symbol's location.
|
|
694
735
|
*
|
|
695
|
-
* @since 3.17.0
|
|
736
|
+
* @since 3.17.0
|
|
737
|
+
* @proposed
|
|
696
738
|
*/
|
|
697
739
|
var WorkspaceSymbolResolveRequest;
|
|
698
740
|
(function (WorkspaceSymbolResolveRequest) {
|
|
@@ -46,6 +46,6 @@ export interface LinkedEditingRanges {
|
|
|
46
46
|
*/
|
|
47
47
|
export declare namespace LinkedEditingRangeRequest {
|
|
48
48
|
const method: 'textDocument/linkedEditingRange';
|
|
49
|
-
const type: ProtocolRequestType<LinkedEditingRangeParams, LinkedEditingRanges | null, void,
|
|
49
|
+
const type: ProtocolRequestType<LinkedEditingRangeParams, LinkedEditingRanges | null, void, void, LinkedEditingRangeRegistrationOptions>;
|
|
50
50
|
type HandlerSignature = RequestHandler<LinkedEditingRangeParams, LinkedEditingRanges | null, void>;
|
|
51
51
|
}
|
|
@@ -5,48 +5,50 @@ import type { WorkDoneProgressOptions, WorkDoneProgressParams, PartialResultPara
|
|
|
5
5
|
*
|
|
6
6
|
* @since 3.16.0
|
|
7
7
|
*/
|
|
8
|
-
export declare
|
|
8
|
+
export declare namespace UniquenessLevel {
|
|
9
9
|
/**
|
|
10
10
|
* The moniker is only unique inside a document
|
|
11
11
|
*/
|
|
12
|
-
document = "document"
|
|
12
|
+
const document = "document";
|
|
13
13
|
/**
|
|
14
14
|
* The moniker is unique inside a project for which a dump got created
|
|
15
15
|
*/
|
|
16
|
-
project = "project"
|
|
16
|
+
const project = "project";
|
|
17
17
|
/**
|
|
18
18
|
* The moniker is unique inside the group to which a project belongs
|
|
19
19
|
*/
|
|
20
|
-
group = "group"
|
|
20
|
+
const group = "group";
|
|
21
21
|
/**
|
|
22
22
|
* The moniker is unique inside the moniker scheme.
|
|
23
23
|
*/
|
|
24
|
-
scheme = "scheme"
|
|
24
|
+
const scheme = "scheme";
|
|
25
25
|
/**
|
|
26
26
|
* The moniker is globally unique
|
|
27
27
|
*/
|
|
28
|
-
global = "global"
|
|
28
|
+
const global = "global";
|
|
29
29
|
}
|
|
30
|
+
export declare type UniquenessLevel = 'document' | 'project' | 'group' | 'scheme' | 'global';
|
|
30
31
|
/**
|
|
31
32
|
* The moniker kind.
|
|
32
33
|
*
|
|
33
34
|
* @since 3.16.0
|
|
34
35
|
*/
|
|
35
|
-
export declare
|
|
36
|
+
export declare namespace MonikerKind {
|
|
36
37
|
/**
|
|
37
38
|
* The moniker represent a symbol that is imported into a project
|
|
38
39
|
*/
|
|
39
|
-
import = "import"
|
|
40
|
+
const $import = "import";
|
|
40
41
|
/**
|
|
41
42
|
* The moniker represents a symbol that is exported from a project
|
|
42
43
|
*/
|
|
43
|
-
export = "export"
|
|
44
|
+
const $export = "export";
|
|
44
45
|
/**
|
|
45
46
|
* The moniker represents a symbol that is local to a project (e.g. a local
|
|
46
47
|
* variable of a function, a class not visible outside the project, ...)
|
|
47
48
|
*/
|
|
48
|
-
local = "local"
|
|
49
|
+
const local = "local";
|
|
49
50
|
}
|
|
51
|
+
export declare type MonikerKind = 'import' | 'export' | 'local';
|
|
50
52
|
/**
|
|
51
53
|
* Moniker definition to match LSIF 0.5 moniker definition.
|
|
52
54
|
*
|
|
@@ -16,23 +16,23 @@ var UniquenessLevel;
|
|
|
16
16
|
/**
|
|
17
17
|
* The moniker is only unique inside a document
|
|
18
18
|
*/
|
|
19
|
-
UniquenessLevel
|
|
19
|
+
UniquenessLevel.document = 'document';
|
|
20
20
|
/**
|
|
21
21
|
* The moniker is unique inside a project for which a dump got created
|
|
22
22
|
*/
|
|
23
|
-
UniquenessLevel
|
|
23
|
+
UniquenessLevel.project = 'project';
|
|
24
24
|
/**
|
|
25
25
|
* The moniker is unique inside the group to which a project belongs
|
|
26
26
|
*/
|
|
27
|
-
UniquenessLevel
|
|
27
|
+
UniquenessLevel.group = 'group';
|
|
28
28
|
/**
|
|
29
29
|
* The moniker is unique inside the moniker scheme.
|
|
30
30
|
*/
|
|
31
|
-
UniquenessLevel
|
|
31
|
+
UniquenessLevel.scheme = 'scheme';
|
|
32
32
|
/**
|
|
33
33
|
* The moniker is globally unique
|
|
34
34
|
*/
|
|
35
|
-
UniquenessLevel
|
|
35
|
+
UniquenessLevel.global = 'global';
|
|
36
36
|
})(UniquenessLevel = exports.UniquenessLevel || (exports.UniquenessLevel = {}));
|
|
37
37
|
/**
|
|
38
38
|
* The moniker kind.
|
|
@@ -44,16 +44,16 @@ var MonikerKind;
|
|
|
44
44
|
/**
|
|
45
45
|
* The moniker represent a symbol that is imported into a project
|
|
46
46
|
*/
|
|
47
|
-
MonikerKind
|
|
47
|
+
MonikerKind.$import = 'import';
|
|
48
48
|
/**
|
|
49
49
|
* The moniker represents a symbol that is exported from a project
|
|
50
50
|
*/
|
|
51
|
-
MonikerKind
|
|
51
|
+
MonikerKind.$export = 'export';
|
|
52
52
|
/**
|
|
53
53
|
* The moniker represents a symbol that is local to a project (e.g. a local
|
|
54
54
|
* variable of a function, a class not visible outside the project, ...)
|
|
55
55
|
*/
|
|
56
|
-
MonikerKind
|
|
56
|
+
MonikerKind.local = 'local';
|
|
57
57
|
})(MonikerKind = exports.MonikerKind || (exports.MonikerKind = {}));
|
|
58
58
|
/**
|
|
59
59
|
* A request to get the moniker of a symbol at a given text document position.
|
|
@@ -84,6 +84,7 @@ export interface WorkDoneProgressCreateParams {
|
|
|
84
84
|
* reporting from the server.
|
|
85
85
|
*/
|
|
86
86
|
export declare namespace WorkDoneProgressCreateRequest {
|
|
87
|
+
const method: 'window/workDoneProgress/create';
|
|
87
88
|
const type: ProtocolRequestType<WorkDoneProgressCreateParams, void, never, void, void>;
|
|
88
89
|
type HandlerSignature = RequestHandler<WorkDoneProgressCreateParams, void, void>;
|
|
89
90
|
}
|
|
@@ -98,6 +99,7 @@ export interface WorkDoneProgressCancelParams {
|
|
|
98
99
|
* initiated on the server side.
|
|
99
100
|
*/
|
|
100
101
|
export declare namespace WorkDoneProgressCancelNotification {
|
|
102
|
+
const method: 'window/workDoneProgress/cancel';
|
|
101
103
|
const type: ProtocolNotificationType<WorkDoneProgressCancelParams, void>;
|
|
102
104
|
type HandlerSignature = NotificationHandler<WorkDoneProgressCancelParams>;
|
|
103
105
|
}
|
|
@@ -21,7 +21,8 @@ var WorkDoneProgress;
|
|
|
21
21
|
*/
|
|
22
22
|
var WorkDoneProgressCreateRequest;
|
|
23
23
|
(function (WorkDoneProgressCreateRequest) {
|
|
24
|
-
WorkDoneProgressCreateRequest.
|
|
24
|
+
WorkDoneProgressCreateRequest.method = 'window/workDoneProgress/create';
|
|
25
|
+
WorkDoneProgressCreateRequest.type = new messages_1.ProtocolRequestType(WorkDoneProgressCreateRequest.method);
|
|
25
26
|
})(WorkDoneProgressCreateRequest = exports.WorkDoneProgressCreateRequest || (exports.WorkDoneProgressCreateRequest = {}));
|
|
26
27
|
/**
|
|
27
28
|
* The `window/workDoneProgress/cancel` notification is sent from the client to the server to cancel a progress
|
|
@@ -29,6 +30,7 @@ var WorkDoneProgressCreateRequest;
|
|
|
29
30
|
*/
|
|
30
31
|
var WorkDoneProgressCancelNotification;
|
|
31
32
|
(function (WorkDoneProgressCancelNotification) {
|
|
32
|
-
WorkDoneProgressCancelNotification.
|
|
33
|
+
WorkDoneProgressCancelNotification.method = 'window/workDoneProgress/cancel';
|
|
34
|
+
WorkDoneProgressCancelNotification.type = new messages_1.ProtocolNotificationType(WorkDoneProgressCancelNotification.method);
|
|
33
35
|
})(WorkDoneProgressCancelNotification = exports.WorkDoneProgressCancelNotification || (exports.WorkDoneProgressCancelNotification = {}));
|
|
34
36
|
//# sourceMappingURL=protocol.progress.js.map
|
|
@@ -35,6 +35,6 @@ export interface SelectionRangeParams extends WorkDoneProgressParams, PartialRes
|
|
|
35
35
|
*/
|
|
36
36
|
export declare namespace SelectionRangeRequest {
|
|
37
37
|
const method: 'textDocument/selectionRange';
|
|
38
|
-
const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[],
|
|
38
|
+
const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[], void, SelectionRangeRegistrationOptions>;
|
|
39
39
|
type HandlerSignature = RequestHandler<SelectionRangeParams, SelectionRange[] | null, void>;
|
|
40
40
|
}
|
|
@@ -3,7 +3,8 @@ import { TypeHierarchyItem } from 'vscode-languageserver-types';
|
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
4
|
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
|
-
* @since 3.17.0
|
|
6
|
+
* @since 3.17.0
|
|
7
|
+
* @proposed
|
|
7
8
|
*/
|
|
8
9
|
export declare type TypeHierarchyClientCapabilities = {
|
|
9
10
|
/**
|
|
@@ -16,26 +17,30 @@ export declare type TypeHierarchyClientCapabilities = {
|
|
|
16
17
|
/**
|
|
17
18
|
* Type hierarchy options used during static registration.
|
|
18
19
|
*
|
|
19
|
-
* @since 3.17.0
|
|
20
|
+
* @since 3.17.0
|
|
21
|
+
* @proposed
|
|
20
22
|
*/
|
|
21
23
|
export declare type TypeHierarchyOptions = WorkDoneProgressOptions;
|
|
22
24
|
/**
|
|
23
25
|
* Type hierarchy options used during static or dynamic registration.
|
|
24
26
|
*
|
|
25
|
-
* @since 3.17.0
|
|
27
|
+
* @since 3.17.0
|
|
28
|
+
* @proposed
|
|
26
29
|
*/
|
|
27
30
|
export declare type TypeHierarchyRegistrationOptions = TextDocumentRegistrationOptions & TypeHierarchyOptions & StaticRegistrationOptions;
|
|
28
31
|
/**
|
|
29
32
|
* The parameter of a `textDocument/prepareTypeHierarchy` request.
|
|
30
33
|
*
|
|
31
|
-
* @since 3.17.0
|
|
34
|
+
* @since 3.17.0
|
|
35
|
+
* @proposed
|
|
32
36
|
*/
|
|
33
37
|
export declare type TypeHierarchyPrepareParams = TextDocumentPositionParams & WorkDoneProgressParams;
|
|
34
38
|
/**
|
|
35
39
|
* A request to result a `TypeHierarchyItem` in a document at a given position.
|
|
36
40
|
* Can be used as an input to a subtypes or supertypes type hierarchy.
|
|
37
41
|
*
|
|
38
|
-
* @since 3.17.0
|
|
42
|
+
* @since 3.17.0
|
|
43
|
+
* @proposed
|
|
39
44
|
*/
|
|
40
45
|
export declare namespace TypeHierarchyPrepareRequest {
|
|
41
46
|
const method: 'textDocument/prepareTypeHierarchy';
|
|
@@ -45,7 +50,8 @@ export declare namespace TypeHierarchyPrepareRequest {
|
|
|
45
50
|
/**
|
|
46
51
|
* The parameter of a `typeHierarchy/supertypes` request.
|
|
47
52
|
*
|
|
48
|
-
* @since 3.17.0
|
|
53
|
+
* @since 3.17.0
|
|
54
|
+
* @proposed
|
|
49
55
|
*/
|
|
50
56
|
export declare type TypeHierarchySupertypesParams = WorkDoneProgressParams & PartialResultParams & {
|
|
51
57
|
item: TypeHierarchyItem;
|
|
@@ -53,7 +59,8 @@ export declare type TypeHierarchySupertypesParams = WorkDoneProgressParams & Par
|
|
|
53
59
|
/**
|
|
54
60
|
* A request to resolve the supertypes for a given `TypeHierarchyItem`.
|
|
55
61
|
*
|
|
56
|
-
* @since 3.17.0
|
|
62
|
+
* @since 3.17.0
|
|
63
|
+
* @proposed
|
|
57
64
|
*/
|
|
58
65
|
export declare namespace TypeHierarchySupertypesRequest {
|
|
59
66
|
const method: 'typeHierarchy/supertypes';
|
|
@@ -63,7 +70,8 @@ export declare namespace TypeHierarchySupertypesRequest {
|
|
|
63
70
|
/**
|
|
64
71
|
* The parameter of a `typeHierarchy/subtypes` request.
|
|
65
72
|
*
|
|
66
|
-
* @since 3.17.0
|
|
73
|
+
* @since 3.17.0
|
|
74
|
+
* @proposed
|
|
67
75
|
*/
|
|
68
76
|
export declare type TypeHierarchySubtypesParams = WorkDoneProgressParams & PartialResultParams & {
|
|
69
77
|
item: TypeHierarchyItem;
|
|
@@ -71,7 +79,8 @@ export declare type TypeHierarchySubtypesParams = WorkDoneProgressParams & Parti
|
|
|
71
79
|
/**
|
|
72
80
|
* A request to resolve the subtypes for a given `TypeHierarchyItem`.
|
|
73
81
|
*
|
|
74
|
-
* @since 3.17.0
|
|
82
|
+
* @since 3.17.0
|
|
83
|
+
* @proposed
|
|
75
84
|
*/
|
|
76
85
|
export declare namespace TypeHierarchySubtypesRequest {
|
|
77
86
|
const method: 'typeHierarchy/subtypes';
|
|
@@ -10,7 +10,8 @@ const messages_1 = require("./messages");
|
|
|
10
10
|
* A request to result a `TypeHierarchyItem` in a document at a given position.
|
|
11
11
|
* Can be used as an input to a subtypes or supertypes type hierarchy.
|
|
12
12
|
*
|
|
13
|
-
* @since 3.17.0
|
|
13
|
+
* @since 3.17.0
|
|
14
|
+
* @proposed
|
|
14
15
|
*/
|
|
15
16
|
var TypeHierarchyPrepareRequest;
|
|
16
17
|
(function (TypeHierarchyPrepareRequest) {
|
|
@@ -20,7 +21,8 @@ var TypeHierarchyPrepareRequest;
|
|
|
20
21
|
/**
|
|
21
22
|
* A request to resolve the supertypes for a given `TypeHierarchyItem`.
|
|
22
23
|
*
|
|
23
|
-
* @since 3.17.0
|
|
24
|
+
* @since 3.17.0
|
|
25
|
+
* @proposed
|
|
24
26
|
*/
|
|
25
27
|
var TypeHierarchySupertypesRequest;
|
|
26
28
|
(function (TypeHierarchySupertypesRequest) {
|
|
@@ -30,7 +32,8 @@ var TypeHierarchySupertypesRequest;
|
|
|
30
32
|
/**
|
|
31
33
|
* A request to resolve the subtypes for a given `TypeHierarchyItem`.
|
|
32
34
|
*
|
|
33
|
-
* @since 3.17.0
|
|
35
|
+
* @since 3.17.0
|
|
36
|
+
* @proposed
|
|
34
37
|
*/
|
|
35
38
|
var TypeHierarchySubtypesRequest;
|
|
36
39
|
(function (TypeHierarchySubtypesRequest) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WorkspaceFolder } from 'vscode-languageserver-types';
|
|
1
2
|
import { RequestHandler0, NotificationHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
2
3
|
import { ProtocolRequestType0, ProtocolNotificationType } from './messages';
|
|
3
4
|
export interface WorkspaceFoldersInitializeParams {
|
|
@@ -22,17 +23,6 @@ export interface WorkspaceFoldersServerCapabilities {
|
|
|
22
23
|
*/
|
|
23
24
|
changeNotifications?: string | boolean;
|
|
24
25
|
}
|
|
25
|
-
export interface WorkspaceFolder {
|
|
26
|
-
/**
|
|
27
|
-
* The associated URI for this workspace folder.
|
|
28
|
-
*/
|
|
29
|
-
uri: string;
|
|
30
|
-
/**
|
|
31
|
-
* The name of the workspace folder. Used to refer to this
|
|
32
|
-
* workspace folder in the user interface.
|
|
33
|
-
*/
|
|
34
|
-
name: string;
|
|
35
|
-
}
|
|
36
26
|
/**
|
|
37
27
|
* The `workspace/workspaceFolders` is sent from the server to the client to fetch the open workspace folders.
|
|
38
28
|
*/
|