vscode-languageserver-protocol 3.17.3-next.1 → 3.17.3-next.3
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/browser/main.js +0 -1
- package/lib/common/api.js +0 -1
- package/lib/common/connection.js +0 -1
- package/lib/common/messages.js +0 -1
- package/lib/common/protocol.$.js +0 -1
- package/lib/common/protocol.callHierarchy.js +0 -1
- package/lib/common/protocol.colorProvider.d.ts +6 -6
- package/lib/common/protocol.colorProvider.js +4 -5
- package/lib/common/protocol.configuration.d.ts +1 -2
- package/lib/common/protocol.configuration.js +0 -1
- package/lib/common/protocol.d.ts +98 -98
- package/lib/common/protocol.declaration.d.ts +2 -2
- package/lib/common/protocol.declaration.js +2 -3
- package/lib/common/protocol.diagnostic.js +1 -2
- package/lib/common/protocol.fileOperations.js +0 -1
- package/lib/common/protocol.foldingRange.d.ts +3 -3
- package/lib/common/protocol.foldingRange.js +2 -3
- package/lib/common/protocol.implementation.d.ts +1 -1
- package/lib/common/protocol.implementation.js +1 -2
- package/lib/common/protocol.inlayHint.d.ts +4 -4
- package/lib/common/protocol.inlayHint.js +5 -6
- package/lib/common/protocol.inlineValue.d.ts +2 -2
- package/lib/common/protocol.inlineValue.js +3 -4
- package/lib/common/protocol.js +30 -31
- package/lib/common/protocol.linkedEditingRange.js +0 -1
- package/lib/common/protocol.moniker.d.ts +2 -2
- package/lib/common/protocol.moniker.js +2 -3
- package/lib/common/protocol.notebook.js +0 -1
- package/lib/common/protocol.progress.js +0 -1
- package/lib/common/protocol.selectionRange.d.ts +2 -2
- package/lib/common/protocol.selectionRange.js +2 -3
- package/lib/common/protocol.semanticTokens.js +1 -2
- package/lib/common/protocol.showDocument.js +0 -1
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/common/protocol.typeDefinition.js +1 -2
- package/lib/common/protocol.typeHierarchy.js +0 -1
- package/lib/common/protocol.workspaceFolder.js +0 -1
- package/lib/common/utils/is.js +0 -1
- package/lib/node/main.js +0 -1
- package/package.json +45 -38
|
@@ -26,8 +26,8 @@ export interface DeclarationParams extends TextDocumentPositionParams, WorkDoneP
|
|
|
26
26
|
/**
|
|
27
27
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
28
28
|
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
29
|
-
* (#TextDocumentPositionParams) the response is of type
|
|
30
|
-
* or a typed array of
|
|
29
|
+
* (#TextDocumentPositionParams) the response is of type {@link Declaration}
|
|
30
|
+
* or a typed array of {@link DeclarationLink} or a Thenable that resolves
|
|
31
31
|
* to such.
|
|
32
32
|
*/
|
|
33
33
|
export declare namespace DeclarationRequest {
|
|
@@ -11,8 +11,8 @@ let __noDynamicImport;
|
|
|
11
11
|
/**
|
|
12
12
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
13
13
|
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
14
|
-
* (#TextDocumentPositionParams) the response is of type
|
|
15
|
-
* or a typed array of
|
|
14
|
+
* (#TextDocumentPositionParams) the response is of type {@link Declaration}
|
|
15
|
+
* or a typed array of {@link DeclarationLink} or a Thenable that resolves
|
|
16
16
|
* to such.
|
|
17
17
|
*/
|
|
18
18
|
var DeclarationRequest;
|
|
@@ -21,4 +21,3 @@ var DeclarationRequest;
|
|
|
21
21
|
DeclarationRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
22
22
|
DeclarationRequest.type = new messages_1.ProtocolRequestType(DeclarationRequest.method);
|
|
23
23
|
})(DeclarationRequest = exports.DeclarationRequest || (exports.DeclarationRequest = {}));
|
|
24
|
-
//# sourceMappingURL=protocol.declaration.js.map
|
|
@@ -69,7 +69,6 @@ var WorkspaceDiagnosticRequest;
|
|
|
69
69
|
var DiagnosticRefreshRequest;
|
|
70
70
|
(function (DiagnosticRefreshRequest) {
|
|
71
71
|
DiagnosticRefreshRequest.method = `workspace/diagnostic/refresh`;
|
|
72
|
-
DiagnosticRefreshRequest.messageDirection = messages_1.MessageDirection.
|
|
72
|
+
DiagnosticRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
73
73
|
DiagnosticRefreshRequest.type = new messages_1.ProtocolRequestType0(DiagnosticRefreshRequest.method);
|
|
74
74
|
})(DiagnosticRefreshRequest = exports.DiagnosticRefreshRequest || (exports.DiagnosticRefreshRequest = {}));
|
|
75
|
-
//# sourceMappingURL=protocol.diagnostic.js.map
|
|
@@ -95,4 +95,3 @@ var WillDeleteFilesRequest;
|
|
|
95
95
|
WillDeleteFilesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
96
96
|
WillDeleteFilesRequest.type = new messages_1.ProtocolRequestType(WillDeleteFilesRequest.method);
|
|
97
97
|
})(WillDeleteFilesRequest = exports.WillDeleteFilesRequest || (exports.WillDeleteFilesRequest = {}));
|
|
98
|
-
//# sourceMappingURL=protocol.fileOperations.js.map
|
|
@@ -56,7 +56,7 @@ export interface FoldingRangeOptions extends WorkDoneProgressOptions {
|
|
|
56
56
|
export interface FoldingRangeRegistrationOptions extends TextDocumentRegistrationOptions, FoldingRangeOptions, StaticRegistrationOptions {
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Parameters for a
|
|
59
|
+
* Parameters for a {@link FoldingRangeRequest}.
|
|
60
60
|
*/
|
|
61
61
|
export interface FoldingRangeParams extends WorkDoneProgressParams, PartialResultParams {
|
|
62
62
|
/**
|
|
@@ -66,8 +66,8 @@ export interface FoldingRangeParams extends WorkDoneProgressParams, PartialResul
|
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* A request to provide folding ranges in a document. The request's
|
|
69
|
-
* parameter is of type
|
|
70
|
-
* response is of type
|
|
69
|
+
* parameter is of type {@link FoldingRangeParams}, the
|
|
70
|
+
* response is of type {@link FoldingRangeList} or a Thenable
|
|
71
71
|
* that resolves to such.
|
|
72
72
|
*/
|
|
73
73
|
export declare namespace FoldingRangeRequest {
|
|
@@ -8,8 +8,8 @@ exports.FoldingRangeRequest = void 0;
|
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
9
|
/**
|
|
10
10
|
* A request to provide folding ranges in a document. The request's
|
|
11
|
-
* parameter is of type
|
|
12
|
-
* response is of type
|
|
11
|
+
* parameter is of type {@link FoldingRangeParams}, the
|
|
12
|
+
* response is of type {@link FoldingRangeList} or a Thenable
|
|
13
13
|
* that resolves to such.
|
|
14
14
|
*/
|
|
15
15
|
var FoldingRangeRequest;
|
|
@@ -18,4 +18,3 @@ var FoldingRangeRequest;
|
|
|
18
18
|
FoldingRangeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
19
19
|
FoldingRangeRequest.type = new messages_1.ProtocolRequestType(FoldingRangeRequest.method);
|
|
20
20
|
})(FoldingRangeRequest = exports.FoldingRangeRequest || (exports.FoldingRangeRequest = {}));
|
|
21
|
-
//# sourceMappingURL=protocol.foldingRange.js.map
|
|
@@ -28,7 +28,7 @@ export interface ImplementationParams extends TextDocumentPositionParams, WorkDo
|
|
|
28
28
|
/**
|
|
29
29
|
* A request to resolve the implementation locations of a symbol at a given text
|
|
30
30
|
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
31
|
-
* (#TextDocumentPositionParams) the response is of type
|
|
31
|
+
* (#TextDocumentPositionParams) the response is of type {@link Definition} or a
|
|
32
32
|
* Thenable that resolves to such.
|
|
33
33
|
*/
|
|
34
34
|
export declare namespace ImplementationRequest {
|
|
@@ -11,7 +11,7 @@ let __noDynamicImport;
|
|
|
11
11
|
/**
|
|
12
12
|
* A request to resolve the implementation locations of a symbol at a given text
|
|
13
13
|
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
14
|
-
* (#TextDocumentPositionParams) the response is of type
|
|
14
|
+
* (#TextDocumentPositionParams) the response is of type {@link Definition} or a
|
|
15
15
|
* Thenable that resolves to such.
|
|
16
16
|
*/
|
|
17
17
|
var ImplementationRequest;
|
|
@@ -20,4 +20,3 @@ var ImplementationRequest;
|
|
|
20
20
|
ImplementationRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
21
21
|
ImplementationRequest.type = new messages_1.ProtocolRequestType(ImplementationRequest.method);
|
|
22
22
|
})(ImplementationRequest = exports.ImplementationRequest || (exports.ImplementationRequest = {}));
|
|
23
|
-
//# sourceMappingURL=protocol.implementation.js.map
|
|
@@ -75,8 +75,8 @@ export declare type InlayHintParams = WorkDoneProgressParams & {
|
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
77
|
* A request to provide inlay hints in a document. The request's parameter is of
|
|
78
|
-
* type
|
|
79
|
-
*
|
|
78
|
+
* type {@link InlayHintsParams}, the response is of type
|
|
79
|
+
* {@link InlayHint InlayHint[]} or a Thenable that resolves to such.
|
|
80
80
|
*
|
|
81
81
|
* @since 3.17.0
|
|
82
82
|
*/
|
|
@@ -88,8 +88,8 @@ export declare namespace InlayHintRequest {
|
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* A request to resolve additional properties for an inlay hint.
|
|
91
|
-
* The request's parameter is of type
|
|
92
|
-
* of type
|
|
91
|
+
* The request's parameter is of type {@link InlayHint}, the response is
|
|
92
|
+
* of type {@link InlayHint} or a Thenable that resolves to such.
|
|
93
93
|
*
|
|
94
94
|
* @since 3.17.0
|
|
95
95
|
*/
|
|
@@ -8,8 +8,8 @@ exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.Inla
|
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
9
|
/**
|
|
10
10
|
* A request to provide inlay hints in a document. The request's parameter is of
|
|
11
|
-
* type
|
|
12
|
-
*
|
|
11
|
+
* type {@link InlayHintsParams}, the response is of type
|
|
12
|
+
* {@link InlayHint InlayHint[]} or a Thenable that resolves to such.
|
|
13
13
|
*
|
|
14
14
|
* @since 3.17.0
|
|
15
15
|
*/
|
|
@@ -21,8 +21,8 @@ var InlayHintRequest;
|
|
|
21
21
|
})(InlayHintRequest = exports.InlayHintRequest || (exports.InlayHintRequest = {}));
|
|
22
22
|
/**
|
|
23
23
|
* A request to resolve additional properties for an inlay hint.
|
|
24
|
-
* The request's parameter is of type
|
|
25
|
-
* of type
|
|
24
|
+
* The request's parameter is of type {@link InlayHint}, the response is
|
|
25
|
+
* of type {@link InlayHint} or a Thenable that resolves to such.
|
|
26
26
|
*
|
|
27
27
|
* @since 3.17.0
|
|
28
28
|
*/
|
|
@@ -38,7 +38,6 @@ var InlayHintResolveRequest;
|
|
|
38
38
|
var InlayHintRefreshRequest;
|
|
39
39
|
(function (InlayHintRefreshRequest) {
|
|
40
40
|
InlayHintRefreshRequest.method = `workspace/inlayHint/refresh`;
|
|
41
|
-
InlayHintRefreshRequest.messageDirection = messages_1.MessageDirection.
|
|
41
|
+
InlayHintRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
42
42
|
InlayHintRefreshRequest.type = new messages_1.ProtocolRequestType0(InlayHintRefreshRequest.method);
|
|
43
43
|
})(InlayHintRefreshRequest = exports.InlayHintRefreshRequest || (exports.InlayHintRefreshRequest = {}));
|
|
44
|
-
//# sourceMappingURL=protocol.inlayHint.js.map
|
|
@@ -64,8 +64,8 @@ export declare type InlineValueParams = WorkDoneProgressParams & {
|
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* A request to provide inline values in a document. The request's parameter is of
|
|
67
|
-
* type
|
|
68
|
-
*
|
|
67
|
+
* type {@link InlineValueParams}, the response is of type
|
|
68
|
+
* {@link InlineValue InlineValue[]} or a Thenable that resolves to such.
|
|
69
69
|
*
|
|
70
70
|
* @since 3.17.0
|
|
71
71
|
*/
|
|
@@ -8,8 +8,8 @@ exports.InlineValueRefreshRequest = exports.InlineValueRequest = void 0;
|
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
9
|
/**
|
|
10
10
|
* A request to provide inline values in a document. The request's parameter is of
|
|
11
|
-
* type
|
|
12
|
-
*
|
|
11
|
+
* type {@link InlineValueParams}, the response is of type
|
|
12
|
+
* {@link InlineValue InlineValue[]} or a Thenable that resolves to such.
|
|
13
13
|
*
|
|
14
14
|
* @since 3.17.0
|
|
15
15
|
*/
|
|
@@ -25,7 +25,6 @@ var InlineValueRequest;
|
|
|
25
25
|
var InlineValueRefreshRequest;
|
|
26
26
|
(function (InlineValueRefreshRequest) {
|
|
27
27
|
InlineValueRefreshRequest.method = `workspace/inlineValue/refresh`;
|
|
28
|
-
InlineValueRefreshRequest.messageDirection = messages_1.MessageDirection.
|
|
28
|
+
InlineValueRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
29
29
|
InlineValueRefreshRequest.type = new messages_1.ProtocolRequestType0(InlineValueRefreshRequest.method);
|
|
30
30
|
})(InlineValueRefreshRequest = exports.InlineValueRefreshRequest || (exports.InlineValueRefreshRequest = {}));
|
|
31
|
-
//# sourceMappingURL=protocol.inlineValue.js.map
|
package/lib/common/protocol.js
CHANGED
|
@@ -91,7 +91,7 @@ Object.defineProperty(exports, "DidCloseNotebookDocumentNotification", { enumera
|
|
|
91
91
|
let __noDynamicImport;
|
|
92
92
|
/**
|
|
93
93
|
* The TextDocumentFilter namespace provides helper functions to work with
|
|
94
|
-
*
|
|
94
|
+
* {@link TextDocumentFilter} literals.
|
|
95
95
|
*
|
|
96
96
|
* @since 3.17.0
|
|
97
97
|
*/
|
|
@@ -105,7 +105,7 @@ var TextDocumentFilter;
|
|
|
105
105
|
})(TextDocumentFilter = exports.TextDocumentFilter || (exports.TextDocumentFilter = {}));
|
|
106
106
|
/**
|
|
107
107
|
* The NotebookDocumentFilter namespace provides helper functions to work with
|
|
108
|
-
*
|
|
108
|
+
* {@link NotebookDocumentFilter} literals.
|
|
109
109
|
*
|
|
110
110
|
* @since 3.17.0
|
|
111
111
|
*/
|
|
@@ -119,7 +119,7 @@ var NotebookDocumentFilter;
|
|
|
119
119
|
})(NotebookDocumentFilter = exports.NotebookDocumentFilter || (exports.NotebookDocumentFilter = {}));
|
|
120
120
|
/**
|
|
121
121
|
* The NotebookCellTextDocumentFilter namespace provides helper functions to work with
|
|
122
|
-
*
|
|
122
|
+
* {@link NotebookCellTextDocumentFilter} literals.
|
|
123
123
|
*
|
|
124
124
|
* @since 3.17.0
|
|
125
125
|
*/
|
|
@@ -135,7 +135,7 @@ var NotebookCellTextDocumentFilter;
|
|
|
135
135
|
})(NotebookCellTextDocumentFilter = exports.NotebookCellTextDocumentFilter || (exports.NotebookCellTextDocumentFilter = {}));
|
|
136
136
|
/**
|
|
137
137
|
* The DocumentSelector namespace provides helper functions to work with
|
|
138
|
-
*
|
|
138
|
+
* {@link DocumentSelector}s.
|
|
139
139
|
*/
|
|
140
140
|
var DocumentSelector;
|
|
141
141
|
(function (DocumentSelector) {
|
|
@@ -240,7 +240,7 @@ var PositionEncodingKind;
|
|
|
240
240
|
})(PositionEncodingKind = exports.PositionEncodingKind || (exports.PositionEncodingKind = {}));
|
|
241
241
|
/**
|
|
242
242
|
* The StaticRegistrationOptions namespace provides helper functions to work with
|
|
243
|
-
*
|
|
243
|
+
* {@link StaticRegistrationOptions} literals.
|
|
244
244
|
*/
|
|
245
245
|
var StaticRegistrationOptions;
|
|
246
246
|
(function (StaticRegistrationOptions) {
|
|
@@ -252,7 +252,7 @@ var StaticRegistrationOptions;
|
|
|
252
252
|
})(StaticRegistrationOptions = exports.StaticRegistrationOptions || (exports.StaticRegistrationOptions = {}));
|
|
253
253
|
/**
|
|
254
254
|
* The TextDocumentRegistrationOptions namespace provides helper functions to work with
|
|
255
|
-
*
|
|
255
|
+
* {@link TextDocumentRegistrationOptions} literals.
|
|
256
256
|
*/
|
|
257
257
|
var TextDocumentRegistrationOptions;
|
|
258
258
|
(function (TextDocumentRegistrationOptions) {
|
|
@@ -264,7 +264,7 @@ var TextDocumentRegistrationOptions;
|
|
|
264
264
|
})(TextDocumentRegistrationOptions = exports.TextDocumentRegistrationOptions || (exports.TextDocumentRegistrationOptions = {}));
|
|
265
265
|
/**
|
|
266
266
|
* The WorkDoneProgressOptions namespace provides helper functions to work with
|
|
267
|
-
*
|
|
267
|
+
* {@link WorkDoneProgressOptions} literals.
|
|
268
268
|
*/
|
|
269
269
|
var WorkDoneProgressOptions;
|
|
270
270
|
(function (WorkDoneProgressOptions) {
|
|
@@ -282,8 +282,8 @@ var WorkDoneProgressOptions;
|
|
|
282
282
|
/**
|
|
283
283
|
* The initialize request is sent from the client to the server.
|
|
284
284
|
* It is sent once as the request after starting up the server.
|
|
285
|
-
* The requests parameter is of type
|
|
286
|
-
* the response if of type
|
|
285
|
+
* The requests parameter is of type {@link InitializeParams}
|
|
286
|
+
* the response if of type {@link InitializeResult} of a Thenable that
|
|
287
287
|
* resolves to such.
|
|
288
288
|
*/
|
|
289
289
|
var InitializeRequest;
|
|
@@ -636,12 +636,12 @@ var CompletionTriggerKind;
|
|
|
636
636
|
})(CompletionTriggerKind = exports.CompletionTriggerKind || (exports.CompletionTriggerKind = {}));
|
|
637
637
|
/**
|
|
638
638
|
* Request to request completion at a given text document position. The request's
|
|
639
|
-
* parameter is of type
|
|
640
|
-
* is of type
|
|
639
|
+
* parameter is of type {@link TextDocumentPosition} the response
|
|
640
|
+
* is of type {@link CompletionItem CompletionItem[]} or {@link CompletionList}
|
|
641
641
|
* or a Thenable that resolves to such.
|
|
642
642
|
*
|
|
643
|
-
* The request can delay the computation of the
|
|
644
|
-
* and
|
|
643
|
+
* The request can delay the computation of the {@link CompletionItem.detail `detail`}
|
|
644
|
+
* and {@link CompletionItem.documentation `documentation`} properties to the `completionItem/resolve`
|
|
645
645
|
* request. However, properties that are needed for the initial sorting and filtering, like `sortText`,
|
|
646
646
|
* `filterText`, `insertText`, and `textEdit`, must not be changed during resolve.
|
|
647
647
|
*/
|
|
@@ -653,8 +653,8 @@ var CompletionRequest;
|
|
|
653
653
|
})(CompletionRequest = exports.CompletionRequest || (exports.CompletionRequest = {}));
|
|
654
654
|
/**
|
|
655
655
|
* Request to resolve additional information for a given completion item.The request's
|
|
656
|
-
* parameter is of type
|
|
657
|
-
* is of type
|
|
656
|
+
* parameter is of type {@link CompletionItem} the response
|
|
657
|
+
* is of type {@link CompletionItem} or a Thenable that resolves to such.
|
|
658
658
|
*/
|
|
659
659
|
var CompletionResolveRequest;
|
|
660
660
|
(function (CompletionResolveRequest) {
|
|
@@ -664,8 +664,8 @@ var CompletionResolveRequest;
|
|
|
664
664
|
})(CompletionResolveRequest = exports.CompletionResolveRequest || (exports.CompletionResolveRequest = {}));
|
|
665
665
|
/**
|
|
666
666
|
* Request to request hover information at a given text document position. The request's
|
|
667
|
-
* parameter is of type
|
|
668
|
-
* type
|
|
667
|
+
* parameter is of type {@link TextDocumentPosition} the response is of
|
|
668
|
+
* type {@link Hover} or a Thenable that resolves to such.
|
|
669
669
|
*/
|
|
670
670
|
var HoverRequest;
|
|
671
671
|
(function (HoverRequest) {
|
|
@@ -702,8 +702,8 @@ var SignatureHelpRequest;
|
|
|
702
702
|
/**
|
|
703
703
|
* A request to resolve the definition location of a symbol at a given text
|
|
704
704
|
* document position. The request's parameter is of type [TextDocumentPosition]
|
|
705
|
-
* (#TextDocumentPosition) the response is of either type
|
|
706
|
-
* or a typed array of
|
|
705
|
+
* (#TextDocumentPosition) the response is of either type {@link Definition}
|
|
706
|
+
* or a typed array of {@link DefinitionLink} or a Thenable that resolves
|
|
707
707
|
* to such.
|
|
708
708
|
*/
|
|
709
709
|
var DefinitionRequest;
|
|
@@ -715,8 +715,8 @@ var DefinitionRequest;
|
|
|
715
715
|
/**
|
|
716
716
|
* A request to resolve project-wide references for the symbol denoted
|
|
717
717
|
* by the given text document position. The request's parameter is of
|
|
718
|
-
* type
|
|
719
|
-
*
|
|
718
|
+
* type {@link ReferenceParams} the response is of type
|
|
719
|
+
* {@link Location Location[]} or a Thenable that resolves to such.
|
|
720
720
|
*/
|
|
721
721
|
var ReferencesRequest;
|
|
722
722
|
(function (ReferencesRequest) {
|
|
@@ -725,7 +725,7 @@ var ReferencesRequest;
|
|
|
725
725
|
ReferencesRequest.type = new messages_1.ProtocolRequestType(ReferencesRequest.method);
|
|
726
726
|
})(ReferencesRequest = exports.ReferencesRequest || (exports.ReferencesRequest = {}));
|
|
727
727
|
/**
|
|
728
|
-
* Request to resolve a
|
|
728
|
+
* Request to resolve a {@link DocumentHighlight} for a given
|
|
729
729
|
* text document position. The request's parameter is of type [TextDocumentPosition]
|
|
730
730
|
* (#TextDocumentPosition) the request response is of type [DocumentHighlight[]]
|
|
731
731
|
* (#DocumentHighlight) or a Thenable that resolves to such.
|
|
@@ -738,8 +738,8 @@ var DocumentHighlightRequest;
|
|
|
738
738
|
})(DocumentHighlightRequest = exports.DocumentHighlightRequest || (exports.DocumentHighlightRequest = {}));
|
|
739
739
|
/**
|
|
740
740
|
* A request to list all symbols found in a given text document. The request's
|
|
741
|
-
* parameter is of type
|
|
742
|
-
* response is of type
|
|
741
|
+
* parameter is of type {@link TextDocumentIdentifier} the
|
|
742
|
+
* response is of type {@link SymbolInformation SymbolInformation[]} or a Thenable
|
|
743
743
|
* that resolves to such.
|
|
744
744
|
*/
|
|
745
745
|
var DocumentSymbolRequest;
|
|
@@ -759,8 +759,8 @@ var CodeActionRequest;
|
|
|
759
759
|
})(CodeActionRequest = exports.CodeActionRequest || (exports.CodeActionRequest = {}));
|
|
760
760
|
/**
|
|
761
761
|
* Request to resolve additional information for a given code action.The request's
|
|
762
|
-
* parameter is of type
|
|
763
|
-
* is of type
|
|
762
|
+
* parameter is of type {@link CodeAction} the response
|
|
763
|
+
* is of type {@link CodeAction} or a Thenable that resolves to such.
|
|
764
764
|
*/
|
|
765
765
|
var CodeActionResolveRequest;
|
|
766
766
|
(function (CodeActionResolveRequest) {
|
|
@@ -770,8 +770,8 @@ var CodeActionResolveRequest;
|
|
|
770
770
|
})(CodeActionResolveRequest = exports.CodeActionResolveRequest || (exports.CodeActionResolveRequest = {}));
|
|
771
771
|
/**
|
|
772
772
|
* A request to list project-wide symbols matching the query string given
|
|
773
|
-
* by the
|
|
774
|
-
* of type
|
|
773
|
+
* by the {@link WorkspaceSymbolParams}. The response is
|
|
774
|
+
* of type {@link SymbolInformation SymbolInformation[]} or a Thenable that
|
|
775
775
|
* resolves to such.
|
|
776
776
|
*
|
|
777
777
|
* @since 3.17.0 - support for WorkspaceSymbol in the returned data. Clients
|
|
@@ -837,8 +837,8 @@ var DocumentLinkRequest;
|
|
|
837
837
|
})(DocumentLinkRequest = exports.DocumentLinkRequest || (exports.DocumentLinkRequest = {}));
|
|
838
838
|
/**
|
|
839
839
|
* Request to resolve additional information for a given document link. The request's
|
|
840
|
-
* parameter is of type
|
|
841
|
-
* is of type
|
|
840
|
+
* parameter is of type {@link DocumentLink} the response
|
|
841
|
+
* is of type {@link DocumentLink} or a Thenable that resolves to such.
|
|
842
842
|
*/
|
|
843
843
|
var DocumentLinkResolveRequest;
|
|
844
844
|
(function (DocumentLinkResolveRequest) {
|
|
@@ -921,4 +921,3 @@ var ApplyWorkspaceEditRequest;
|
|
|
921
921
|
ApplyWorkspaceEditRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
922
922
|
ApplyWorkspaceEditRequest.type = new messages_1.ProtocolRequestType('workspace/applyEdit');
|
|
923
923
|
})(ApplyWorkspaceEditRequest = exports.ApplyWorkspaceEditRequest || (exports.ApplyWorkspaceEditRequest = {}));
|
|
924
|
-
//# sourceMappingURL=protocol.js.map
|
|
@@ -17,4 +17,3 @@ var LinkedEditingRangeRequest;
|
|
|
17
17
|
LinkedEditingRangeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
18
18
|
LinkedEditingRangeRequest.type = new messages_1.ProtocolRequestType(LinkedEditingRangeRequest.method);
|
|
19
19
|
})(LinkedEditingRangeRequest = exports.LinkedEditingRangeRequest || (exports.LinkedEditingRangeRequest = {}));
|
|
20
|
-
//# sourceMappingURL=protocol.linkedEditingRange.js.map
|
|
@@ -96,8 +96,8 @@ export interface MonikerParams extends TextDocumentPositionParams, WorkDoneProgr
|
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
98
|
* A request to get the moniker of a symbol at a given text document position.
|
|
99
|
-
* The request parameter is of type
|
|
100
|
-
* The response is of type
|
|
99
|
+
* The request parameter is of type {@link TextDocumentPositionParams}.
|
|
100
|
+
* The response is of type {@link Moniker Moniker[]} or `null`.
|
|
101
101
|
*/
|
|
102
102
|
export declare namespace MonikerRequest {
|
|
103
103
|
const method: 'textDocument/moniker';
|
|
@@ -57,8 +57,8 @@ var MonikerKind;
|
|
|
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.
|
|
60
|
-
* The request parameter is of type
|
|
61
|
-
* The response is of type
|
|
60
|
+
* The request parameter is of type {@link TextDocumentPositionParams}.
|
|
61
|
+
* The response is of type {@link Moniker Moniker[]} or `null`.
|
|
62
62
|
*/
|
|
63
63
|
var MonikerRequest;
|
|
64
64
|
(function (MonikerRequest) {
|
|
@@ -66,4 +66,3 @@ var MonikerRequest;
|
|
|
66
66
|
MonikerRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
67
67
|
MonikerRequest.type = new messages_1.ProtocolRequestType(MonikerRequest.method);
|
|
68
68
|
})(MonikerRequest = exports.MonikerRequest || (exports.MonikerRequest = {}));
|
|
69
|
-
//# sourceMappingURL=protocol.moniker.js.map
|
|
@@ -212,4 +212,3 @@ var DidCloseNotebookDocumentNotification;
|
|
|
212
212
|
DidCloseNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseNotebookDocumentNotification.method);
|
|
213
213
|
DidCloseNotebookDocumentNotification.registrationMethod = NotebookDocumentSyncRegistrationType.method;
|
|
214
214
|
})(DidCloseNotebookDocumentNotification = exports.DidCloseNotebookDocumentNotification || (exports.DidCloseNotebookDocumentNotification = {}));
|
|
215
|
-
//# sourceMappingURL=protocol.notebook.js.map
|
|
@@ -35,4 +35,3 @@ var WorkDoneProgressCancelNotification;
|
|
|
35
35
|
WorkDoneProgressCancelNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
36
36
|
WorkDoneProgressCancelNotification.type = new messages_1.ProtocolNotificationType(WorkDoneProgressCancelNotification.method);
|
|
37
37
|
})(WorkDoneProgressCancelNotification = exports.WorkDoneProgressCancelNotification || (exports.WorkDoneProgressCancelNotification = {}));
|
|
38
|
-
//# sourceMappingURL=protocol.progress.js.map
|
|
@@ -29,8 +29,8 @@ export interface SelectionRangeParams extends WorkDoneProgressParams, PartialRes
|
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* A request to provide selection ranges in a document. The request's
|
|
32
|
-
* parameter is of type
|
|
33
|
-
* response is of type
|
|
32
|
+
* parameter is of type {@link SelectionRangeParams}, the
|
|
33
|
+
* response is of type {@link SelectionRange SelectionRange[]} or a Thenable
|
|
34
34
|
* that resolves to such.
|
|
35
35
|
*/
|
|
36
36
|
export declare namespace SelectionRangeRequest {
|
|
@@ -8,8 +8,8 @@ exports.SelectionRangeRequest = void 0;
|
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
9
|
/**
|
|
10
10
|
* A request to provide selection ranges in a document. The request's
|
|
11
|
-
* parameter is of type
|
|
12
|
-
* response is of type
|
|
11
|
+
* parameter is of type {@link SelectionRangeParams}, the
|
|
12
|
+
* response is of type {@link SelectionRange SelectionRange[]} or a Thenable
|
|
13
13
|
* that resolves to such.
|
|
14
14
|
*/
|
|
15
15
|
var SelectionRangeRequest;
|
|
@@ -18,4 +18,3 @@ var SelectionRangeRequest;
|
|
|
18
18
|
SelectionRangeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
19
19
|
SelectionRangeRequest.type = new messages_1.ProtocolRequestType(SelectionRangeRequest.method);
|
|
20
20
|
})(SelectionRangeRequest = exports.SelectionRangeRequest || (exports.SelectionRangeRequest = {}));
|
|
21
|
-
//# sourceMappingURL=protocol.selectionRange.js.map
|
|
@@ -52,7 +52,6 @@ var SemanticTokensRangeRequest;
|
|
|
52
52
|
var SemanticTokensRefreshRequest;
|
|
53
53
|
(function (SemanticTokensRefreshRequest) {
|
|
54
54
|
SemanticTokensRefreshRequest.method = `workspace/semanticTokens/refresh`;
|
|
55
|
-
SemanticTokensRefreshRequest.messageDirection = messages_1.MessageDirection.
|
|
55
|
+
SemanticTokensRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
56
56
|
SemanticTokensRefreshRequest.type = new messages_1.ProtocolRequestType0(SemanticTokensRefreshRequest.method);
|
|
57
57
|
})(SemanticTokensRefreshRequest = exports.SemanticTokensRefreshRequest || (exports.SemanticTokensRefreshRequest = {}));
|
|
58
|
-
//# sourceMappingURL=protocol.semanticTokens.js.map
|
|
@@ -20,4 +20,3 @@ var ShowDocumentRequest;
|
|
|
20
20
|
ShowDocumentRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
21
21
|
ShowDocumentRequest.type = new messages_1.ProtocolRequestType(ShowDocumentRequest.method);
|
|
22
22
|
})(ShowDocumentRequest = exports.ShowDocumentRequest || (exports.ShowDocumentRequest = {}));
|
|
23
|
-
//# sourceMappingURL=protocol.showDocument.js.map
|
|
@@ -28,7 +28,7 @@ export interface TypeDefinitionParams extends TextDocumentPositionParams, WorkDo
|
|
|
28
28
|
/**
|
|
29
29
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
30
30
|
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
31
|
-
* (#TextDocumentPositionParams) the response is of type
|
|
31
|
+
* (#TextDocumentPositionParams) the response is of type {@link Definition} or a
|
|
32
32
|
* Thenable that resolves to such.
|
|
33
33
|
*/
|
|
34
34
|
export declare namespace TypeDefinitionRequest {
|
|
@@ -11,7 +11,7 @@ let __noDynamicImport;
|
|
|
11
11
|
/**
|
|
12
12
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
13
13
|
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
14
|
-
* (#TextDocumentPositionParams) the response is of type
|
|
14
|
+
* (#TextDocumentPositionParams) the response is of type {@link Definition} or a
|
|
15
15
|
* Thenable that resolves to such.
|
|
16
16
|
*/
|
|
17
17
|
var TypeDefinitionRequest;
|
|
@@ -20,4 +20,3 @@ var TypeDefinitionRequest;
|
|
|
20
20
|
TypeDefinitionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
21
21
|
TypeDefinitionRequest.type = new messages_1.ProtocolRequestType(TypeDefinitionRequest.method);
|
|
22
22
|
})(TypeDefinitionRequest = exports.TypeDefinitionRequest || (exports.TypeDefinitionRequest = {}));
|
|
23
|
-
//# sourceMappingURL=protocol.typeDefinition.js.map
|
|
@@ -40,4 +40,3 @@ var TypeHierarchySubtypesRequest;
|
|
|
40
40
|
TypeHierarchySubtypesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
41
41
|
TypeHierarchySubtypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySubtypesRequest.method);
|
|
42
42
|
})(TypeHierarchySubtypesRequest = exports.TypeHierarchySubtypesRequest || (exports.TypeHierarchySubtypesRequest = {}));
|
|
43
|
-
//# sourceMappingURL=protocol.typeHierarchy.js.map
|
|
@@ -25,4 +25,3 @@ var DidChangeWorkspaceFoldersNotification;
|
|
|
25
25
|
DidChangeWorkspaceFoldersNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
26
26
|
DidChangeWorkspaceFoldersNotification.type = new messages_1.ProtocolNotificationType(DidChangeWorkspaceFoldersNotification.method);
|
|
27
27
|
})(DidChangeWorkspaceFoldersNotification = exports.DidChangeWorkspaceFoldersNotification || (exports.DidChangeWorkspaceFoldersNotification = {}));
|
|
28
|
-
//# sourceMappingURL=protocol.workspaceFolder.js.map
|
package/lib/common/utils/is.js
CHANGED
package/lib/node/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,38 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vscode-languageserver-protocol",
|
|
3
|
-
"description": "VSCode Language Server Protocol implementation",
|
|
4
|
-
"version": "3.17.3-next.
|
|
5
|
-
"author": "Microsoft Corporation",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/Microsoft/vscode-languageserver-node.git",
|
|
10
|
-
"directory": "protocol"
|
|
11
|
-
},
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/Microsoft/vscode-languageserver-node/issues"
|
|
14
|
-
},
|
|
15
|
-
"main": "./lib/node/main.js",
|
|
16
|
-
"browser": {
|
|
17
|
-
"./lib/node/main.js": "./lib/browser/main.js"
|
|
18
|
-
},
|
|
19
|
-
"typings": "./lib/common/api.d.ts",
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"vscode-jsonrpc": "8.1.0-next.
|
|
22
|
-
"vscode-languageserver-types": "3.17.
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"prepublishOnly": "
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"test
|
|
34
|
-
"test:
|
|
35
|
-
"
|
|
36
|
-
"webpack:test
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "vscode-languageserver-protocol",
|
|
3
|
+
"description": "VSCode Language Server Protocol implementation",
|
|
4
|
+
"version": "3.17.3-next.3",
|
|
5
|
+
"author": "Microsoft Corporation",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/Microsoft/vscode-languageserver-node.git",
|
|
10
|
+
"directory": "protocol"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Microsoft/vscode-languageserver-node/issues"
|
|
14
|
+
},
|
|
15
|
+
"main": "./lib/node/main.js",
|
|
16
|
+
"browser": {
|
|
17
|
+
"./lib/node/main.js": "./lib/browser/main.js"
|
|
18
|
+
},
|
|
19
|
+
"typings": "./lib/common/api.d.ts",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"vscode-jsonrpc": "8.1.0-next.4",
|
|
22
|
+
"vscode-languageserver-types": "3.17.3-next.1"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"prepublishOnly": "echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail",
|
|
26
|
+
"prepack": "npm run all:publish",
|
|
27
|
+
"postpublish": "node ../build/npm/post-publish.js",
|
|
28
|
+
"preversion": "npm test",
|
|
29
|
+
"compile": "node ../build/bin/tsc -b ./tsconfig.json",
|
|
30
|
+
"watch": "node ../build/bin/tsc -b ./tsconfig.watch.json -w",
|
|
31
|
+
"clean": "node ../node_modules/rimraf/bin.js lib && node ../node_modules/rimraf/bin.js dist",
|
|
32
|
+
"lint": "node ../node_modules/eslint/bin/eslint.js --ext ts src",
|
|
33
|
+
"test": "npm run test:node && npm run test:browser",
|
|
34
|
+
"test:node": "node ../node_modules/mocha/bin/_mocha",
|
|
35
|
+
"test:browser": "npm run webpack:test:silent && node ../build/bin/runBrowserTests.js http://127.0.0.1:8080/protocol/src/browser/test/",
|
|
36
|
+
"webpack:test": "cd ../types && npm run compile:esm && cd ../protocol && node ../build/bin/webpack --mode none --config ./src/browser/test/webpack.config.js",
|
|
37
|
+
"webpack:test:silent": "cd ../types && npm run compile:esm && cd ../protocol && node ../build/bin/webpack --no-stats --mode none --config ./src/browser/test/webpack.config.js",
|
|
38
|
+
"compile:metaModelTool": "cd ../tools && npm run compile && cd ../protocol",
|
|
39
|
+
"generate:metaModel": "node ../tools/lib/generator-main.js -p ./src/common/tsconfig.json > ./metaModel.json",
|
|
40
|
+
"generate:metaModelSchema": "ts-json-schema-generator --path ../tools/src/metaModel.ts > ./metaModel.schema.json",
|
|
41
|
+
"all": "npm run clean && npm run compile && npm run lint && npm run test && npm run compile:metaModelTool && npm run generate:metaModel && npm run generate:metaModelSchema",
|
|
42
|
+
"compile:publish": "node ../build/bin/tsc -b ./tsconfig.publish.json",
|
|
43
|
+
"all:publish": "git clean -xfd . && npm install && npm run compile:publish && npm run lint && npm run test && npm run compile:metaModelTool && npm run generate:metaModel && npm run generate:metaModelSchema"
|
|
44
|
+
}
|
|
45
|
+
}
|