vscode-languageserver-protocol 3.17.0-next.2 → 3.17.0-next.20

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 (47) hide show
  1. package/lib/browser/main.js +1 -1
  2. package/lib/common/api.d.ts +31 -10
  3. package/lib/common/api.js +32 -7
  4. package/lib/common/connection.d.ts +45 -21
  5. package/lib/common/connection.js +1 -1
  6. package/lib/common/messages.js +0 -3
  7. package/lib/common/protocol.$.d.ts +8 -0
  8. package/lib/common/protocol.$.js +19 -0
  9. package/lib/common/protocol.callHierarchy.d.ts +1 -1
  10. package/lib/common/protocol.callHierarchy.js +1 -1
  11. package/lib/common/protocol.colorProvider.d.ts +1 -1
  12. package/lib/common/protocol.configuration.d.ts +5 -17
  13. package/lib/common/protocol.configuration.js +1 -0
  14. package/lib/common/protocol.d.ts +488 -70
  15. package/lib/common/protocol.declaration.d.ts +3 -3
  16. package/lib/common/protocol.declaration.js +2 -2
  17. package/lib/common/protocol.diagnostic.d.ts +364 -0
  18. package/lib/common/protocol.diagnostic.js +77 -0
  19. package/lib/common/protocol.fileOperations.d.ts +1 -1
  20. package/lib/common/protocol.foldingRange.d.ts +43 -27
  21. package/lib/common/protocol.foldingRange.js +1 -19
  22. package/lib/common/protocol.implementation.d.ts +3 -3
  23. package/lib/common/protocol.implementation.js +2 -2
  24. package/lib/common/protocol.inlayHint.d.ts +115 -0
  25. package/lib/common/protocol.inlayHint.js +44 -0
  26. package/lib/common/protocol.inlineValue.d.ts +91 -0
  27. package/lib/common/protocol.inlineValue.js +31 -0
  28. package/lib/common/protocol.js +137 -18
  29. package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
  30. package/lib/common/protocol.moniker.d.ts +13 -11
  31. package/lib/common/protocol.moniker.js +8 -8
  32. package/lib/common/protocol.notebook.d.ts +402 -0
  33. package/lib/common/protocol.notebook.js +210 -0
  34. package/lib/common/protocol.progress.d.ts +2 -14
  35. package/lib/common/protocol.progress.js +4 -2
  36. package/lib/common/protocol.selectionRange.d.ts +2 -2
  37. package/lib/common/protocol.semanticTokens.d.ts +27 -2
  38. package/lib/common/protocol.typeDefinition.d.ts +2 -2
  39. package/lib/common/protocol.typeHierarchy.d.ts +89 -0
  40. package/lib/common/protocol.typeHierarchy.js +43 -0
  41. package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -41
  42. package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
  43. package/lib/node/main.js +1 -1
  44. package/metaModel.schema.json +705 -0
  45. package/package.json +4 -4
  46. package/lib/common/proposed.diagnostic.d.ts +0 -46
  47. package/lib/common/proposed.diagnostic.js +0 -23
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.0-next.2",
4
+ "version": "3.17.0-next.20",
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": "6.1.0-next.1",
22
- "vscode-languageserver-types": "3.17.0-next.1"
21
+ "vscode-jsonrpc": "8.0.0-next.8",
22
+ "vscode-languageserver-types": "3.17.0-next.12"
23
23
  },
24
24
  "scripts": {
25
25
  "prepublishOnly": "git clean -xfd . && npm install && npm run clean && npm run compile && npm test",
@@ -28,7 +28,7 @@
28
28
  "compile": "node ../build/bin/tsc -b ./tsconfig.json",
29
29
  "watch": "node ../build/bin/tsc -b ./tsconfig-watch.json -w",
30
30
  "clean": "node ../node_modules/rimraf/bin.js lib && node ../node_modules/rimraf/bin.js dist",
31
- "lint": "node ../node_modules/eslint/bin/eslint.js ./src/**/*.ts",
31
+ "lint": "node ../node_modules/eslint/bin/eslint.js --ext ts src",
32
32
  "test": "npm run test:node && npm run test:browser",
33
33
  "test:node": "node ../node_modules/mocha/bin/_mocha",
34
34
  "test:browser": "npm run webpack:test:silent && node ../build/bin/runBrowserTests.js http://127.0.0.1:8080/protocol/src/browser/test/",
@@ -1,46 +0,0 @@
1
- import { RequestHandler } from 'vscode-jsonrpc';
2
- import { TextDocumentIdentifier, Diagnostic } from 'vscode-languageserver-types';
3
- import { ProtocolRequestType } from './messages';
4
- import { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, TextDocumentClientCapabilities } from './protocol';
5
- /**
6
- * @since 3.17.0
7
- */
8
- export interface DiagnosticClientCapabilities {
9
- /**
10
- * Whether implementation supports dynamic registration. If this is set to `true`
11
- * the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
12
- * return value for the corresponding server capability as well.
13
- */
14
- dynamicRegistration?: boolean;
15
- }
16
- export interface $DiagnosticClientCapabilities {
17
- textDocument?: TextDocumentClientCapabilities & {
18
- diagnostic: DiagnosticClientCapabilities;
19
- };
20
- }
21
- export declare namespace DiagnosticPullMode {
22
- const onType: 1;
23
- const onSave: 2;
24
- function is(value: any): value is DiagnosticPullMode;
25
- }
26
- export declare type DiagnosticPullMode = 1 | 2;
27
- export interface DiagnosticParams extends WorkDoneProgressParams, PartialResultParams {
28
- /**
29
- * The text document.
30
- */
31
- textDocument: TextDocumentIdentifier;
32
- }
33
- export interface DiagnosticOptions extends WorkDoneProgressOptions {
34
- identifier?: string;
35
- mode: DiagnosticPullMode;
36
- }
37
- export interface DiagnosticRegistrationOptions extends TextDocumentRegistrationOptions, DiagnosticOptions, StaticRegistrationOptions {
38
- }
39
- export interface $DiagnosticServerCapabilities {
40
- diagnosticProvider?: DiagnosticOptions;
41
- }
42
- export declare namespace DiagnosticRequest {
43
- const method: 'textDocument/diagnostic';
44
- const type: ProtocolRequestType<DiagnosticParams, Diagnostic[] | null, Diagnostic[], void, DiagnosticRegistrationOptions>;
45
- type HandlerSignature = RequestHandler<DiagnosticParams, Diagnostic[] | null, void>;
46
- }
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /* --------------------------------------------------------------------------------------------
3
- * Copyright (c) TypeFox and others. 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.DiagnosticRequest = exports.DiagnosticPullMode = void 0;
8
- const messages_1 = require("./messages");
9
- var DiagnosticPullMode;
10
- (function (DiagnosticPullMode) {
11
- DiagnosticPullMode.onType = 1;
12
- DiagnosticPullMode.onSave = 2;
13
- function is(value) {
14
- return value === 1 || value === 2;
15
- }
16
- DiagnosticPullMode.is = is;
17
- })(DiagnosticPullMode = exports.DiagnosticPullMode || (exports.DiagnosticPullMode = {}));
18
- var DiagnosticRequest;
19
- (function (DiagnosticRequest) {
20
- DiagnosticRequest.method = 'textDocument/diagnostic';
21
- DiagnosticRequest.type = new messages_1.ProtocolRequestType(DiagnosticRequest.method);
22
- })(DiagnosticRequest = exports.DiagnosticRequest || (exports.DiagnosticRequest = {}));
23
- //# sourceMappingURL=proposed.diagnostic.js.map