vscode-languageserver-protocol 3.17.0-next.18 → 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.
@@ -0,0 +1,8 @@
1
+ import { LogTraceParams, SetTraceParams } from 'vscode-jsonrpc';
2
+ import { ProtocolNotificationType } from './messages';
3
+ export declare namespace SetTraceNotification {
4
+ const type: ProtocolNotificationType<SetTraceParams, void>;
5
+ }
6
+ export declare namespace LogTraceNotification {
7
+ const type: ProtocolNotificationType<LogTraceParams, void>;
8
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ /* --------------------------------------------------------------------------------------------
3
+ * Copyright (c) TypeFox, Microsoft 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.LogTraceNotification = exports.SetTraceNotification = void 0;
8
+ const messages_1 = require("./messages");
9
+ // This file is used to define the $ notification partly specified in JSON-RPC
10
+ // so that we generate proper data for them in the meta model.
11
+ var SetTraceNotification;
12
+ (function (SetTraceNotification) {
13
+ SetTraceNotification.type = new messages_1.ProtocolNotificationType('$/setTrace');
14
+ })(SetTraceNotification = exports.SetTraceNotification || (exports.SetTraceNotification = {}));
15
+ var LogTraceNotification;
16
+ (function (LogTraceNotification) {
17
+ LogTraceNotification.type = new messages_1.ProtocolNotificationType('$/logTrace');
18
+ })(LogTraceNotification = exports.LogTraceNotification || (exports.LogTraceNotification = {}));
19
+ //# sourceMappingURL=protocol.$.js.map
@@ -1388,8 +1388,8 @@ export declare namespace DidOpenTextDocumentNotification {
1388
1388
  const type: ProtocolNotificationType<DidOpenTextDocumentParams, TextDocumentRegistrationOptions>;
1389
1389
  }
1390
1390
  /**
1391
- * An event describing a change to a text document. If range and rangeLength are omitted
1392
- * the new text is considered to be the full content of the document.
1391
+ * An event describing a change to a text document. If only a text is provided
1392
+ * it is considered to be the full content of the document.
1393
1393
  */
1394
1394
  export declare type TextDocumentContentChangeEvent = {
1395
1395
  /**
@@ -119,12 +119,12 @@ export declare namespace DocumentDiagnosticReportKind {
119
119
  * A diagnostic report with a full
120
120
  * set of problems.
121
121
  */
122
- const full = "full";
122
+ const Full = "full";
123
123
  /**
124
124
  * A report indicating that the last
125
125
  * returned report is still accurate.
126
126
  */
127
- const unchanged = "unchanged";
127
+ const Unchanged = "unchanged";
128
128
  }
129
129
  export declare type DocumentDiagnosticReportKind = 'full' | 'unchanged';
130
130
  /**
@@ -137,7 +137,7 @@ export declare type FullDocumentDiagnosticReport = {
137
137
  /**
138
138
  * A full document diagnostic report.
139
139
  */
140
- kind: typeof DocumentDiagnosticReportKind.full;
140
+ kind: typeof DocumentDiagnosticReportKind.Full;
141
141
  /**
142
142
  * An optional result id. If provided it will
143
143
  * be sent on the next diagnostic request for the
@@ -184,7 +184,7 @@ export declare type UnchangedDocumentDiagnosticReport = {
184
184
  * only return `unchanged` if result ids are
185
185
  * provided.
186
186
  */
187
- kind: typeof DocumentDiagnosticReportKind.unchanged;
187
+ kind: typeof DocumentDiagnosticReportKind.Unchanged;
188
188
  /**
189
189
  * A result id which will be sent on the next
190
190
  * diagnostic request for the same document.
@@ -32,12 +32,12 @@ var DocumentDiagnosticReportKind;
32
32
  * A diagnostic report with a full
33
33
  * set of problems.
34
34
  */
35
- DocumentDiagnosticReportKind.full = 'full';
35
+ DocumentDiagnosticReportKind.Full = 'full';
36
36
  /**
37
37
  * A report indicating that the last
38
38
  * returned report is still accurate.
39
39
  */
40
- DocumentDiagnosticReportKind.unchanged = 'unchanged';
40
+ DocumentDiagnosticReportKind.Unchanged = 'unchanged';
41
41
  })(DocumentDiagnosticReportKind = exports.DocumentDiagnosticReportKind || (exports.DocumentDiagnosticReportKind = {}));
42
42
  /**
43
43
  * The document diagnostic request definition.
@@ -1,5 +1,5 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
- import { TextDocumentIdentifier, uinteger, FoldingRange } from 'vscode-languageserver-types';
2
+ import { TextDocumentIdentifier, uinteger, FoldingRange, FoldingRangeKind } from 'vscode-languageserver-types';
3
3
  import { ProtocolRequestType } from './messages';
4
4
  import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5
5
  export interface FoldingRangeClientCapabilities {
@@ -23,13 +23,35 @@ export interface FoldingRangeClientCapabilities {
23
23
  */
24
24
  lineFoldingOnly?: boolean;
25
25
  /**
26
- * If set, the client signals that it supports setting collapsedText on
27
- * folding ranges to display instead of the default text.
26
+ * Specific options for the folding range kind.
28
27
  *
29
28
  * @since 3.17.0
30
29
  * @proposed
31
30
  */
32
- collapsedText?: boolean;
31
+ foldingRangeKind?: {
32
+ /**
33
+ * The folding range kind values the client supports. When this
34
+ * property exists the client also guarantees that it will
35
+ * handle values outside its set gracefully and falls back
36
+ * to a default value when unknown.
37
+ */
38
+ valueSet?: FoldingRangeKind[];
39
+ };
40
+ /**
41
+ * Specific options for the folding range.
42
+ * @since 3.17.0
43
+ * @proposed
44
+ */
45
+ foldingRange?: {
46
+ /**
47
+ * If set, the client signals that it supports setting collapsedText on
48
+ * folding ranges to display custom labels instead of the default text.
49
+ *
50
+ * @since 3.17.0
51
+ * @proposed
52
+ */
53
+ collapsedText?: boolean;
54
+ };
33
55
  }
34
56
  export interface FoldingRangeOptions extends WorkDoneProgressOptions {
35
57
  }
@@ -1,5 +1,4 @@
1
1
  {
2
- "$ref": "#/definitions/MetaModel",
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
3
  "definitions": {
5
4
  "AndType": {
@@ -111,6 +110,10 @@
111
110
  "description": "Since when (release number) this enumeration is available. Is undefined if not known.",
112
111
  "type": "string"
113
112
  },
113
+ "supportsCustomValues": {
114
+ "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.",
115
+ "type": "boolean"
116
+ },
114
117
  "type": {
115
118
  "$ref": "#/definitions/EnumerationType",
116
119
  "description": "The type of the elements."
@@ -681,6 +684,22 @@
681
684
  "type"
682
685
  ],
683
686
  "type": "object"
687
+ },
688
+ "TypeKind": {
689
+ "enum": [
690
+ "base",
691
+ "reference",
692
+ "array",
693
+ "map",
694
+ "and",
695
+ "or",
696
+ "tuple",
697
+ "literal",
698
+ "stringLiteral",
699
+ "integerLiteral",
700
+ "booleanLiteral"
701
+ ],
702
+ "type": "string"
684
703
  }
685
704
  }
686
705
  }
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.18",
4
+ "version": "3.17.0-next.20",
5
5
  "author": "Microsoft Corporation",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -19,7 +19,7 @@
19
19
  "typings": "./lib/common/api.d.ts",
20
20
  "dependencies": {
21
21
  "vscode-jsonrpc": "8.0.0-next.8",
22
- "vscode-languageserver-types": "3.17.0-next.11"
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",