vscode-languageserver-protocol 3.17.3 → 3.17.4-next.1
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/messages.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare class ProtocolRequestType0<R, PR, E, RO> extends RequestType0<R,
|
|
|
17
17
|
* Clients must not use these properties. They are here to ensure correct typing.
|
|
18
18
|
* in TypeScript
|
|
19
19
|
*/
|
|
20
|
+
readonly __: [PR, _EM] | undefined;
|
|
20
21
|
readonly ___: [PR, RO, _EM] | undefined;
|
|
21
22
|
readonly ____: [RO, _EM] | undefined;
|
|
22
23
|
readonly _pr: PR | undefined;
|
|
@@ -26,6 +27,7 @@ export declare class ProtocolRequestType<P, R, PR, E, RO> extends RequestType<P,
|
|
|
26
27
|
/**
|
|
27
28
|
* Clients must not use this property. It is here to ensure correct typing.
|
|
28
29
|
*/
|
|
30
|
+
readonly __: [PR, _EM] | undefined;
|
|
29
31
|
readonly ___: [PR, RO, _EM] | undefined;
|
|
30
32
|
readonly ____: [RO, _EM] | undefined;
|
|
31
33
|
readonly _pr: PR | undefined;
|
package/lib/common/protocol.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProgressToken, TraceValues } from 'vscode-jsonrpc';
|
|
1
|
+
import { ProgressToken, RequestHandler, TraceValues } from 'vscode-jsonrpc';
|
|
2
2
|
import { MessageDirection, ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, ProtocolNotificationType0 } from './messages';
|
|
3
3
|
import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode, LSPAny, WorkspaceSymbol, URI, WorkspaceFolder } from 'vscode-languageserver-types';
|
|
4
4
|
import { ImplementationRequest, ImplementationClientCapabilities, ImplementationOptions, ImplementationRegistrationOptions, ImplementationParams } from './protocol.implementation';
|
|
@@ -162,7 +162,7 @@ export declare namespace DocumentSelector {
|
|
|
162
162
|
function is(value: any[] | undefined | null): value is DocumentSelector;
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
|
-
* General parameters to
|
|
165
|
+
* General parameters to register for a notification or to register a provider.
|
|
166
166
|
*/
|
|
167
167
|
export interface Registration {
|
|
168
168
|
/**
|
|
@@ -190,6 +190,7 @@ export declare namespace RegistrationRequest {
|
|
|
190
190
|
const method: 'client/registerCapability';
|
|
191
191
|
const messageDirection: MessageDirection;
|
|
192
192
|
const type: ProtocolRequestType<RegistrationParams, void, never, void, void>;
|
|
193
|
+
type HandlerSignature = RequestHandler<RegistrationParams, void, void>;
|
|
193
194
|
}
|
|
194
195
|
/**
|
|
195
196
|
* General parameters to unregister a request or notification.
|
|
@@ -216,6 +217,7 @@ export declare namespace UnregistrationRequest {
|
|
|
216
217
|
const method: 'client/unregisterCapability';
|
|
217
218
|
const messageDirection: MessageDirection;
|
|
218
219
|
const type: ProtocolRequestType<UnregistrationParams, void, never, void, void>;
|
|
220
|
+
type HandlerSignature = RequestHandler<UnregistrationParams, void, void>;
|
|
219
221
|
}
|
|
220
222
|
export interface WorkDoneProgressParams {
|
|
221
223
|
/**
|
|
@@ -2822,7 +2824,7 @@ export interface DocumentFormattingOptions extends WorkDoneProgressOptions {
|
|
|
2822
2824
|
export interface DocumentFormattingRegistrationOptions extends TextDocumentRegistrationOptions, DocumentFormattingOptions {
|
|
2823
2825
|
}
|
|
2824
2826
|
/**
|
|
2825
|
-
* A request to
|
|
2827
|
+
* A request to format a whole document.
|
|
2826
2828
|
*/
|
|
2827
2829
|
export declare namespace DocumentFormattingRequest {
|
|
2828
2830
|
const method: 'textDocument/formatting';
|
|
@@ -2866,7 +2868,7 @@ export interface DocumentRangeFormattingOptions extends WorkDoneProgressOptions
|
|
|
2866
2868
|
export interface DocumentRangeFormattingRegistrationOptions extends TextDocumentRegistrationOptions, DocumentRangeFormattingOptions {
|
|
2867
2869
|
}
|
|
2868
2870
|
/**
|
|
2869
|
-
* A request to
|
|
2871
|
+
* A request to format a range in a document.
|
|
2870
2872
|
*/
|
|
2871
2873
|
export declare namespace DocumentRangeFormattingRequest {
|
|
2872
2874
|
const method: 'textDocument/rangeFormatting';
|
package/lib/common/protocol.js
CHANGED
|
@@ -99,7 +99,7 @@ var TextDocumentFilter;
|
|
|
99
99
|
(function (TextDocumentFilter) {
|
|
100
100
|
function is(value) {
|
|
101
101
|
const candidate = value;
|
|
102
|
-
return Is.string(candidate.language) || Is.string(candidate.scheme) || Is.string(candidate.pattern);
|
|
102
|
+
return Is.string(candidate) || (Is.string(candidate.language) || Is.string(candidate.scheme) || Is.string(candidate.pattern));
|
|
103
103
|
}
|
|
104
104
|
TextDocumentFilter.is = is;
|
|
105
105
|
})(TextDocumentFilter = exports.TextDocumentFilter || (exports.TextDocumentFilter = {}));
|
|
@@ -847,7 +847,7 @@ var DocumentLinkResolveRequest;
|
|
|
847
847
|
DocumentLinkResolveRequest.type = new messages_1.ProtocolRequestType(DocumentLinkResolveRequest.method);
|
|
848
848
|
})(DocumentLinkResolveRequest = exports.DocumentLinkResolveRequest || (exports.DocumentLinkResolveRequest = {}));
|
|
849
849
|
/**
|
|
850
|
-
* A request to
|
|
850
|
+
* A request to format a whole document.
|
|
851
851
|
*/
|
|
852
852
|
var DocumentFormattingRequest;
|
|
853
853
|
(function (DocumentFormattingRequest) {
|
|
@@ -856,7 +856,7 @@ var DocumentFormattingRequest;
|
|
|
856
856
|
DocumentFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentFormattingRequest.method);
|
|
857
857
|
})(DocumentFormattingRequest = exports.DocumentFormattingRequest || (exports.DocumentFormattingRequest = {}));
|
|
858
858
|
/**
|
|
859
|
-
* A request to
|
|
859
|
+
* A request to format a range in a document.
|
|
860
860
|
*/
|
|
861
861
|
var DocumentRangeFormattingRequest;
|
|
862
862
|
(function (DocumentRangeFormattingRequest) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vscode-languageserver-protocol",
|
|
3
3
|
"description": "VSCode Language Server Protocol implementation",
|
|
4
|
-
"version": "3.17.
|
|
4
|
+
"version": "3.17.4-next.1",
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"typings": "./lib/common/api.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode-jsonrpc": "8.
|
|
22
|
-
"vscode-languageserver-types": "3.17.
|
|
21
|
+
"vscode-jsonrpc": "8.2.0-next.0",
|
|
22
|
+
"vscode-languageserver-types": "3.17.4-next.0"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"prepublishOnly": "echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail",
|