vscode-languageserver-protocol 3.17.5 → 3.17.6-next.10

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.
@@ -0,0 +1,100 @@
1
+ import type { DocumentUri } from 'vscode-languageserver-types';
2
+ import type { RequestHandler } from 'vscode-jsonrpc';
3
+ import { MessageDirection, ProtocolRequestType } from './messages';
4
+ import type { StaticRegistrationOptions } from './protocol';
5
+ /**
6
+ * Client capabilities for a text document content provider.
7
+ *
8
+ * @since 3.18.0
9
+ * @proposed
10
+ */
11
+ export type TextDocumentContentClientCapabilities = {
12
+ /**
13
+ * Text document content provider supports dynamic registration.
14
+ */
15
+ dynamicRegistration?: boolean;
16
+ };
17
+ /**
18
+ * Text document content provider options.
19
+ *
20
+ * @since 3.18.0
21
+ * @proposed
22
+ */
23
+ export type TextDocumentContentOptions = {
24
+ /**
25
+ * The schemes for which the server provides content.
26
+ */
27
+ schemes: string[];
28
+ };
29
+ /**
30
+ * Text document content provider registration options.
31
+ *
32
+ * @since 3.18.0
33
+ * @proposed
34
+ */
35
+ export type TextDocumentContentRegistrationOptions = TextDocumentContentOptions & StaticRegistrationOptions;
36
+ /**
37
+ * Parameters for the `workspace/textDocumentContent` request.
38
+ *
39
+ * @since 3.18.0
40
+ * @proposed
41
+ */
42
+ export interface TextDocumentContentParams {
43
+ /**
44
+ * The uri of the text document.
45
+ */
46
+ uri: DocumentUri;
47
+ }
48
+ /**
49
+ * Result of the `workspace/textDocumentContent` request.
50
+ *
51
+ * @since 3.18.0
52
+ * @proposed
53
+ */
54
+ export interface TextDocumentContentResult {
55
+ /**
56
+ * The text content of the text document. Please note, that the content of
57
+ * any subsequent open notifications for the text document might differ
58
+ * from the returned content due to whitespace and line ending
59
+ * normalizations done on the client
60
+ */
61
+ text: string;
62
+ }
63
+ /**
64
+ * The `workspace/textDocumentContent` request is sent from the client to the
65
+ * server to request the content of a text document.
66
+ *
67
+ * @since 3.18.0
68
+ * @proposed
69
+ */
70
+ export declare namespace TextDocumentContentRequest {
71
+ const method: 'workspace/textDocumentContent';
72
+ const messageDirection: MessageDirection;
73
+ const type: ProtocolRequestType<TextDocumentContentParams, TextDocumentContentResult, void, void, TextDocumentContentRegistrationOptions>;
74
+ type HandlerSignature = RequestHandler<TextDocumentContentParams, TextDocumentContentResult, void>;
75
+ }
76
+ /**
77
+ * Parameters for the `workspace/textDocumentContent/refresh` request.
78
+ *
79
+ * @since 3.18.0
80
+ * @proposed
81
+ */
82
+ export interface TextDocumentContentRefreshParams {
83
+ /**
84
+ * The uri of the text document to refresh.
85
+ */
86
+ uri: DocumentUri;
87
+ }
88
+ /**
89
+ * The `workspace/textDocumentContent` request is sent from the server to the client to refresh
90
+ * the content of a specific text document.
91
+ *
92
+ * @since 3.18.0
93
+ * @proposed
94
+ */
95
+ export declare namespace TextDocumentContentRefreshRequest {
96
+ const method: `workspace/textDocumentContent/refresh`;
97
+ const messageDirection: MessageDirection;
98
+ const type: ProtocolRequestType<TextDocumentContentRefreshParams, void, void, void, void>;
99
+ type HandlerSignature = RequestHandler<TextDocumentContentRefreshParams, void, void>;
100
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /* --------------------------------------------------------------------------------------------
3
+ * Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * Licensed under the MIT License. See License.txt in the project root for license information.
5
+ * ------------------------------------------------------------------------------------------ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TextDocumentContentRefreshRequest = exports.TextDocumentContentRequest = void 0;
8
+ const messages_1 = require("./messages");
9
+ /**
10
+ * The `workspace/textDocumentContent` request is sent from the client to the
11
+ * server to request the content of a text document.
12
+ *
13
+ * @since 3.18.0
14
+ * @proposed
15
+ */
16
+ var TextDocumentContentRequest;
17
+ (function (TextDocumentContentRequest) {
18
+ TextDocumentContentRequest.method = 'workspace/textDocumentContent';
19
+ TextDocumentContentRequest.messageDirection = messages_1.MessageDirection.clientToServer;
20
+ TextDocumentContentRequest.type = new messages_1.ProtocolRequestType(TextDocumentContentRequest.method);
21
+ })(TextDocumentContentRequest || (exports.TextDocumentContentRequest = TextDocumentContentRequest = {}));
22
+ /**
23
+ * The `workspace/textDocumentContent` request is sent from the server to the client to refresh
24
+ * the content of a specific text document.
25
+ *
26
+ * @since 3.18.0
27
+ * @proposed
28
+ */
29
+ var TextDocumentContentRefreshRequest;
30
+ (function (TextDocumentContentRefreshRequest) {
31
+ TextDocumentContentRefreshRequest.method = `workspace/textDocumentContent/refresh`;
32
+ TextDocumentContentRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
33
+ TextDocumentContentRefreshRequest.type = new messages_1.ProtocolRequestType(TextDocumentContentRefreshRequest.method);
34
+ })(TextDocumentContentRefreshRequest || (exports.TextDocumentContentRefreshRequest = TextDocumentContentRefreshRequest = {}));
@@ -114,6 +114,13 @@
114
114
  "description": "Since when (release number) this enumeration is available. Is undefined if not known.",
115
115
  "type": "string"
116
116
  },
117
+ "sinceTags": {
118
+ "description": "All since tags in case there was more than one tag. Is undefined if not known.",
119
+ "items": {
120
+ "type": "string"
121
+ },
122
+ "type": "array"
123
+ },
117
124
  "supportsCustomValues": {
118
125
  "description": "Whether the enumeration supports custom values (e.g. values which are not part of the set defined in `values`). If omitted no custom values are supported.",
119
126
  "type": "boolean"
@@ -161,6 +168,13 @@
161
168
  "description": "Since when (release number) this enumeration entry is available. Is undefined if not known.",
162
169
  "type": "string"
163
170
  },
171
+ "sinceTags": {
172
+ "description": "All since tags in case there was more than one tag. Is undefined if not known.",
173
+ "items": {
174
+ "type": "string"
175
+ },
176
+ "type": "array"
177
+ },
164
178
  "value": {
165
179
  "description": "The value.",
166
180
  "type": [
@@ -361,7 +375,7 @@
361
375
  "description": "The direction in which this notification is sent in the protocol."
362
376
  },
363
377
  "method": {
364
- "description": "The request's method name.",
378
+ "description": "The notifications's method name.",
365
379
  "type": "string"
366
380
  },
367
381
  "params": {
@@ -383,7 +397,7 @@
383
397
  "type": "boolean"
384
398
  },
385
399
  "registrationMethod": {
386
- "description": "Optional a dynamic registration method if it different from the request's method.",
400
+ "description": "Optional a dynamic registration method if it different from the notifications's method.",
387
401
  "type": "string"
388
402
  },
389
403
  "registrationOptions": {
@@ -393,6 +407,17 @@
393
407
  "since": {
394
408
  "description": "Since when (release number) this notification is available. Is undefined if not known.",
395
409
  "type": "string"
410
+ },
411
+ "sinceTags": {
412
+ "description": "All since tags in case there was more than one tag. Is undefined if not known.",
413
+ "items": {
414
+ "type": "string"
415
+ },
416
+ "type": "array"
417
+ },
418
+ "typeName": {
419
+ "description": "The type name of the notifications if any.",
420
+ "type": "string"
396
421
  }
397
422
  },
398
423
  "required": [
@@ -450,6 +475,13 @@
450
475
  "description": "Since when (release number) this property is available. Is undefined if not known.",
451
476
  "type": "string"
452
477
  },
478
+ "sinceTags": {
479
+ "description": "All since tags in case there was more than one tag. Is undefined if not known.",
480
+ "items": {
481
+ "type": "string"
482
+ },
483
+ "type": "array"
484
+ },
453
485
  "type": {
454
486
  "$ref": "#/definitions/Type",
455
487
  "description": "The type of the property"
@@ -540,6 +572,17 @@
540
572
  "since": {
541
573
  "description": "Since when (release number) this request is available. Is undefined if not known.",
542
574
  "type": "string"
575
+ },
576
+ "sinceTags": {
577
+ "description": "All since tags in case there was more than one tag. Is undefined if not known.",
578
+ "items": {
579
+ "type": "string"
580
+ },
581
+ "type": "array"
582
+ },
583
+ "typeName": {
584
+ "description": "The type name of the request if any.",
585
+ "type": "string"
543
586
  }
544
587
  },
545
588
  "required": [
@@ -611,6 +654,13 @@
611
654
  "since": {
612
655
  "description": "Since when (release number) this structure is available. Is undefined if not known.",
613
656
  "type": "string"
657
+ },
658
+ "sinceTags": {
659
+ "description": "All since tags in case there was more than one tag. Is undefined if not known.",
660
+ "items": {
661
+ "type": "string"
662
+ },
663
+ "type": "array"
614
664
  }
615
665
  },
616
666
  "required": [
@@ -645,6 +695,13 @@
645
695
  "since": {
646
696
  "description": "Since when (release number) this structure is available. Is undefined if not known.",
647
697
  "type": "string"
698
+ },
699
+ "sinceTags": {
700
+ "description": "All since tags in case there was more than one tag. Is undefined if not known.",
701
+ "items": {
702
+ "type": "string"
703
+ },
704
+ "type": "array"
648
705
  }
649
706
  },
650
707
  "required": [
@@ -752,6 +809,13 @@
752
809
  "description": "Since when (release number) this structure is available. Is undefined if not known.",
753
810
  "type": "string"
754
811
  },
812
+ "sinceTags": {
813
+ "description": "All since tags in case there was more than one tag. Is undefined if not known.",
814
+ "items": {
815
+ "type": "string"
816
+ },
817
+ "type": "array"
818
+ },
755
819
  "type": {
756
820
  "$ref": "#/definitions/Type",
757
821
  "description": "The aliased type."
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.5",
4
+ "version": "3.17.6-next.10",
5
5
  "author": "Microsoft Corporation",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -12,24 +12,33 @@
12
12
  "bugs": {
13
13
  "url": "https://github.com/Microsoft/vscode-languageserver-node/issues"
14
14
  },
15
- "main": "./lib/node/main.js",
16
- "browser": {
17
- "./lib/node/main.js": "./lib/browser/main.js"
15
+ "exports": {
16
+ ".": {
17
+ "types": "./lib/common/api.d.ts",
18
+ "default": "./lib/common/api.js"
19
+ },
20
+ "./node": {
21
+ "types": "./lib/node/main.d.ts",
22
+ "node": "./lib/node/main.js"
23
+ },
24
+ "./browser": {
25
+ "types": "./lib/browser/main.d.ts",
26
+ "browser": "./lib/browser/main.js"
27
+ }
18
28
  },
19
- "typings": "./lib/common/api.d.ts",
20
29
  "dependencies": {
21
- "vscode-jsonrpc": "8.2.0",
22
- "vscode-languageserver-types": "3.17.5"
30
+ "vscode-jsonrpc": "9.0.0-next.5",
31
+ "vscode-languageserver-types": "3.17.6-next.5"
23
32
  },
24
33
  "scripts": {
25
34
  "prepublishOnly": "echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail",
26
35
  "prepack": "npm run all:publish",
27
36
  "postpublish": "node ../build/npm/post-publish.js",
28
37
  "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/.bin/rimraf lib && node ../node_modules/.bin/rimraf dist",
32
- "lint": "node ../node_modules/eslint/bin/eslint.js --ext ts src",
38
+ "compile": "tsc -b ./tsconfig.json",
39
+ "watch": "tsc -b ./tsconfig.watch.json -w",
40
+ "clean": "rimraf lib && rimraf dist",
41
+ "lint": "eslint --ext ts src",
33
42
  "test": "npm run test:node && npm run test:browser",
34
43
  "test:node": "node ../node_modules/mocha/bin/_mocha",
35
44
  "test:browser": "npm run webpack:test:silent && node ../build/bin/runBrowserTests.js http://127.0.0.1:8080/protocol/src/browser/test/",
@@ -39,7 +48,7 @@
39
48
  "generate:metaModel": "node ../tools/lib/generator-main.js -p ./src/common/tsconfig.json > ./metaModel.json",
40
49
  "generate:metaModelSchema": "ts-json-schema-generator --tsconfig ../tools/tsconfig.json --path ../tools/src/metaModel.ts > ./metaModel.schema.json",
41
50
  "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",
51
+ "compile:publish": "tsc -b ./tsconfig.publish.json",
43
52
  "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
53
  }
45
54
  }
package/browser.d.ts DELETED
@@ -1,6 +0,0 @@
1
- /* --------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- * ----------------------------------------------------------------------------------------- */
5
-
6
- export * from './lib/browser/main';
package/browser.js DELETED
@@ -1,7 +0,0 @@
1
- /* --------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- * ----------------------------------------------------------------------------------------- */
5
- 'use strict';
6
-
7
- module.exports = require('./lib/browser/main');
package/node.cmd DELETED
@@ -1,5 +0,0 @@
1
- @echo off
2
- REM This file is necessary to ensure that under Windows we don't
3
- REM run the node.js file in the Windows Script Host when using
4
- REM node in packakge.json scripts. See also PATHEXT setting
5
- node.exe %*
package/node.d.ts DELETED
@@ -1,6 +0,0 @@
1
- /* --------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- * ----------------------------------------------------------------------------------------- */
5
-
6
- export * from './lib/node/main';
package/node.js DELETED
@@ -1,7 +0,0 @@
1
- /* --------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- * ----------------------------------------------------------------------------------------- */
5
- 'use strict';
6
-
7
- module.exports = require('./lib/node/main');