vscode-languageserver-protocol 3.17.6-next.11 → 3.17.6-next.13

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.
Files changed (55) hide show
  1. package/README.md +3 -3
  2. package/lib/browser/main.js +1 -2
  3. package/lib/common/connection.js +1 -2
  4. package/lib/common/messages.d.ts +7 -0
  5. package/lib/common/messages.js +8 -1
  6. package/lib/common/protocol.callHierarchy.d.ts +3 -2
  7. package/lib/common/protocol.callHierarchy.js +1 -0
  8. package/lib/common/protocol.colorProvider.d.ts +3 -2
  9. package/lib/common/protocol.colorProvider.js +1 -0
  10. package/lib/common/protocol.configuration.d.ts +2 -1
  11. package/lib/common/protocol.configuration.js +1 -0
  12. package/lib/common/protocol.d.ts +92 -6
  13. package/lib/common/protocol.declaration.d.ts +3 -2
  14. package/lib/common/protocol.declaration.js +1 -0
  15. package/lib/common/protocol.diagnostic.d.ts +5 -2
  16. package/lib/common/protocol.diagnostic.js +20 -7
  17. package/lib/common/protocol.fileOperations.d.ts +7 -1
  18. package/lib/common/protocol.fileOperations.js +6 -0
  19. package/lib/common/protocol.foldingRange.d.ts +4 -2
  20. package/lib/common/protocol.foldingRange.js +2 -0
  21. package/lib/common/protocol.implementation.d.ts +3 -2
  22. package/lib/common/protocol.implementation.js +1 -0
  23. package/lib/common/protocol.inlayHint.d.ts +5 -2
  24. package/lib/common/protocol.inlayHint.js +3 -0
  25. package/lib/common/protocol.inlineCompletion.d.ts +3 -2
  26. package/lib/common/protocol.inlineCompletion.js +1 -0
  27. package/lib/common/protocol.inlineValue.d.ts +4 -2
  28. package/lib/common/protocol.inlineValue.js +2 -0
  29. package/lib/common/protocol.js +53 -7
  30. package/lib/common/protocol.linkedEditingRange.d.ts +3 -2
  31. package/lib/common/protocol.linkedEditingRange.js +1 -0
  32. package/lib/common/protocol.moniker.d.ts +3 -2
  33. package/lib/common/protocol.moniker.js +1 -0
  34. package/lib/common/protocol.notebook.js +17 -7
  35. package/lib/common/protocol.progress.d.ts +2 -1
  36. package/lib/common/protocol.progress.js +1 -0
  37. package/lib/common/protocol.selectionRange.d.ts +3 -2
  38. package/lib/common/protocol.selectionRange.js +1 -0
  39. package/lib/common/protocol.semanticTokens.d.ts +6 -2
  40. package/lib/common/protocol.semanticTokens.js +4 -0
  41. package/lib/common/protocol.showDocument.d.ts +2 -1
  42. package/lib/common/protocol.showDocument.js +1 -0
  43. package/lib/common/protocol.textDocumentContent.d.ts +3 -2
  44. package/lib/common/protocol.textDocumentContent.js +1 -0
  45. package/lib/common/protocol.typeDefinition.d.ts +3 -2
  46. package/lib/common/protocol.typeDefinition.js +2 -1
  47. package/lib/common/protocol.typeHierarchy.d.ts +3 -2
  48. package/lib/common/protocol.typeHierarchy.js +1 -0
  49. package/lib/common/protocol.workspaceFolder.d.ts +3 -1
  50. package/lib/common/protocol.workspaceFolder.js +2 -0
  51. package/lib/common/utils/is.js +9 -10
  52. package/lib/node/main.d.ts +0 -1
  53. package/lib/node/main.js +1 -2
  54. package/metaModel.schema.json +17 -0
  55. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import { WorkspaceFolder } from 'vscode-languageserver-types';
2
2
  import { RequestHandler0, NotificationHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
3
- import { MessageDirection, ProtocolRequestType0, ProtocolNotificationType } from './messages';
3
+ import { MessageDirection, ProtocolRequestType0, ProtocolNotificationType, CM } from './messages';
4
4
  export interface WorkspaceFoldersInitializeParams {
5
5
  /**
6
6
  * The workspace folders configured in the client when the server starts.
@@ -38,6 +38,7 @@ export declare namespace WorkspaceFoldersRequest {
38
38
  const type: ProtocolRequestType0<WorkspaceFolder[] | null, never, void, void>;
39
39
  type HandlerSignature = RequestHandler0<WorkspaceFolder[] | null, void>;
40
40
  type MiddlewareSignature = (token: CancellationToken, next: HandlerSignature) => HandlerResult<WorkspaceFolder[] | null, void>;
41
+ const capabilities: CM<"workspace.workspaceFolders", "workspace.workspaceFolders">;
41
42
  }
42
43
  /**
43
44
  * The `workspace/didChangeWorkspaceFolders` notification is sent from the client to the server when the workspace
@@ -49,6 +50,7 @@ export declare namespace DidChangeWorkspaceFoldersNotification {
49
50
  const type: ProtocolNotificationType<DidChangeWorkspaceFoldersParams, void>;
50
51
  type HandlerSignature = NotificationHandler<DidChangeWorkspaceFoldersParams>;
51
52
  type MiddlewareSignature = (params: DidChangeWorkspaceFoldersParams, next: HandlerSignature) => void;
53
+ const capabilities: CM<undefined, "workspace.workspaceFolders.changeNotifications">;
52
54
  }
53
55
  /**
54
56
  * The parameters of a `workspace/didChangeWorkspaceFolders` notification.
@@ -14,6 +14,7 @@ var WorkspaceFoldersRequest;
14
14
  WorkspaceFoldersRequest.method = 'workspace/workspaceFolders';
15
15
  WorkspaceFoldersRequest.messageDirection = messages_1.MessageDirection.serverToClient;
16
16
  WorkspaceFoldersRequest.type = new messages_1.ProtocolRequestType0(WorkspaceFoldersRequest.method);
17
+ WorkspaceFoldersRequest.capabilities = messages_1.CM.create('workspace.workspaceFolders', 'workspace.workspaceFolders');
17
18
  })(WorkspaceFoldersRequest || (exports.WorkspaceFoldersRequest = WorkspaceFoldersRequest = {}));
18
19
  /**
19
20
  * The `workspace/didChangeWorkspaceFolders` notification is sent from the client to the server when the workspace
@@ -24,4 +25,5 @@ var DidChangeWorkspaceFoldersNotification;
24
25
  DidChangeWorkspaceFoldersNotification.method = 'workspace/didChangeWorkspaceFolders';
25
26
  DidChangeWorkspaceFoldersNotification.messageDirection = messages_1.MessageDirection.clientToServer;
26
27
  DidChangeWorkspaceFoldersNotification.type = new messages_1.ProtocolNotificationType(DidChangeWorkspaceFoldersNotification.method);
28
+ DidChangeWorkspaceFoldersNotification.capabilities = messages_1.CM.create(undefined, 'workspace.workspaceFolders.changeNotifications');
27
29
  })(DidChangeWorkspaceFoldersNotification || (exports.DidChangeWorkspaceFoldersNotification = DidChangeWorkspaceFoldersNotification = {}));
@@ -4,43 +4,42 @@
4
4
  * ------------------------------------------------------------------------------------------ */
5
5
  'use strict';
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.objectLiteral = exports.typedArray = exports.stringArray = exports.array = exports.func = exports.error = exports.number = exports.string = exports.boolean = void 0;
7
+ exports.boolean = boolean;
8
+ exports.string = string;
9
+ exports.number = number;
10
+ exports.error = error;
11
+ exports.func = func;
12
+ exports.array = array;
13
+ exports.stringArray = stringArray;
14
+ exports.typedArray = typedArray;
15
+ exports.objectLiteral = objectLiteral;
8
16
  function boolean(value) {
9
17
  return value === true || value === false;
10
18
  }
11
- exports.boolean = boolean;
12
19
  function string(value) {
13
20
  return typeof value === 'string' || value instanceof String;
14
21
  }
15
- exports.string = string;
16
22
  function number(value) {
17
23
  return typeof value === 'number' || value instanceof Number;
18
24
  }
19
- exports.number = number;
20
25
  function error(value) {
21
26
  return value instanceof Error;
22
27
  }
23
- exports.error = error;
24
28
  function func(value) {
25
29
  return typeof value === 'function';
26
30
  }
27
- exports.func = func;
28
31
  function array(value) {
29
32
  return Array.isArray(value);
30
33
  }
31
- exports.array = array;
32
34
  function stringArray(value) {
33
35
  return array(value) && value.every(elem => string(elem));
34
36
  }
35
- exports.stringArray = stringArray;
36
37
  function typedArray(value, check) {
37
38
  return Array.isArray(value) && value.every(check);
38
39
  }
39
- exports.typedArray = typedArray;
40
40
  function objectLiteral(value) {
41
41
  // Strictly speaking class instances pass this check as well. Since the LSP
42
42
  // doesn't use classes we ignore this for now. If we do we need to add something
43
43
  // like this: `Object.getPrototypeOf(Object.getPrototypeOf(x)) === null`
44
44
  return value !== null && typeof value === 'object';
45
45
  }
46
- exports.objectLiteral = objectLiteral;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { MessageReader, MessageWriter, Logger, ConnectionStrategy, ConnectionOptions, ProtocolConnection } from '../common/api';
3
2
  export * from 'vscode-jsonrpc/node';
4
3
  export * from '../common/api';
package/lib/node/main.js CHANGED
@@ -18,11 +18,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.createProtocolConnection = void 0;
21
+ exports.createProtocolConnection = createProtocolConnection;
22
22
  const node_1 = require("vscode-jsonrpc/node");
23
23
  __exportStar(require("vscode-jsonrpc/node"), exports);
24
24
  __exportStar(require("../common/api"), exports);
25
25
  function createProtocolConnection(input, output, logger, options) {
26
26
  return (0, node_1.createMessageConnection)(input, output, logger, options);
27
27
  }
28
- exports.createProtocolConnection = createProtocolConnection;
@@ -362,6 +362,10 @@
362
362
  "additionalProperties": false,
363
363
  "description": "Represents a LSP notification",
364
364
  "properties": {
365
+ "clientCapability": {
366
+ "description": "The client capability property path if any.",
367
+ "type": "string"
368
+ },
365
369
  "deprecated": {
366
370
  "description": "Whether the notification is deprecated or not. If deprecated the property contains the deprecation message.",
367
371
  "type": "string"
@@ -404,6 +408,10 @@
404
408
  "$ref": "#/definitions/Type",
405
409
  "description": "Optional registration options if the notification supports dynamic registration."
406
410
  },
411
+ "serverCapability": {
412
+ "description": "The server capability property path if any.",
413
+ "type": "string"
414
+ },
407
415
  "since": {
408
416
  "description": "Since when (release number) this notification is available. Is undefined if not known.",
409
417
  "type": "string"
@@ -515,6 +523,10 @@
515
523
  "additionalProperties": false,
516
524
  "description": "Represents a LSP request",
517
525
  "properties": {
526
+ "clientCapability": {
527
+ "description": "The client capability property path if any.",
528
+ "type": "string"
529
+ },
518
530
  "deprecated": {
519
531
  "description": "Whether the request is deprecated or not. If deprecated the property contains the deprecation message.",
520
532
  "type": "string"
@@ -569,6 +581,10 @@
569
581
  "$ref": "#/definitions/Type",
570
582
  "description": "The result type."
571
583
  },
584
+ "serverCapability": {
585
+ "description": "The server capability property path if any.",
586
+ "type": "string"
587
+ },
572
588
  "since": {
573
589
  "description": "Since when (release number) this request is available. Is undefined if not known.",
574
590
  "type": "string"
@@ -845,3 +861,4 @@
845
861
  }
846
862
  }
847
863
  }
864
+
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.11",
4
+ "version": "3.17.6-next.13",
5
5
  "author": "Microsoft Corporation",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -27,8 +27,8 @@
27
27
  }
28
28
  },
29
29
  "dependencies": {
30
- "vscode-jsonrpc": "9.0.0-next.6",
31
- "vscode-languageserver-types": "3.17.6-next.5"
30
+ "vscode-jsonrpc": "9.0.0-next.8",
31
+ "vscode-languageserver-types": "3.17.6-next.6"
32
32
  },
33
33
  "scripts": {
34
34
  "prepublishOnly": "echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail",