vscode-languageserver-protocol 3.17.3 → 3.17.4-next.0

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.
@@ -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;
@@ -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';
@@ -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
  /**
@@ -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 = {}));
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.3",
4
+ "version": "3.17.4-next.0",
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.1.0",
22
- "vscode-languageserver-types": "3.17.3"
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",