vscode-languageserver-protocol 3.17.0-next.14 → 3.17.0-next.17

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 (39) hide show
  1. package/lib/common/api.d.ts +1 -22
  2. package/lib/common/api.js +1 -10
  3. package/lib/common/connection.d.ts +26 -2
  4. package/lib/common/proposed.diagnostic.d.ts +93 -68
  5. package/lib/common/proposed.diagnostic.js +12 -7
  6. package/lib/common/{proposed.notebooks.d.ts → proposed.notebook.d.ts} +81 -114
  7. package/lib/common/{proposed.notebooks.js → proposed.notebook.js} +28 -56
  8. package/lib/common/protocol.callHierarchy.d.ts +1 -1
  9. package/lib/common/protocol.colorProvider.d.ts +1 -1
  10. package/lib/common/protocol.configuration.d.ts +1 -14
  11. package/lib/common/protocol.configuration.js +1 -0
  12. package/lib/common/protocol.d.ts +266 -102
  13. package/lib/common/protocol.declaration.d.ts +2 -2
  14. package/lib/common/protocol.declaration.js +2 -2
  15. package/lib/common/protocol.foldingRange.d.ts +2 -19
  16. package/lib/common/protocol.foldingRange.js +1 -19
  17. package/lib/common/protocol.implementation.d.ts +2 -2
  18. package/lib/common/protocol.implementation.js +2 -2
  19. package/lib/common/protocol.inlayHint.d.ts +115 -0
  20. package/lib/common/protocol.inlayHint.js +44 -0
  21. package/lib/common/protocol.inlineValue.d.ts +91 -0
  22. package/lib/common/protocol.inlineValue.js +31 -0
  23. package/lib/common/protocol.js +71 -15
  24. package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
  25. package/lib/common/protocol.moniker.d.ts +13 -11
  26. package/lib/common/protocol.moniker.js +8 -8
  27. package/lib/common/protocol.progress.d.ts +2 -14
  28. package/lib/common/protocol.progress.js +4 -2
  29. package/lib/common/protocol.selectionRange.d.ts +2 -2
  30. package/lib/common/protocol.semanticTokens.d.ts +1 -1
  31. package/lib/common/protocol.typeDefinition.d.ts +1 -1
  32. package/lib/common/{proposed.typeHierarchy.d.ts → protocol.typeHierarchy.d.ts} +28 -22
  33. package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +7 -4
  34. package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -41
  35. package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
  36. package/metaModel.schema.json +686 -0
  37. package/package.json +3 -3
  38. package/lib/common/proposed.inlineValue.d.ts +0 -86
  39. package/lib/common/proposed.inlineValue.js +0 -29
@@ -54,9 +54,7 @@ export declare namespace LSPErrorCodes {
54
54
  const lspReservedErrorRangeEnd: integer;
55
55
  }
56
56
  import * as diag from './proposed.diagnostic';
57
- import * as typeh from './proposed.typeHierarchy';
58
- import * as iv from './proposed.inlineValue';
59
- import * as nb from './proposed.notebooks';
57
+ import * as nb from './proposed.notebook';
60
58
  export declare namespace Proposed {
61
59
  type DiagnosticClientCapabilities = diag.DiagnosticClientCapabilities;
62
60
  type $DiagnosticClientCapabilities = diag.$DiagnosticClientCapabilities;
@@ -84,21 +82,6 @@ export declare namespace Proposed {
84
82
  type WorkspaceDiagnosticReportPartialResult = diag.WorkspaceDiagnosticReportPartialResult;
85
83
  const WorkspaceDiagnosticRequest: typeof diag.WorkspaceDiagnosticRequest;
86
84
  const DiagnosticRefreshRequest: typeof diag.DiagnosticRefreshRequest;
87
- type TypeHierarchyClientCapabilities = typeh.TypeHierarchyClientCapabilities;
88
- type TypeHierarchyOptions = typeh.TypeHierarchyOptions;
89
- type TypeHierarchyRegistrationOptions = typeh.TypeHierarchyRegistrationOptions;
90
- type TypeHierarchyPrepareParams = typeh.TypeHierarchyPrepareParams;
91
- type TypeHierarchySupertypesParams = typeh.TypeHierarchySupertypesParams;
92
- type TypeHierarchySubtypesParams = typeh.TypeHierarchySubtypesParams;
93
- const TypeHierarchyPrepareRequest: typeof typeh.TypeHierarchyPrepareRequest;
94
- const TypeHierarchySupertypesRequest: typeof typeh.TypeHierarchySupertypesRequest;
95
- const TypeHierarchySubtypesRequest: typeof typeh.TypeHierarchySubtypesRequest;
96
- type InlineValuesClientCapabilities = iv.InlineValuesClientCapabilities;
97
- type InlineValuesOptions = iv.InlineValuesOptions;
98
- type InlineValuesRegistrationOptions = iv.InlineValuesRegistrationOptions;
99
- type InlineValuesParams = iv.InlineValuesParams;
100
- const InlineValuesRequest: typeof iv.InlineValuesRequest;
101
- const InlineValuesRefreshRequest: typeof iv.InlineValuesRefreshRequest;
102
85
  type $NotebookDocumentClientCapabilities = nb.$NotebookDocumentClientCapabilities;
103
86
  type NotebookDocumentSyncClientCapabilities = nb.NotebookDocumentSyncClientCapabilities;
104
87
  type $NotebookDocumentSyncServerCapabilities = nb.$NotebookDocumentSyncServerCapabilities;
@@ -123,8 +106,4 @@ export declare namespace Proposed {
123
106
  const DidSaveNotebookDocumentNotification: typeof nb.DidSaveNotebookDocumentNotification;
124
107
  type DidCloseNotebookDocumentParams = nb.DidCloseNotebookDocumentParams;
125
108
  const DidCloseNotebookDocumentNotification: typeof nb.DidCloseNotebookDocumentNotification;
126
- type NotebookController = nb.NotebookController;
127
- const NotebookController: typeof nb.NotebookController;
128
- type DidSelectNotebookControllerParams = nb.DidSelectNotebookControllerParams;
129
- const DidSelectNotebookControllerNotification: typeof nb.DidSelectNotebookControllerNotification;
130
109
  }
package/lib/common/api.js CHANGED
@@ -72,9 +72,7 @@ var LSPErrorCodes;
72
72
  LSPErrorCodes.lspReservedErrorRangeEnd = -32800;
73
73
  })(LSPErrorCodes = exports.LSPErrorCodes || (exports.LSPErrorCodes = {}));
74
74
  const diag = require("./proposed.diagnostic");
75
- const typeh = require("./proposed.typeHierarchy");
76
- const iv = require("./proposed.inlineValue");
77
- const nb = require("./proposed.notebooks");
75
+ const nb = require("./proposed.notebook");
78
76
  var Proposed;
79
77
  (function (Proposed) {
80
78
  Proposed.DiagnosticServerCancellationData = diag.DiagnosticServerCancellationData;
@@ -82,11 +80,6 @@ var Proposed;
82
80
  Proposed.DocumentDiagnosticRequest = diag.DocumentDiagnosticRequest;
83
81
  Proposed.WorkspaceDiagnosticRequest = diag.WorkspaceDiagnosticRequest;
84
82
  Proposed.DiagnosticRefreshRequest = diag.DiagnosticRefreshRequest;
85
- Proposed.TypeHierarchyPrepareRequest = typeh.TypeHierarchyPrepareRequest;
86
- Proposed.TypeHierarchySupertypesRequest = typeh.TypeHierarchySupertypesRequest;
87
- Proposed.TypeHierarchySubtypesRequest = typeh.TypeHierarchySubtypesRequest;
88
- Proposed.InlineValuesRequest = iv.InlineValuesRequest;
89
- Proposed.InlineValuesRefreshRequest = iv.InlineValuesRefreshRequest;
90
83
  Proposed.NotebookCellKind = nb.NotebookCellKind;
91
84
  Proposed.NotebookCell = nb.NotebookCell;
92
85
  Proposed.NotebookDocument = nb.NotebookDocument;
@@ -95,7 +88,5 @@ var Proposed;
95
88
  Proposed.DidChangeNotebookDocumentNotification = nb.DidChangeNotebookDocumentNotification;
96
89
  Proposed.DidSaveNotebookDocumentNotification = nb.DidSaveNotebookDocumentNotification;
97
90
  Proposed.DidCloseNotebookDocumentNotification = nb.DidCloseNotebookDocumentNotification;
98
- Proposed.NotebookController = nb.NotebookController;
99
- Proposed.DidSelectNotebookControllerNotification = nb.DidSelectNotebookControllerNotification;
100
91
  })(Proposed = exports.Proposed || (exports.Proposed = {}));
101
92
  //# sourceMappingURL=api.js.map
@@ -42,6 +42,7 @@ export interface ProtocolConnection {
42
42
  *
43
43
  * @param type The request type to install the handler for.
44
44
  * @param handler The actual handler.
45
+ * @returns A disposable to remove the handler.
45
46
  */
46
47
  onRequest<R, PR, E, RO>(type: ProtocolRequestType0<R, PR, E, RO>, handler: RequestHandler0<R, E>): Disposable;
47
48
  onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): Disposable;
@@ -50,6 +51,7 @@ export interface ProtocolConnection {
50
51
  *
51
52
  * @param type The request type to install the handler for.
52
53
  * @param handler The actual handler.
54
+ * @returns A disposable to remove the handler.
53
55
  */
54
56
  onRequest<P, R, PR, E, RO>(type: ProtocolRequestType<P, R, PR, E, RO>, handler: RequestHandler<P, R, E>): Disposable;
55
57
  onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): Disposable;
@@ -58,12 +60,20 @@ export interface ProtocolConnection {
58
60
  *
59
61
  * @param methods the message signature or the method name to install a handler for.
60
62
  * @param handler The actual handler.
63
+ * @returns A disposable to remove the handler.
61
64
  */
62
65
  onRequest<R, E>(method: MessageSignature | string, handler: GenericRequestHandler<R, E>): Disposable;
66
+ /**
67
+ * Returns true if the connection has a pending response.
68
+ * Otherwise false is returned.
69
+ */
70
+ hasPendingResponse(): boolean;
63
71
  /**
64
72
  * Sends a notification.
65
73
  *
66
74
  * @param type the notification's type to send.
75
+ * @returns A promise that resolves when the notification is written to the
76
+ * network layer.
67
77
  */
68
78
  sendNotification(type: NotificationType0): Promise<void>;
69
79
  sendNotification<RO>(type: ProtocolNotificationType0<RO>): Promise<void>;
@@ -72,6 +82,8 @@ export interface ProtocolConnection {
72
82
  *
73
83
  * @param type the notification's type to send.
74
84
  * @param params the notification's parameters.
85
+ * @returns A promise that resolves when the notification is written to the
86
+ * network layer.
75
87
  */
76
88
  sendNotification<P, RO>(type: ProtocolNotificationType<P, RO>, params?: P): Promise<void>;
77
89
  sendNotification<P>(type: NotificationType<P>, params?: P): Promise<void>;
@@ -79,6 +91,8 @@ export interface ProtocolConnection {
79
91
  * Sends a notification.
80
92
  *
81
93
  * @param method the notification's method signature or the method name.
94
+ * @returns A promise that resolves when the notification is written to the
95
+ * network layer.
82
96
  */
83
97
  sendNotification(method: MessageSignature | string): Promise<void>;
84
98
  /**
@@ -86,6 +100,8 @@ export interface ProtocolConnection {
86
100
  *
87
101
  * @param method the notification's method signature or the method name.
88
102
  * @param params the notification's parameters.
103
+ * @returns A promise that resolves when the notification is written to the
104
+ * network layer.
89
105
  */
90
106
  sendNotification(method: MessageSignature | string, params: any): Promise<void>;
91
107
  /**
@@ -93,6 +109,7 @@ export interface ProtocolConnection {
93
109
  *
94
110
  * @param type The notification type to install the handler for.
95
111
  * @param handler The actual handler.
112
+ * @returns A disposable to remove the handler.
96
113
  */
97
114
  onNotification<RO>(type: ProtocolNotificationType0<RO>, handler: NotificationHandler0): Disposable;
98
115
  onNotification(type: NotificationType0, handler: NotificationHandler0): Disposable;
@@ -101,6 +118,7 @@ export interface ProtocolConnection {
101
118
  *
102
119
  * @param type The notification type to install the handler for.
103
120
  * @param handler The actual handler.
121
+ * @returns A disposable to remove the handler.
104
122
  */
105
123
  onNotification<P, RO>(type: ProtocolNotificationType<P, RO>, handler: NotificationHandler<P>): Disposable;
106
124
  onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): Disposable;
@@ -109,6 +127,7 @@ export interface ProtocolConnection {
109
127
  *
110
128
  * @param methods The message signature or the method name to install the handler for.
111
129
  * @param handler The actual handler.
130
+ * @returns A disposable to remove the handler.
112
131
  */
113
132
  onNotification(method: MessageSignature | string, handler: GenericNotificationHandler): Disposable;
114
133
  /**
@@ -116,6 +135,7 @@ export interface ProtocolConnection {
116
135
  * @param type the progress type
117
136
  * @param token the token
118
137
  * @param handler the handler
138
+ * @returns A disposable to remove the handler.
119
139
  */
120
140
  onProgress<P>(type: ProgressType<P>, token: string | number, handler: NotificationHandler<P>): Disposable;
121
141
  /**
@@ -123,13 +143,17 @@ export interface ProtocolConnection {
123
143
  * @param type the progress type
124
144
  * @param token the token to use
125
145
  * @param value the progress value
146
+ * @returns A promise that resolves when the progress is written to the
147
+ * network layer.
126
148
  */
127
149
  sendProgress<P>(type: ProgressType<P>, token: string | number, value: P): Promise<void>;
128
150
  /**
129
151
  * Enables tracing mode for the connection.
152
+ * @returns A promise that resolves when the trace value is written to the
153
+ * network layer.
130
154
  */
131
- trace(value: Trace, tracer: Tracer, sendNotification?: boolean): void;
132
- trace(value: Trace, tracer: Tracer, traceOptions?: TraceOptions): void;
155
+ trace(value: Trace, tracer: Tracer, sendNotification?: boolean): Promise<void>;
156
+ trace(value: Trace, tracer: Tracer, traceOptions?: TraceOptions): Promise<void>;
133
157
  /**
134
158
  * An event emitter firing when an error occurs on the connection.
135
159
  */
@@ -1,11 +1,12 @@
1
1
  import { RequestHandler0, RequestHandler, ProgressType } from 'vscode-jsonrpc';
2
2
  import { TextDocumentIdentifier, Diagnostic, DocumentUri, integer } from 'vscode-languageserver-types';
3
3
  import { ProtocolRequestType0, ProtocolRequestType } from './messages';
4
- import { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, TextDocumentClientCapabilities } from './protocol';
4
+ import type { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, TextDocumentClientCapabilities } from './protocol';
5
5
  /**
6
- * @since 3.17.0 - proposed state
6
+ * @since 3.17.0
7
+ * @proposed
7
8
  */
8
- export interface DiagnosticClientCapabilities {
9
+ export declare type DiagnosticClientCapabilities = {
9
10
  /**
10
11
  * Whether implementation supports dynamic registration. If this is set to `true`
11
12
  * the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
@@ -16,18 +17,19 @@ export interface DiagnosticClientCapabilities {
16
17
  * Whether the clients supports related documents for document diagnostic pulls.
17
18
  */
18
19
  relatedDocumentSupport?: boolean;
19
- }
20
- export interface $DiagnosticClientCapabilities {
20
+ };
21
+ export declare type $DiagnosticClientCapabilities = {
21
22
  textDocument?: TextDocumentClientCapabilities & {
22
23
  diagnostic?: DiagnosticClientCapabilities;
23
24
  };
24
- }
25
+ };
25
26
  /**
26
27
  * Diagnostic options.
27
28
  *
28
- * @since 3.17.0 - proposed state
29
+ * @since 3.17.0
30
+ * @proposed
29
31
  */
30
- export interface DiagnosticOptions extends WorkDoneProgressOptions {
32
+ export declare type DiagnosticOptions = WorkDoneProgressOptions & {
31
33
  /**
32
34
  * An optional identifier under which the diagnostics are
33
35
  * managed by the client.
@@ -44,27 +46,29 @@ export interface DiagnosticOptions extends WorkDoneProgressOptions {
44
46
  * The server provides support for workspace diagnostics as well.
45
47
  */
46
48
  workspaceDiagnostics: boolean;
47
- }
49
+ };
48
50
  /**
49
51
  * Diagnostic registration options.
50
52
  *
51
- * @since 3.17.0 - proposed state
53
+ * @since 3.17.0
54
+ * @proposed
52
55
  */
53
- export interface DiagnosticRegistrationOptions extends TextDocumentRegistrationOptions, DiagnosticOptions, StaticRegistrationOptions {
54
- }
55
- export interface $DiagnosticServerCapabilities {
56
+ export declare type DiagnosticRegistrationOptions = TextDocumentRegistrationOptions & DiagnosticOptions & StaticRegistrationOptions;
57
+ export declare type $DiagnosticServerCapabilities = {
56
58
  diagnosticProvider?: DiagnosticOptions;
57
- }
59
+ };
58
60
  /**
59
61
  * Cancellation data returned from a diagnostic request.
60
62
  *
61
- * @since 3.17.0 - proposed state
63
+ * @since 3.17.0
64
+ * @proposed
62
65
  */
63
- export interface DiagnosticServerCancellationData {
66
+ export declare type DiagnosticServerCancellationData = {
64
67
  retriggerRequest: boolean;
65
- }
68
+ };
66
69
  /**
67
- * @since 3.17.0 - proposed state
70
+ * @since 3.17.0
71
+ * @proposed
68
72
  */
69
73
  export declare namespace DiagnosticServerCancellationData {
70
74
  function is(value: any): value is DiagnosticServerCancellationData;
@@ -72,9 +76,10 @@ export declare namespace DiagnosticServerCancellationData {
72
76
  /**
73
77
  * Parameters of the document diagnostic request.
74
78
  *
75
- * @since 3.17.0 - proposed state
79
+ * @since 3.17.0
80
+ * @proposed
76
81
  */
77
- export interface DocumentDiagnosticParams extends WorkDoneProgressParams, PartialResultParams {
82
+ export declare type DocumentDiagnosticParams = WorkDoneProgressParams & PartialResultParams & {
78
83
  /**
79
84
  * The text document.
80
85
  */
@@ -87,34 +92,37 @@ export interface DocumentDiagnosticParams extends WorkDoneProgressParams, Partia
87
92
  * The result id of a previous response if provided.
88
93
  */
89
94
  previousResultId?: string;
90
- }
95
+ };
91
96
  /**
92
97
  * The document diagnostic report kinds.
93
98
  *
94
- * @since 3.17.0 - proposed state
99
+ * @since 3.17.0
100
+ * @proposed
95
101
  */
96
- export declare enum DocumentDiagnosticReportKind {
102
+ export declare namespace DocumentDiagnosticReportKind {
97
103
  /**
98
104
  * A diagnostic report with a full
99
105
  * set of problems.
100
106
  */
101
- full = "full",
107
+ const full = "full";
102
108
  /**
103
109
  * A report indicating that the last
104
110
  * returned report is still accurate.
105
111
  */
106
- unChanged = "unChanged"
112
+ const unChanged = "unChanged";
107
113
  }
114
+ export declare type DocumentDiagnosticReportKind = 'full' | 'unChanged';
108
115
  /**
109
116
  * A diagnostic report with a full set of problems.
110
117
  *
111
- * @since 3.17.0 - proposed state
118
+ * @since 3.17.0
119
+ * @proposed
112
120
  */
113
- export interface FullDocumentDiagnosticReport {
121
+ export declare type FullDocumentDiagnosticReport = {
114
122
  /**
115
123
  * A full document diagnostic report.
116
124
  */
117
- kind: DocumentDiagnosticReportKind.full;
125
+ kind: typeof DocumentDiagnosticReportKind.full;
118
126
  /**
119
127
  * An optional result id. If provided it will
120
128
  * be sent on the next diagnostic request for the
@@ -125,13 +133,14 @@ export interface FullDocumentDiagnosticReport {
125
133
  * The actual items.
126
134
  */
127
135
  items: Diagnostic[];
128
- }
136
+ };
129
137
  /**
130
138
  * A full diagnostic report with a set of related documents.
131
139
  *
132
- * @since 3.17.0 - proposed state
140
+ * @since 3.17.0
141
+ * @proposed
133
142
  */
134
- export interface RelatedFullDocumentDiagnosticReport extends FullDocumentDiagnosticReport {
143
+ export declare type RelatedFullDocumentDiagnosticReport = FullDocumentDiagnosticReport & {
135
144
  /**
136
145
  * Diagnostics of related documents. This information is useful
137
146
  * in programming languages where code in a file A can generate
@@ -139,38 +148,41 @@ export interface RelatedFullDocumentDiagnosticReport extends FullDocumentDiagnos
139
148
  * such a language is C/C++ where marco definitions in a file
140
149
  * a.cpp and result in errors in a header file b.hpp.
141
150
  *
142
- * @since 3.17.0 - proposed state
151
+ * @since 3.17.0
152
+ * @proposed
143
153
  */
144
154
  relatedDocuments?: {
145
- [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
155
+ [uri: DocumentUri]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
146
156
  };
147
- }
157
+ };
148
158
  /**
149
159
  * A diagnostic report indicating that the last returned
150
160
  * report is still accurate.
151
161
  *
152
- * @since 3.17.0 - proposed state
162
+ * @since 3.17.0
163
+ * @proposed
153
164
  */
154
- export interface UnchangedDocumentDiagnosticReport {
165
+ export declare type UnchangedDocumentDiagnosticReport = {
155
166
  /**
156
167
  * A document diagnostic report indicating
157
168
  * no changes to the last result. A server can
158
169
  * only return `unchanged` if result ids are
159
170
  * provided.
160
171
  */
161
- kind: DocumentDiagnosticReportKind.unChanged;
172
+ kind: typeof DocumentDiagnosticReportKind.unChanged;
162
173
  /**
163
174
  * A result id which will be sent on the next
164
175
  * diagnostic request for the same document.
165
176
  */
166
177
  resultId: string;
167
- }
178
+ };
168
179
  /**
169
180
  * An unchanged diagnostic report with a set of related documents.
170
181
  *
171
- * @since 3.17.0 - proposed state
182
+ * @since 3.17.0
183
+ * @proposed
172
184
  */
173
- export interface RelatedUnchangedDocumentDiagnosticReport extends UnchangedDocumentDiagnosticReport {
185
+ export declare type RelatedUnchangedDocumentDiagnosticReport = UnchangedDocumentDiagnosticReport & {
174
186
  /**
175
187
  * Diagnostics of related documents. This information is useful
176
188
  * in programming languages where code in a file A can generate
@@ -178,12 +190,13 @@ export interface RelatedUnchangedDocumentDiagnosticReport extends UnchangedDocum
178
190
  * such a language is C/C++ where marco definitions in a file
179
191
  * a.cpp and result in errors in a header file b.hpp.
180
192
  *
181
- * @since 3.17.0 - proposed state
193
+ * @since 3.17.0
194
+ * @proposed
182
195
  */
183
196
  relatedDocuments?: {
184
- [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
197
+ [uri: DocumentUri]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
185
198
  };
186
- }
199
+ };
187
200
  /**
188
201
  * The result of a document diagnostic pull request. A report can
189
202
  * either be a full report containing all diagnostics for the
@@ -191,23 +204,26 @@ export interface RelatedUnchangedDocumentDiagnosticReport extends UnchangedDocum
191
204
  * has changed in terms of diagnostics in comparison to the last
192
205
  * pull request.
193
206
  *
194
- * @since 3.17.0 - proposed state
207
+ * @since 3.17.0
208
+ * @proposed
195
209
  */
196
210
  export declare type DocumentDiagnosticReport = RelatedFullDocumentDiagnosticReport | RelatedUnchangedDocumentDiagnosticReport;
197
211
  /**
198
212
  * A partial result for a document diagnostic report.
199
213
  *
200
- * @since 3.17.0 - proposed state
214
+ * @since 3.17.0
215
+ * @proposed
201
216
  */
202
- export interface DocumentDiagnosticReportPartialResult {
217
+ export declare type DocumentDiagnosticReportPartialResult = {
203
218
  relatedDocuments: {
204
- [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
219
+ [uri: DocumentUri]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
205
220
  };
206
- }
221
+ };
207
222
  /**
208
223
  * The document diagnostic request definition.
209
224
  *
210
- * @since 3.17.0 - proposed state
225
+ * @since 3.17.0
226
+ * @proposed
211
227
  */
212
228
  export declare namespace DocumentDiagnosticRequest {
213
229
  const method: 'textDocument/diagnostic';
@@ -218,7 +234,8 @@ export declare namespace DocumentDiagnosticRequest {
218
234
  /**
219
235
  * A previous result id in a workspace pull request.
220
236
  *
221
- * @since 3.17.0 - proposed state
237
+ * @since 3.17.0
238
+ * @proposed
222
239
  */
223
240
  export declare type PreviousResultId = {
224
241
  /**
@@ -234,9 +251,10 @@ export declare type PreviousResultId = {
234
251
  /**
235
252
  * Parameters of the workspace diagnostic request.
236
253
  *
237
- * @since 3.17.0 - proposed state
254
+ * @since 3.17.0
255
+ * @proposed
238
256
  */
239
- export interface WorkspaceDiagnosticParams extends WorkDoneProgressParams, PartialResultParams {
257
+ export declare type WorkspaceDiagnosticParams = WorkDoneProgressParams & PartialResultParams & {
240
258
  /**
241
259
  * The additional identifier provided during registration.
242
260
  */
@@ -246,13 +264,14 @@ export interface WorkspaceDiagnosticParams extends WorkDoneProgressParams, Parti
246
264
  * previous result ids.
247
265
  */
248
266
  previousResultIds: PreviousResultId[];
249
- }
267
+ };
250
268
  /**
251
269
  * A full document diagnostic report for a workspace diagnostic result.
252
270
  *
253
- * @since 3.17.0 - proposed state
271
+ * @since 3.17.0
272
+ * @proposed
254
273
  */
255
- export interface WorkspaceFullDocumentDiagnosticReport extends FullDocumentDiagnosticReport {
274
+ export declare type WorkspaceFullDocumentDiagnosticReport = FullDocumentDiagnosticReport & {
256
275
  /**
257
276
  * The URI for which diagnostic information is reported.
258
277
  */
@@ -262,13 +281,14 @@ export interface WorkspaceFullDocumentDiagnosticReport extends FullDocumentDiagn
262
281
  * If the document is not marked as open `null` can be provided.
263
282
  */
264
283
  version: integer | null;
265
- }
284
+ };
266
285
  /**
267
286
  * An unchanged document diagnostic report for a workspace diagnostic result.
268
287
  *
269
- * @since 3.17.0 - proposed state
288
+ * @since 3.17.0
289
+ * @proposed
270
290
  */
271
- export interface WorkspaceUnchangedDocumentDiagnosticReport extends UnchangedDocumentDiagnosticReport {
291
+ export declare type WorkspaceUnchangedDocumentDiagnosticReport = UnchangedDocumentDiagnosticReport & {
272
292
  /**
273
293
  * The URI for which diagnostic information is reported.
274
294
  */
@@ -278,33 +298,37 @@ export interface WorkspaceUnchangedDocumentDiagnosticReport extends UnchangedDoc
278
298
  * If the document is not marked as open `null` can be provided.
279
299
  */
280
300
  version: integer | null;
281
- }
301
+ };
282
302
  /**
283
303
  * A workspace diagnostic document report.
284
304
  *
285
- * @since 3.17.0 - proposed state
305
+ * @since 3.17.0
306
+ * @proposed
286
307
  */
287
308
  export declare type WorkspaceDocumentDiagnosticReport = WorkspaceFullDocumentDiagnosticReport | WorkspaceUnchangedDocumentDiagnosticReport;
288
309
  /**
289
310
  * A workspace diagnostic report.
290
311
  *
291
- * @since 3.17.0 - proposed state
312
+ * @since 3.17.0
313
+ * @proposed
292
314
  */
293
- export interface WorkspaceDiagnosticReport {
315
+ export declare type WorkspaceDiagnosticReport = {
294
316
  items: WorkspaceDocumentDiagnosticReport[];
295
- }
317
+ };
296
318
  /**
297
319
  * A partial result for a workspace diagnostic report.
298
320
  *
299
- * @since 3.17.0 - proposed state
321
+ * @since 3.17.0
322
+ * @proposed
300
323
  */
301
- export interface WorkspaceDiagnosticReportPartialResult {
324
+ export declare type WorkspaceDiagnosticReportPartialResult = {
302
325
  items: WorkspaceDocumentDiagnosticReport[];
303
- }
326
+ };
304
327
  /**
305
328
  * The workspace diagnostic request definition.
306
329
  *
307
- * @since 3.17.0 - proposed state
330
+ * @since 3.17.0
331
+ * @proposed
308
332
  */
309
333
  export declare namespace WorkspaceDiagnosticRequest {
310
334
  const method: 'workspace/diagnostic';
@@ -315,7 +339,8 @@ export declare namespace WorkspaceDiagnosticRequest {
315
339
  /**
316
340
  * The diagnostic refresh request definition.
317
341
  *
318
- * @since 3.17.0 - proposed state
342
+ * @since 3.17.0
343
+ * @proposed
319
344
  */
320
345
  export declare namespace DiagnosticRefreshRequest {
321
346
  const method: `workspace/diagnostic/refresh`;
@@ -9,7 +9,8 @@ const vscode_jsonrpc_1 = require("vscode-jsonrpc");
9
9
  const Is = require("./utils/is");
10
10
  const messages_1 = require("./messages");
11
11
  /**
12
- * @since 3.17.0 - proposed state
12
+ * @since 3.17.0
13
+ * @proposed
13
14
  */
14
15
  var DiagnosticServerCancellationData;
15
16
  (function (DiagnosticServerCancellationData) {
@@ -22,7 +23,8 @@ var DiagnosticServerCancellationData;
22
23
  /**
23
24
  * The document diagnostic report kinds.
24
25
  *
25
- * @since 3.17.0 - proposed state
26
+ * @since 3.17.0
27
+ * @proposed
26
28
  */
27
29
  var DocumentDiagnosticReportKind;
28
30
  (function (DocumentDiagnosticReportKind) {
@@ -30,17 +32,18 @@ var DocumentDiagnosticReportKind;
30
32
  * A diagnostic report with a full
31
33
  * set of problems.
32
34
  */
33
- DocumentDiagnosticReportKind["full"] = "full";
35
+ DocumentDiagnosticReportKind.full = 'full';
34
36
  /**
35
37
  * A report indicating that the last
36
38
  * returned report is still accurate.
37
39
  */
38
- DocumentDiagnosticReportKind["unChanged"] = "unChanged";
40
+ DocumentDiagnosticReportKind.unChanged = 'unChanged';
39
41
  })(DocumentDiagnosticReportKind = exports.DocumentDiagnosticReportKind || (exports.DocumentDiagnosticReportKind = {}));
40
42
  /**
41
43
  * The document diagnostic request definition.
42
44
  *
43
- * @since 3.17.0 - proposed state
45
+ * @since 3.17.0
46
+ * @proposed
44
47
  */
45
48
  var DocumentDiagnosticRequest;
46
49
  (function (DocumentDiagnosticRequest) {
@@ -51,7 +54,8 @@ var DocumentDiagnosticRequest;
51
54
  /**
52
55
  * The workspace diagnostic request definition.
53
56
  *
54
- * @since 3.17.0 - proposed state
57
+ * @since 3.17.0
58
+ * @proposed
55
59
  */
56
60
  var WorkspaceDiagnosticRequest;
57
61
  (function (WorkspaceDiagnosticRequest) {
@@ -62,7 +66,8 @@ var WorkspaceDiagnosticRequest;
62
66
  /**
63
67
  * The diagnostic refresh request definition.
64
68
  *
65
- * @since 3.17.0 - proposed state
69
+ * @since 3.17.0
70
+ * @proposed
66
71
  */
67
72
  var DiagnosticRefreshRequest;
68
73
  (function (DiagnosticRefreshRequest) {