vscode-languageserver-protocol 3.17.6-next.4 → 3.17.6-next.6

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.
@@ -41,7 +41,7 @@ export declare namespace LSPErrorCodes {
41
41
  */
42
42
  const ContentModified: integer;
43
43
  /**
44
- * The client has canceled a request and a server as detected
44
+ * The client has canceled a request and a server has detected
45
45
  * the cancel.
46
46
  */
47
47
  const RequestCancelled: integer;
package/lib/common/api.js CHANGED
@@ -63,7 +63,7 @@ var LSPErrorCodes;
63
63
  */
64
64
  LSPErrorCodes.ContentModified = -32801;
65
65
  /**
66
- * The client has canceled a request and a server as detected
66
+ * The client has canceled a request and a server has detected
67
67
  * the cancel.
68
68
  */
69
69
  LSPErrorCodes.RequestCancelled = -32800;
@@ -1,4 +1,4 @@
1
- import { HandlerResult, RequestHandler } from 'vscode-jsonrpc';
1
+ import { CancellationToken, HandlerResult, RequestHandler } from 'vscode-jsonrpc';
2
2
  import { Range, URI } from 'vscode-languageserver-types';
3
3
  import { MessageDirection, ProtocolRequestType } from './messages';
4
4
  /**
@@ -68,5 +68,5 @@ export declare namespace ShowDocumentRequest {
68
68
  const messageDirection: MessageDirection;
69
69
  const type: ProtocolRequestType<ShowDocumentParams, ShowDocumentResult, void, void, void>;
70
70
  type HandlerSignature = RequestHandler<ShowDocumentParams, ShowDocumentResult, void>;
71
- type MiddlewareSignature = (params: ShowDocumentParams, next: HandlerSignature) => HandlerResult<ShowDocumentResult, void>;
71
+ type MiddlewareSignature = (params: ShowDocumentParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<ShowDocumentResult, void>;
72
72
  }
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.6-next.4",
4
+ "version": "3.17.6-next.6",
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": "9.0.0-next.2",
22
- "vscode-languageserver-types": "3.17.6-next.3"
21
+ "vscode-jsonrpc": "9.0.0-next.4",
22
+ "vscode-languageserver-types": "3.17.6-next.4"
23
23
  },
24
24
  "scripts": {
25
25
  "prepublishOnly": "echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail",