vscode-languageserver-protocol 3.17.0-next.9

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 (57) hide show
  1. package/License.txt +11 -0
  2. package/README.md +16 -0
  3. package/browser.d.ts +6 -0
  4. package/browser.js +7 -0
  5. package/lib/browser/main.d.ts +4 -0
  6. package/lib/browser/main.js +25 -0
  7. package/lib/common/api.d.ts +94 -0
  8. package/lib/common/api.js +87 -0
  9. package/lib/common/connection.d.ts +163 -0
  10. package/lib/common/connection.js +16 -0
  11. package/lib/common/messages.d.ts +44 -0
  12. package/lib/common/messages.js +39 -0
  13. package/lib/common/proposed.diagnostic.d.ts +324 -0
  14. package/lib/common/proposed.diagnostic.js +72 -0
  15. package/lib/common/proposed.typeHierarchy.d.ts +83 -0
  16. package/lib/common/proposed.typeHierarchy.js +40 -0
  17. package/lib/common/protocol.callHierarchy.d.ts +83 -0
  18. package/lib/common/protocol.callHierarchy.js +40 -0
  19. package/lib/common/protocol.colorProvider.d.ts +63 -0
  20. package/lib/common/protocol.colorProvider.js +30 -0
  21. package/lib/common/protocol.configuration.d.ts +46 -0
  22. package/lib/common/protocol.configuration.js +22 -0
  23. package/lib/common/protocol.d.ts +2750 -0
  24. package/lib/common/protocol.declaration.d.ts +37 -0
  25. package/lib/common/protocol.declaration.js +23 -0
  26. package/lib/common/protocol.fileOperations.d.ts +293 -0
  27. package/lib/common/protocol.fileOperations.js +92 -0
  28. package/lib/common/protocol.foldingRange.d.ts +63 -0
  29. package/lib/common/protocol.foldingRange.js +38 -0
  30. package/lib/common/protocol.implementation.d.ts +38 -0
  31. package/lib/common/protocol.implementation.js +22 -0
  32. package/lib/common/protocol.js +752 -0
  33. package/lib/common/protocol.linkedEditingRange.d.ts +51 -0
  34. package/lib/common/protocol.linkedEditingRange.js +19 -0
  35. package/lib/common/protocol.moniker.d.ts +103 -0
  36. package/lib/common/protocol.moniker.js +68 -0
  37. package/lib/common/protocol.progress.d.ts +117 -0
  38. package/lib/common/protocol.progress.js +34 -0
  39. package/lib/common/protocol.selectionRange.d.ts +40 -0
  40. package/lib/common/protocol.selectionRange.js +20 -0
  41. package/lib/common/protocol.semanticTokens.d.ts +194 -0
  42. package/lib/common/protocol.semanticTokens.js +51 -0
  43. package/lib/common/protocol.showDocument.d.ts +71 -0
  44. package/lib/common/protocol.showDocument.js +22 -0
  45. package/lib/common/protocol.typeDefinition.d.ts +38 -0
  46. package/lib/common/protocol.typeDefinition.js +22 -0
  47. package/lib/common/protocol.workspaceFolders.d.ts +94 -0
  48. package/lib/common/protocol.workspaceFolders.js +24 -0
  49. package/lib/common/utils/is.d.ts +9 -0
  50. package/lib/common/utils/is.js +47 -0
  51. package/lib/node/main.d.ts +6 -0
  52. package/lib/node/main.js +25 -0
  53. package/node.cmd +5 -0
  54. package/node.d.ts +6 -0
  55. package/node.js +7 -0
  56. package/package.json +38 -0
  57. package/thirdpartynotices.txt +31 -0
@@ -0,0 +1,324 @@
1
+ import { RequestHandler0, RequestHandler, ProgressType } from 'vscode-jsonrpc';
2
+ import { TextDocumentIdentifier, Diagnostic, DocumentUri, integer } from 'vscode-languageserver-types';
3
+ import { ProtocolRequestType0, ProtocolRequestType } from './messages';
4
+ import { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, TextDocumentClientCapabilities } from './protocol';
5
+ /**
6
+ * @since 3.17.0 - proposed state
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
+ * Whether the clients supports related documents for document diagnostic pulls.
17
+ */
18
+ relatedDocumentSupport?: boolean;
19
+ }
20
+ export interface $DiagnosticClientCapabilities {
21
+ textDocument?: TextDocumentClientCapabilities & {
22
+ diagnostic?: DiagnosticClientCapabilities;
23
+ };
24
+ }
25
+ /**
26
+ * Diagnostic options.
27
+ *
28
+ * @since 3.17.0 - proposed state
29
+ */
30
+ export interface DiagnosticOptions extends WorkDoneProgressOptions {
31
+ /**
32
+ * An optional identifier under which the diagnostics are
33
+ * managed by the client.
34
+ */
35
+ identifier?: string;
36
+ /**
37
+ * Whether the language has inter file dependencies meaning that
38
+ * editing code in one file can result in a different diagnostic
39
+ * set in another file. Inter file dependencies are common for
40
+ * most programming languages and typically uncommon for linters.
41
+ */
42
+ interFileDependencies: boolean;
43
+ /**
44
+ * The server provides support for workspace diagnostics as well.
45
+ */
46
+ workspaceDiagnostics: boolean;
47
+ }
48
+ /**
49
+ * Diagnostic registration options.
50
+ *
51
+ * @since 3.17.0 - proposed state
52
+ */
53
+ export interface DiagnosticRegistrationOptions extends TextDocumentRegistrationOptions, DiagnosticOptions, StaticRegistrationOptions {
54
+ }
55
+ export interface $DiagnosticServerCapabilities {
56
+ diagnosticProvider?: DiagnosticOptions;
57
+ }
58
+ /**
59
+ * Cancellation data returned from a diagnostic request.
60
+ *
61
+ * @since 3.17.0 - proposed state
62
+ */
63
+ export interface DiagnosticServerCancellationData {
64
+ retriggerRequest: boolean;
65
+ }
66
+ /**
67
+ * @since 3.17.0 - proposed state
68
+ */
69
+ export declare namespace DiagnosticServerCancellationData {
70
+ function is(value: any): value is DiagnosticServerCancellationData;
71
+ }
72
+ /**
73
+ * Parameters of the document diagnostic request.
74
+ *
75
+ * @since 3.17.0 - proposed state
76
+ */
77
+ export interface DocumentDiagnosticParams extends WorkDoneProgressParams, PartialResultParams {
78
+ /**
79
+ * The text document.
80
+ */
81
+ textDocument: TextDocumentIdentifier;
82
+ /**
83
+ * The additional identifier provided during registration.
84
+ */
85
+ identifier?: string;
86
+ /**
87
+ * The result id of a previous response if provided.
88
+ */
89
+ previousResultId?: string;
90
+ }
91
+ /**
92
+ * The document diagnostic report kinds.
93
+ *
94
+ * @since 3.17.0 - proposed state
95
+ */
96
+ export declare enum DocumentDiagnosticReportKind {
97
+ /**
98
+ * A diagnostic report with a full
99
+ * set of problems.
100
+ */
101
+ full = "full",
102
+ /**
103
+ * A report indicating that the last
104
+ * returned report is still accurate.
105
+ */
106
+ unChanged = "unChanged"
107
+ }
108
+ /**
109
+ * A diagnostic report with a full set of problems.
110
+ *
111
+ * @since 3.17.0 - proposed state
112
+ */
113
+ export interface FullDocumentDiagnosticReport {
114
+ /**
115
+ * A full document diagnostic report.
116
+ */
117
+ kind: DocumentDiagnosticReportKind.full;
118
+ /**
119
+ * An optional result id. If provided it will
120
+ * be sent on the next diagnostic request for the
121
+ * same document.
122
+ */
123
+ resultId?: string;
124
+ /**
125
+ * The actual items.
126
+ */
127
+ items: Diagnostic[];
128
+ }
129
+ /**
130
+ * A full diagnostic report with a set of related documents.
131
+ *
132
+ * @since 3.17.0 - proposed state
133
+ */
134
+ export interface RelatedFullDocumentDiagnosticReport extends FullDocumentDiagnosticReport {
135
+ /**
136
+ * Diagnostics of related documents. This information is useful
137
+ * in programming languages where code in a file A can generate
138
+ * diagnostics in a file B which A depends on. An example of
139
+ * such a language is C/C++ where marco definitions in a file
140
+ * a.cpp and result in errors in a header file b.hpp.
141
+ *
142
+ * @since 3.17.0 - proposed state
143
+ */
144
+ relatedDocuments?: {
145
+ [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
146
+ };
147
+ }
148
+ /**
149
+ * A diagnostic report indicating that the last returned
150
+ * report is still accurate.
151
+ *
152
+ * @since 3.17.0 - proposed state
153
+ */
154
+ export interface UnchangedDocumentDiagnosticReport {
155
+ /**
156
+ * A document diagnostic report indicating
157
+ * no changes to the last result. A server can
158
+ * only return `unchanged` if result ids are
159
+ * provided.
160
+ */
161
+ kind: DocumentDiagnosticReportKind.unChanged;
162
+ /**
163
+ * A result id which will be sent on the next
164
+ * diagnostic request for the same document.
165
+ */
166
+ resultId: string;
167
+ }
168
+ /**
169
+ * An unchanged diagnostic report with a set of related documents.
170
+ *
171
+ * @since 3.17.0 - proposed state
172
+ */
173
+ export interface RelatedUnchangedDocumentDiagnosticReport extends UnchangedDocumentDiagnosticReport {
174
+ /**
175
+ * Diagnostics of related documents. This information is useful
176
+ * in programming languages where code in a file A can generate
177
+ * diagnostics in a file B which A depends on. An example of
178
+ * such a language is C/C++ where marco definitions in a file
179
+ * a.cpp and result in errors in a header file b.hpp.
180
+ *
181
+ * @since 3.17.0 - proposed state
182
+ */
183
+ relatedDocuments?: {
184
+ [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
185
+ };
186
+ }
187
+ /**
188
+ * The result of a document diagnostic pull request. A report can
189
+ * either be a full report containing all diagnostics for the
190
+ * requested document or a unchanged report indicating that nothing
191
+ * has changed in terms of diagnostics in comparison to the last
192
+ * pull request.
193
+ *
194
+ * @since 3.17.0 - proposed state
195
+ */
196
+ export declare type DocumentDiagnosticReport = RelatedFullDocumentDiagnosticReport | RelatedUnchangedDocumentDiagnosticReport;
197
+ /**
198
+ * A partial result for a document diagnostic report.
199
+ *
200
+ * @since 3.17.0 - proposed state
201
+ */
202
+ export interface DocumentDiagnosticReportPartialResult {
203
+ relatedDocuments: {
204
+ [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
205
+ };
206
+ }
207
+ /**
208
+ * The document diagnostic request definition.
209
+ *
210
+ * @since 3.17.0 - proposed state
211
+ */
212
+ export declare namespace DocumentDiagnosticRequest {
213
+ const method: 'textDocument/diagnostic';
214
+ const type: ProtocolRequestType<DocumentDiagnosticParams, DocumentDiagnosticReport, DocumentDiagnosticReportPartialResult, DiagnosticServerCancellationData, DiagnosticRegistrationOptions>;
215
+ const partialResult: ProgressType<DocumentDiagnosticReportPartialResult>;
216
+ type HandlerSignature = RequestHandler<DocumentDiagnosticParams, DocumentDiagnosticReport, void>;
217
+ }
218
+ /**
219
+ * A previous result id in a workspace pull request.
220
+ *
221
+ * @since 3.17.0 - proposed state
222
+ */
223
+ export declare type PreviousResultId = {
224
+ /**
225
+ * The URI for which the client knowns a
226
+ * result id.
227
+ */
228
+ uri: DocumentUri;
229
+ /**
230
+ * The value of the previous result id.
231
+ */
232
+ value: string;
233
+ };
234
+ /**
235
+ * Parameters of the workspace diagnostic request.
236
+ *
237
+ * @since 3.17.0 - proposed state
238
+ */
239
+ export interface WorkspaceDiagnosticParams extends WorkDoneProgressParams, PartialResultParams {
240
+ /**
241
+ * The additional identifier provided during registration.
242
+ */
243
+ identifier?: string;
244
+ /**
245
+ * The currently known diagnostic reports with their
246
+ * previous result ids.
247
+ */
248
+ previousResultIds: PreviousResultId[];
249
+ }
250
+ /**
251
+ * A full document diagnostic report for a workspace diagnostic result.
252
+ *
253
+ * @since 3.17.0 - proposed state
254
+ */
255
+ export interface WorkspaceFullDocumentDiagnosticReport extends FullDocumentDiagnosticReport {
256
+ /**
257
+ * The URI for which diagnostic information is reported.
258
+ */
259
+ uri: DocumentUri;
260
+ /**
261
+ * The version number for which the diagnostics are reported.
262
+ * If the document is not marked as open `null` can be provided.
263
+ */
264
+ version: integer | null;
265
+ }
266
+ /**
267
+ * An unchanged document diagnostic report for a workspace diagnostic result.
268
+ *
269
+ * @since 3.17.0 - proposed state
270
+ */
271
+ export interface WorkspaceUnchangedDocumentDiagnosticReport extends UnchangedDocumentDiagnosticReport {
272
+ /**
273
+ * The URI for which diagnostic information is reported.
274
+ */
275
+ uri: DocumentUri;
276
+ /**
277
+ * The version number for which the diagnostics are reported.
278
+ * If the document is not marked as open `null` can be provided.
279
+ */
280
+ version: integer | null;
281
+ }
282
+ /**
283
+ * A workspace diagnostic document report.
284
+ *
285
+ * @since 3.17.0 - proposed state
286
+ */
287
+ export declare type WorkspaceDocumentDiagnosticReport = WorkspaceFullDocumentDiagnosticReport | WorkspaceUnchangedDocumentDiagnosticReport;
288
+ /**
289
+ * A workspace diagnostic report.
290
+ *
291
+ * @since 3.17.0 - proposed state
292
+ */
293
+ export interface WorkspaceDiagnosticReport {
294
+ items: WorkspaceDocumentDiagnosticReport[];
295
+ }
296
+ /**
297
+ * A partial result for a workspace diagnostic report.
298
+ *
299
+ * @since 3.17.0 - proposed state
300
+ */
301
+ export interface WorkspaceDiagnosticReportPartialResult {
302
+ items: WorkspaceDocumentDiagnosticReport[];
303
+ }
304
+ /**
305
+ * The workspace diagnostic request definition.
306
+ *
307
+ * @since 3.17.0 - proposed state
308
+ */
309
+ export declare namespace WorkspaceDiagnosticRequest {
310
+ const method: 'workspace/diagnostic';
311
+ const type: ProtocolRequestType<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport, WorkspaceDiagnosticReportPartialResult, DiagnosticServerCancellationData, void>;
312
+ const partialResult: ProgressType<WorkspaceDiagnosticReportPartialResult>;
313
+ type HandlerSignature = RequestHandler<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport | null, void>;
314
+ }
315
+ /**
316
+ * The diagnostic refresh request definition.
317
+ *
318
+ * @since 3.17.0 - proposed state
319
+ */
320
+ export declare namespace DiagnosticRefreshRequest {
321
+ const method: `workspace/diagnostic/refresh`;
322
+ const type: ProtocolRequestType0<void, void, void, void>;
323
+ type HandlerSignature = RequestHandler0<void, void>;
324
+ }
@@ -0,0 +1,72 @@
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.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = void 0;
8
+ const vscode_jsonrpc_1 = require("vscode-jsonrpc");
9
+ const Is = require("./utils/is");
10
+ const messages_1 = require("./messages");
11
+ /**
12
+ * @since 3.17.0 - proposed state
13
+ */
14
+ var DiagnosticServerCancellationData;
15
+ (function (DiagnosticServerCancellationData) {
16
+ function is(value) {
17
+ const candidate = value;
18
+ return candidate && Is.boolean(candidate.retriggerRequest);
19
+ }
20
+ DiagnosticServerCancellationData.is = is;
21
+ })(DiagnosticServerCancellationData = exports.DiagnosticServerCancellationData || (exports.DiagnosticServerCancellationData = {}));
22
+ /**
23
+ * The document diagnostic report kinds.
24
+ *
25
+ * @since 3.17.0 - proposed state
26
+ */
27
+ var DocumentDiagnosticReportKind;
28
+ (function (DocumentDiagnosticReportKind) {
29
+ /**
30
+ * A diagnostic report with a full
31
+ * set of problems.
32
+ */
33
+ DocumentDiagnosticReportKind["full"] = "full";
34
+ /**
35
+ * A report indicating that the last
36
+ * returned report is still accurate.
37
+ */
38
+ DocumentDiagnosticReportKind["unChanged"] = "unChanged";
39
+ })(DocumentDiagnosticReportKind = exports.DocumentDiagnosticReportKind || (exports.DocumentDiagnosticReportKind = {}));
40
+ /**
41
+ * The document diagnostic request definition.
42
+ *
43
+ * @since 3.17.0 - proposed state
44
+ */
45
+ var DocumentDiagnosticRequest;
46
+ (function (DocumentDiagnosticRequest) {
47
+ DocumentDiagnosticRequest.method = 'textDocument/diagnostic';
48
+ DocumentDiagnosticRequest.type = new messages_1.ProtocolRequestType(DocumentDiagnosticRequest.method);
49
+ DocumentDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
50
+ })(DocumentDiagnosticRequest = exports.DocumentDiagnosticRequest || (exports.DocumentDiagnosticRequest = {}));
51
+ /**
52
+ * The workspace diagnostic request definition.
53
+ *
54
+ * @since 3.17.0 - proposed state
55
+ */
56
+ var WorkspaceDiagnosticRequest;
57
+ (function (WorkspaceDiagnosticRequest) {
58
+ WorkspaceDiagnosticRequest.method = 'workspace/diagnostic';
59
+ WorkspaceDiagnosticRequest.type = new messages_1.ProtocolRequestType(WorkspaceDiagnosticRequest.method);
60
+ WorkspaceDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
61
+ })(WorkspaceDiagnosticRequest = exports.WorkspaceDiagnosticRequest || (exports.WorkspaceDiagnosticRequest = {}));
62
+ /**
63
+ * The diagnostic refresh request definition.
64
+ *
65
+ * @since 3.17.0 - proposed state
66
+ */
67
+ var DiagnosticRefreshRequest;
68
+ (function (DiagnosticRefreshRequest) {
69
+ DiagnosticRefreshRequest.method = `workspace/diagnostic/refresh`;
70
+ DiagnosticRefreshRequest.type = new messages_1.ProtocolRequestType0(DiagnosticRefreshRequest.method);
71
+ })(DiagnosticRefreshRequest = exports.DiagnosticRefreshRequest || (exports.DiagnosticRefreshRequest = {}));
72
+ //# sourceMappingURL=proposed.diagnostic.js.map
@@ -0,0 +1,83 @@
1
+ import { RequestHandler } from 'vscode-jsonrpc';
2
+ import { TypeHierarchyItem } from 'vscode-languageserver-types';
3
+ import { ProtocolRequestType } from './messages';
4
+ import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5
+ /**
6
+ * @since 3.17.0 - proposed state
7
+ */
8
+ export interface TypeHierarchyClientCapabilities {
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
+ /**
17
+ * Type hierarchy options used during static registration.
18
+ *
19
+ * @since 3.17.0 - proposed state
20
+ */
21
+ export interface TypeHierarchyOptions extends WorkDoneProgressOptions {
22
+ }
23
+ /**
24
+ * Type hierarchy options used during static or dynamic registration.
25
+ *
26
+ * @since 3.17.0 - proposed state
27
+ */
28
+ export interface TypeHierarchyRegistrationOptions extends TextDocumentRegistrationOptions, TypeHierarchyOptions, StaticRegistrationOptions {
29
+ }
30
+ /**
31
+ * The parameter of a `textDocument/prepareTypeHierarchy` request.
32
+ *
33
+ * @since 3.17.0 - proposed state
34
+ */
35
+ export interface TypeHierarchyPrepareParams extends TextDocumentPositionParams, WorkDoneProgressParams {
36
+ }
37
+ /**
38
+ * A request to result a `TypeHierarchyItem` in a document at a given position.
39
+ * Can be used as an input to a subtypes or supertypes type hierarchy.
40
+ *
41
+ * @since 3.17.0 - proposed state
42
+ */
43
+ export declare namespace TypeHierarchyPrepareRequest {
44
+ const method: 'textDocument/prepareTypeHierarchy';
45
+ const type: ProtocolRequestType<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, never, void, TypeHierarchyRegistrationOptions>;
46
+ type HandlerSignature = RequestHandler<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, void>;
47
+ }
48
+ /**
49
+ * The parameter of a `typeHierarchy/supertypes` request.
50
+ *
51
+ * @since 3.17.0 - proposed state
52
+ */
53
+ export interface TypeHierarchySupertypesParams extends WorkDoneProgressParams, PartialResultParams {
54
+ item: TypeHierarchyItem;
55
+ }
56
+ /**
57
+ * A request to resolve the supertypes for a given `TypeHierarchyItem`.
58
+ *
59
+ * @since 3.17.0 - proposed state
60
+ */
61
+ export declare namespace TypeHierarchySupertypesRequest {
62
+ const method: 'typeHierarchy/supertypes';
63
+ const type: ProtocolRequestType<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
64
+ type HandlerSignature = RequestHandler<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, void>;
65
+ }
66
+ /**
67
+ * The parameter of a `typeHierarchy/subtypes` request.
68
+ *
69
+ * @since 3.17.0 - proposed state
70
+ */
71
+ export interface TypeHierarchySubtypesParams extends WorkDoneProgressParams, PartialResultParams {
72
+ item: TypeHierarchyItem;
73
+ }
74
+ /**
75
+ * A request to resolve the subtypes for a given `TypeHierarchyItem`.
76
+ *
77
+ * @since 3.17.0 - proposed state
78
+ */
79
+ export declare namespace TypeHierarchySubtypesRequest {
80
+ const method: 'typeHierarchy/subtypes';
81
+ const type: ProtocolRequestType<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
82
+ type HandlerSignature = RequestHandler<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, void>;
83
+ }
@@ -0,0 +1,40 @@
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.TypeHierarchySubtypesRequest = exports.TypeHierarchySupertypesRequest = exports.TypeHierarchyPrepareRequest = void 0;
8
+ const messages_1 = require("./messages");
9
+ /**
10
+ * A request to result a `TypeHierarchyItem` in a document at a given position.
11
+ * Can be used as an input to a subtypes or supertypes type hierarchy.
12
+ *
13
+ * @since 3.17.0 - proposed state
14
+ */
15
+ var TypeHierarchyPrepareRequest;
16
+ (function (TypeHierarchyPrepareRequest) {
17
+ TypeHierarchyPrepareRequest.method = 'textDocument/prepareTypeHierarchy';
18
+ TypeHierarchyPrepareRequest.type = new messages_1.ProtocolRequestType(TypeHierarchyPrepareRequest.method);
19
+ })(TypeHierarchyPrepareRequest = exports.TypeHierarchyPrepareRequest || (exports.TypeHierarchyPrepareRequest = {}));
20
+ /**
21
+ * A request to resolve the supertypes for a given `TypeHierarchyItem`.
22
+ *
23
+ * @since 3.17.0 - proposed state
24
+ */
25
+ var TypeHierarchySupertypesRequest;
26
+ (function (TypeHierarchySupertypesRequest) {
27
+ TypeHierarchySupertypesRequest.method = 'typeHierarchy/supertypes';
28
+ TypeHierarchySupertypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySupertypesRequest.method);
29
+ })(TypeHierarchySupertypesRequest = exports.TypeHierarchySupertypesRequest || (exports.TypeHierarchySupertypesRequest = {}));
30
+ /**
31
+ * A request to resolve the subtypes for a given `TypeHierarchyItem`.
32
+ *
33
+ * @since 3.17.0 - proposed state
34
+ */
35
+ var TypeHierarchySubtypesRequest;
36
+ (function (TypeHierarchySubtypesRequest) {
37
+ TypeHierarchySubtypesRequest.method = 'typeHierarchy/subtypes';
38
+ TypeHierarchySubtypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySubtypesRequest.method);
39
+ })(TypeHierarchySubtypesRequest = exports.TypeHierarchySubtypesRequest || (exports.TypeHierarchySubtypesRequest = {}));
40
+ //# sourceMappingURL=proposed.typeHierarchy.js.map
@@ -0,0 +1,83 @@
1
+ import { RequestHandler } from 'vscode-jsonrpc';
2
+ import { CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-types';
3
+ import { ProtocolRequestType } from './messages';
4
+ import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5
+ /**
6
+ * @since 3.16.0
7
+ */
8
+ export interface CallHierarchyClientCapabilities {
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
+ /**
17
+ * Call hierarchy options used during static registration.
18
+ *
19
+ * @since 3.16.0
20
+ */
21
+ export interface CallHierarchyOptions extends WorkDoneProgressOptions {
22
+ }
23
+ /**
24
+ * Call hierarchy options used during static or dynamic registration.
25
+ *
26
+ * @since 3.16.0
27
+ */
28
+ export interface CallHierarchyRegistrationOptions extends TextDocumentRegistrationOptions, CallHierarchyOptions, StaticRegistrationOptions {
29
+ }
30
+ /**
31
+ * The parameter of a `textDocument/prepareCallHierarchy` request.
32
+ *
33
+ * @since 3.16.0
34
+ */
35
+ export interface CallHierarchyPrepareParams extends TextDocumentPositionParams, WorkDoneProgressParams {
36
+ }
37
+ /**
38
+ * A request to result a `CallHierarchyItem` in a document at a given position.
39
+ * Can be used as an input to a incoming or outgoing call hierarchy.
40
+ *
41
+ * @since 3.16.0
42
+ */
43
+ export declare namespace CallHierarchyPrepareRequest {
44
+ const method: 'textDocument/prepareCallHierarchy';
45
+ const type: ProtocolRequestType<CallHierarchyPrepareParams, CallHierarchyItem[] | null, never, void, CallHierarchyRegistrationOptions>;
46
+ type HandlerSignature = RequestHandler<CallHierarchyPrepareParams, CallHierarchyItem[] | null, void>;
47
+ }
48
+ /**
49
+ * The parameter of a `callHierarchy/incomingCalls` request.
50
+ *
51
+ * @since 3.16.0
52
+ */
53
+ export interface CallHierarchyIncomingCallsParams extends WorkDoneProgressParams, PartialResultParams {
54
+ item: CallHierarchyItem;
55
+ }
56
+ /**
57
+ * A request to resolve the incoming calls for a given `CallHierarchyItem`.
58
+ *
59
+ * @since 3.16.0
60
+ */
61
+ export declare namespace CallHierarchyIncomingCallsRequest {
62
+ const method: 'callHierarchy/incomingCalls';
63
+ const type: ProtocolRequestType<CallHierarchyIncomingCallsParams, CallHierarchyIncomingCall[] | null, CallHierarchyIncomingCall[], void, void>;
64
+ type HandlerSignature = RequestHandler<CallHierarchyIncomingCallsParams, CallHierarchyIncomingCall[] | null, void>;
65
+ }
66
+ /**
67
+ * The parameter of a `callHierarchy/outgoingCalls` request.
68
+ *
69
+ * @since 3.16.0
70
+ */
71
+ export interface CallHierarchyOutgoingCallsParams extends WorkDoneProgressParams, PartialResultParams {
72
+ item: CallHierarchyItem;
73
+ }
74
+ /**
75
+ * A request to resolve the outgoing calls for a given `CallHierarchyItem`.
76
+ *
77
+ * @since 3.16.0
78
+ */
79
+ export declare namespace CallHierarchyOutgoingCallsRequest {
80
+ const method: 'callHierarchy/outgoingCalls';
81
+ const type: ProtocolRequestType<CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCall[] | null, CallHierarchyOutgoingCall[], void, void>;
82
+ type HandlerSignature = RequestHandler<CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCall[] | null, void>;
83
+ }
@@ -0,0 +1,40 @@
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.CallHierarchyOutgoingCallsRequest = exports.CallHierarchyIncomingCallsRequest = exports.CallHierarchyPrepareRequest = void 0;
8
+ const messages_1 = require("./messages");
9
+ /**
10
+ * A request to result a `CallHierarchyItem` in a document at a given position.
11
+ * Can be used as an input to a incoming or outgoing call hierarchy.
12
+ *
13
+ * @since 3.16.0
14
+ */
15
+ var CallHierarchyPrepareRequest;
16
+ (function (CallHierarchyPrepareRequest) {
17
+ CallHierarchyPrepareRequest.method = 'textDocument/prepareCallHierarchy';
18
+ CallHierarchyPrepareRequest.type = new messages_1.ProtocolRequestType(CallHierarchyPrepareRequest.method);
19
+ })(CallHierarchyPrepareRequest = exports.CallHierarchyPrepareRequest || (exports.CallHierarchyPrepareRequest = {}));
20
+ /**
21
+ * A request to resolve the incoming calls for a given `CallHierarchyItem`.
22
+ *
23
+ * @since 3.16.0
24
+ */
25
+ var CallHierarchyIncomingCallsRequest;
26
+ (function (CallHierarchyIncomingCallsRequest) {
27
+ CallHierarchyIncomingCallsRequest.method = 'callHierarchy/incomingCalls';
28
+ CallHierarchyIncomingCallsRequest.type = new messages_1.ProtocolRequestType(CallHierarchyIncomingCallsRequest.method);
29
+ })(CallHierarchyIncomingCallsRequest = exports.CallHierarchyIncomingCallsRequest || (exports.CallHierarchyIncomingCallsRequest = {}));
30
+ /**
31
+ * A request to resolve the outgoing calls for a given `CallHierarchyItem`.
32
+ *
33
+ * @since 3.16.0
34
+ */
35
+ var CallHierarchyOutgoingCallsRequest;
36
+ (function (CallHierarchyOutgoingCallsRequest) {
37
+ CallHierarchyOutgoingCallsRequest.method = 'callHierarchy/outgoingCalls';
38
+ CallHierarchyOutgoingCallsRequest.type = new messages_1.ProtocolRequestType(CallHierarchyOutgoingCallsRequest.method);
39
+ })(CallHierarchyOutgoingCallsRequest = exports.CallHierarchyOutgoingCallsRequest || (exports.CallHierarchyOutgoingCallsRequest = {}));
40
+ //# sourceMappingURL=protocol.callHierarchy.js.map