vscode-languageserver-protocol 3.17.2 → 3.17.3-next.2
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
2
2
|
import { LSPAny } from 'vscode-languageserver-types';
|
|
3
3
|
import { MessageDirection, ProtocolRequestType } from './messages';
|
|
4
|
-
import type { PartialResultParams } from './protocol';
|
|
5
4
|
/**
|
|
6
5
|
* The 'workspace/configuration' request is sent from the server to the client to fetch a certain
|
|
7
6
|
* configuration setting.
|
|
@@ -14,7 +13,7 @@ import type { PartialResultParams } from './protocol';
|
|
|
14
13
|
export declare namespace ConfigurationRequest {
|
|
15
14
|
const method: 'workspace/configuration';
|
|
16
15
|
const messageDirection: MessageDirection;
|
|
17
|
-
const type: ProtocolRequestType<ConfigurationParams
|
|
16
|
+
const type: ProtocolRequestType<ConfigurationParams, any[], never, void, void>;
|
|
18
17
|
type HandlerSignature = RequestHandler<ConfigurationParams, LSPAny[], void>;
|
|
19
18
|
type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<LSPAny[], void>;
|
|
20
19
|
}
|
|
@@ -27,7 +27,7 @@ export interface TypeDefinitionParams extends TextDocumentPositionParams, WorkDo
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
30
|
-
* document position. The request's parameter is of type [
|
|
30
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
31
31
|
* (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
|
|
32
32
|
* Thenable that resolves to such.
|
|
33
33
|
*/
|
|
@@ -10,7 +10,7 @@ const messages_1 = require("./messages");
|
|
|
10
10
|
let __noDynamicImport;
|
|
11
11
|
/**
|
|
12
12
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
13
|
-
* document position. The request's parameter is of type [
|
|
13
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
14
14
|
* (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
|
|
15
15
|
* Thenable that resolves to such.
|
|
16
16
|
*/
|
package/metaModel.schema.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"BaseTypes": {
|
|
62
62
|
"enum": [
|
|
63
|
-
"
|
|
63
|
+
"URI",
|
|
64
64
|
"DocumentUri",
|
|
65
65
|
"integer",
|
|
66
66
|
"uinteger",
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
},
|
|
219
219
|
"name": {
|
|
220
220
|
"enum": [
|
|
221
|
-
"
|
|
221
|
+
"URI",
|
|
222
222
|
"DocumentUri",
|
|
223
223
|
"string",
|
|
224
224
|
"integer"
|
|
@@ -269,6 +269,19 @@
|
|
|
269
269
|
],
|
|
270
270
|
"type": "string"
|
|
271
271
|
},
|
|
272
|
+
"MetaData": {
|
|
273
|
+
"additionalProperties": false,
|
|
274
|
+
"properties": {
|
|
275
|
+
"version": {
|
|
276
|
+
"description": "The protocol version.",
|
|
277
|
+
"type": "string"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"required": [
|
|
281
|
+
"version"
|
|
282
|
+
],
|
|
283
|
+
"type": "object"
|
|
284
|
+
},
|
|
272
285
|
"MetaModel": {
|
|
273
286
|
"additionalProperties": false,
|
|
274
287
|
"description": "The actual meta model.",
|
|
@@ -280,6 +293,10 @@
|
|
|
280
293
|
},
|
|
281
294
|
"type": "array"
|
|
282
295
|
},
|
|
296
|
+
"metaData": {
|
|
297
|
+
"$ref": "#/definitions/MetaData",
|
|
298
|
+
"description": "Additional meta data."
|
|
299
|
+
},
|
|
283
300
|
"notifications": {
|
|
284
301
|
"description": "The notifications.",
|
|
285
302
|
"items": {
|
|
@@ -310,6 +327,7 @@
|
|
|
310
327
|
}
|
|
311
328
|
},
|
|
312
329
|
"required": [
|
|
330
|
+
"metaData",
|
|
313
331
|
"requests",
|
|
314
332
|
"notifications",
|
|
315
333
|
"structures",
|
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.2",
|
|
4
|
+
"version": "3.17.3-next.2",
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"typings": "./lib/common/api.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode-jsonrpc": "8.0.
|
|
21
|
+
"vscode-jsonrpc": "8.1.0-next.3",
|
|
22
22
|
"vscode-languageserver-types": "3.17.2"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"prepublishOnly": "
|
|
25
|
+
"prepublishOnly": "echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail",
|
|
26
|
+
"prepack": "git clean -xfd . && npm install && npm run all",
|
|
26
27
|
"postpublish": "node ../build/npm/post-publish.js",
|
|
27
28
|
"preversion": "npm test",
|
|
28
29
|
"compile": "node ../build/bin/tsc -b ./tsconfig.json",
|
|
@@ -33,6 +34,10 @@
|
|
|
33
34
|
"test:node": "node ../node_modules/mocha/bin/_mocha",
|
|
34
35
|
"test:browser": "npm run webpack:test:silent && node ../build/bin/runBrowserTests.js http://127.0.0.1:8080/protocol/src/browser/test/",
|
|
35
36
|
"webpack:test": "cd ../types && npm run compile:esm && cd ../protocol && node ../build/bin/webpack --mode none --config ./src/browser/test/webpack.config.js",
|
|
36
|
-
"webpack:test:silent": "cd ../types && npm run compile:esm && cd ../protocol && node ../build/bin/webpack --no-stats --mode none --config ./src/browser/test/webpack.config.js"
|
|
37
|
+
"webpack:test:silent": "cd ../types && npm run compile:esm && cd ../protocol && node ../build/bin/webpack --no-stats --mode none --config ./src/browser/test/webpack.config.js",
|
|
38
|
+
"compile:metaModelTool": "cd ../tools && npm run compile && cd ../protocol",
|
|
39
|
+
"generate:metaModel": "node ../tools/lib/generator-main.js -p ./src/common/tsconfig.json > ./metaModel.json",
|
|
40
|
+
"generate:metaModelSchema": "ts-json-schema-generator --path ../tools/src/metaModel.ts > ./metaModel.schema.json",
|
|
41
|
+
"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"
|
|
37
42
|
}
|
|
38
43
|
}
|