vscode-languageserver-protocol 3.17.0-next.15 → 3.17.0-next.18
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.
- package/lib/common/api.d.ts +0 -69
- package/lib/common/api.js +1 -26
- package/lib/common/connection.d.ts +26 -2
- package/lib/common/protocol.callHierarchy.d.ts +1 -1
- package/lib/common/protocol.colorProvider.d.ts +1 -1
- package/lib/common/protocol.configuration.d.ts +1 -14
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +326 -105
- package/lib/common/protocol.declaration.d.ts +2 -2
- package/lib/common/protocol.declaration.js +2 -2
- package/lib/common/{proposed.diagnostic.d.ts → protocol.diagnostic.d.ts} +79 -38
- package/lib/common/{proposed.diagnostic.js → protocol.diagnostic.js} +13 -8
- package/lib/common/protocol.foldingRange.d.ts +20 -26
- package/lib/common/protocol.foldingRange.js +1 -19
- package/lib/common/protocol.implementation.d.ts +2 -2
- package/lib/common/protocol.implementation.js +2 -2
- package/lib/common/protocol.inlayHint.d.ts +115 -0
- package/lib/common/protocol.inlayHint.js +44 -0
- package/lib/common/protocol.inlineValue.d.ts +91 -0
- package/lib/common/protocol.inlineValue.js +31 -0
- package/lib/common/protocol.js +88 -15
- package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
- package/lib/common/protocol.moniker.d.ts +13 -11
- package/lib/common/protocol.moniker.js +8 -8
- package/lib/common/{proposed.notebooks.d.ts → protocol.notebook.d.ts} +57 -53
- package/lib/common/{proposed.notebooks.js → protocol.notebook.js} +9 -5
- package/lib/common/protocol.progress.d.ts +2 -14
- package/lib/common/protocol.progress.js +4 -2
- package/lib/common/protocol.selectionRange.d.ts +2 -2
- package/lib/common/protocol.semanticTokens.d.ts +1 -1
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/common/{proposed.typeHierarchy.d.ts → protocol.typeHierarchy.d.ts} +19 -10
- package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +7 -4
- package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -41
- package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
- package/metaModel.schema.json +686 -0
- package/package.json +3 -3
- package/lib/common/proposed.inlineValue.d.ts +0 -84
- package/lib/common/proposed.inlineValue.js +0 -29
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { URI, integer, DocumentUri, uinteger, LSPObject, TextDocumentItem, TextDocumentIdentifier, VersionedTextDocumentIdentifier } from 'vscode-languageserver-types';
|
|
2
2
|
import { ProtocolNotificationType, RegistrationType } from './messages';
|
|
3
|
-
import { StaticRegistrationOptions, NotebookDocumentFilter, TextDocumentContentChangeEvent } from './protocol';
|
|
3
|
+
import type { StaticRegistrationOptions, NotebookDocumentFilter, TextDocumentContentChangeEvent } from './protocol';
|
|
4
4
|
/**
|
|
5
5
|
* Notebook specific client capabilities.
|
|
6
6
|
*
|
|
7
|
-
* @since 3.17.0
|
|
7
|
+
* @since 3.17.0
|
|
8
|
+
* @proposed
|
|
8
9
|
*/
|
|
9
10
|
export declare type NotebookDocumentSyncClientCapabilities = {
|
|
10
11
|
/**
|
|
@@ -18,21 +19,12 @@ export declare type NotebookDocumentSyncClientCapabilities = {
|
|
|
18
19
|
* The client supports sending execution summary data per cell.
|
|
19
20
|
*/
|
|
20
21
|
executionSummarySupport?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* The client has support for notebook controllers and might
|
|
23
|
-
* send `DidSelectNotebookController` notifications.
|
|
24
|
-
*/
|
|
25
|
-
notebookControllerSupport?: boolean;
|
|
26
|
-
};
|
|
27
|
-
export declare type $NotebookDocumentClientCapabilities = {
|
|
28
|
-
notebookDocument?: {
|
|
29
|
-
synchronization: NotebookDocumentSyncClientCapabilities;
|
|
30
|
-
};
|
|
31
22
|
};
|
|
32
23
|
/**
|
|
33
24
|
* A notebook cell kind.
|
|
34
25
|
*
|
|
35
|
-
* @since 3.17.0
|
|
26
|
+
* @since 3.17.0
|
|
27
|
+
* @proposed
|
|
36
28
|
*/
|
|
37
29
|
export declare namespace NotebookCellKind {
|
|
38
30
|
/**
|
|
@@ -71,7 +63,8 @@ export declare namespace ExecutionSummary {
|
|
|
71
63
|
* cells and can therefore be used to uniquely identify a
|
|
72
64
|
* notebook cell or the cell's text document.
|
|
73
65
|
*
|
|
74
|
-
* @since 3.17.0
|
|
66
|
+
* @since 3.17.0
|
|
67
|
+
* @proposed
|
|
75
68
|
*/
|
|
76
69
|
export declare type NotebookCell = {
|
|
77
70
|
/**
|
|
@@ -101,7 +94,8 @@ export declare namespace NotebookCell {
|
|
|
101
94
|
/**
|
|
102
95
|
* A notebook document.
|
|
103
96
|
*
|
|
104
|
-
* @since 3.17.0
|
|
97
|
+
* @since 3.17.0
|
|
98
|
+
* @proposed
|
|
105
99
|
*/
|
|
106
100
|
export declare type NotebookDocument = {
|
|
107
101
|
/**
|
|
@@ -134,7 +128,8 @@ export declare namespace NotebookDocument {
|
|
|
134
128
|
/**
|
|
135
129
|
* A literal to identify a notebook document in the client.
|
|
136
130
|
*
|
|
137
|
-
* @since 3.17.0
|
|
131
|
+
* @since 3.17.0
|
|
132
|
+
* @proposed
|
|
138
133
|
*/
|
|
139
134
|
export declare type NotebookDocumentIdentifier = {
|
|
140
135
|
/**
|
|
@@ -145,7 +140,8 @@ export declare type NotebookDocumentIdentifier = {
|
|
|
145
140
|
/**
|
|
146
141
|
* A versioned notebook document identifier.
|
|
147
142
|
*
|
|
148
|
-
* @since 3.17.0
|
|
143
|
+
* @since 3.17.0
|
|
144
|
+
* @proposed
|
|
149
145
|
*/
|
|
150
146
|
export declare type VersionedNotebookDocumentIdentifier = {
|
|
151
147
|
/**
|
|
@@ -170,39 +166,40 @@ export declare type VersionedNotebookDocumentIdentifier = {
|
|
|
170
166
|
* document that contain at least one matching
|
|
171
167
|
* cell will be synced.
|
|
172
168
|
*
|
|
173
|
-
* @since 3.17.0
|
|
169
|
+
* @since 3.17.0
|
|
170
|
+
* @proposed
|
|
174
171
|
*/
|
|
175
172
|
export declare type NotebookDocumentSyncOptions = {
|
|
176
173
|
/**
|
|
177
|
-
* The
|
|
174
|
+
* The notebooks to be synced
|
|
178
175
|
*/
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
notebookSelector: ({
|
|
177
|
+
/**
|
|
178
|
+
* The notebook to be synced If a string
|
|
179
|
+
* value is provided it matches against the
|
|
180
|
+
* notebook type. '*' matches every notebook.
|
|
181
|
+
*/
|
|
182
|
+
notebook: string | NotebookDocumentFilter;
|
|
183
|
+
/**
|
|
184
|
+
* The cells of the matching notebook to be synced.
|
|
185
|
+
*/
|
|
186
|
+
cells?: {
|
|
184
187
|
language: string;
|
|
185
188
|
}[];
|
|
186
189
|
} | {
|
|
187
|
-
/**
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
/**
|
|
191
|
+
* The notebook to be synced If a string
|
|
192
|
+
* value is provided it matches against the
|
|
193
|
+
* notebook type. '*' matches every notebook.
|
|
194
|
+
*/
|
|
195
|
+
notebook?: string | NotebookDocumentFilter;
|
|
196
|
+
/**
|
|
197
|
+
* The cells of the matching notebook to be synced.
|
|
198
|
+
*/
|
|
199
|
+
cells: {
|
|
191
200
|
language: string;
|
|
192
201
|
}[];
|
|
193
202
|
})[];
|
|
194
|
-
/**
|
|
195
|
-
* Determines how the notebook is synchronized.
|
|
196
|
-
*
|
|
197
|
-
* If set to 'notebook' the notebook document,
|
|
198
|
-
* its meta data, cell structure and the cell's
|
|
199
|
-
* text documents are synchronized.
|
|
200
|
-
*
|
|
201
|
-
* If set to 'cellContent' only the cell content
|
|
202
|
-
* is synchronized using the available
|
|
203
|
-
* `textDocument/did*` notifications.
|
|
204
|
-
*/
|
|
205
|
-
mode: 'notebook' | 'cellContent';
|
|
206
203
|
/**
|
|
207
204
|
* Whether save notification should be forwarded to
|
|
208
205
|
* the server. Will only be honored if mode === `notebook`.
|
|
@@ -212,12 +209,10 @@ export declare type NotebookDocumentSyncOptions = {
|
|
|
212
209
|
/**
|
|
213
210
|
* Registration options specific to a notebook.
|
|
214
211
|
*
|
|
215
|
-
* @since 3.17.0
|
|
212
|
+
* @since 3.17.0
|
|
213
|
+
* @proposed
|
|
216
214
|
*/
|
|
217
215
|
export declare type NotebookDocumentSyncRegistrationOptions = NotebookDocumentSyncOptions & StaticRegistrationOptions;
|
|
218
|
-
export interface $NotebookDocumentSyncServerCapabilities {
|
|
219
|
-
notebookDocumentSync?: NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions;
|
|
220
|
-
}
|
|
221
216
|
export declare namespace NotebookDocumentSyncRegistrationType {
|
|
222
217
|
const method: 'notebookDocument/sync';
|
|
223
218
|
const type: RegistrationType<NotebookDocumentSyncRegistrationOptions>;
|
|
@@ -225,7 +220,8 @@ export declare namespace NotebookDocumentSyncRegistrationType {
|
|
|
225
220
|
/**
|
|
226
221
|
* The params sent in a open notebook document notification.
|
|
227
222
|
*
|
|
228
|
-
* @since 3.17.0
|
|
223
|
+
* @since 3.17.0
|
|
224
|
+
* @proposed
|
|
229
225
|
*/
|
|
230
226
|
export declare type DidOpenNotebookDocumentParams = {
|
|
231
227
|
/**
|
|
@@ -241,7 +237,8 @@ export declare type DidOpenNotebookDocumentParams = {
|
|
|
241
237
|
/**
|
|
242
238
|
* A notification sent when a notebook opens.
|
|
243
239
|
*
|
|
244
|
-
* @since 3.17.0
|
|
240
|
+
* @since 3.17.0
|
|
241
|
+
* @proposed
|
|
245
242
|
*/
|
|
246
243
|
export declare namespace DidOpenNotebookDocumentNotification {
|
|
247
244
|
const method: 'notebookDocument/didOpen';
|
|
@@ -251,7 +248,8 @@ export declare namespace DidOpenNotebookDocumentNotification {
|
|
|
251
248
|
* A change describing how to move a `NotebookCell`
|
|
252
249
|
* array from state S to S'.
|
|
253
250
|
*
|
|
254
|
-
* @since 3.17.0
|
|
251
|
+
* @since 3.17.0
|
|
252
|
+
* @proposed
|
|
255
253
|
*/
|
|
256
254
|
export declare type NotebookCellArrayChange = {
|
|
257
255
|
/**
|
|
@@ -274,7 +272,8 @@ export declare namespace NotebookCellArrayChange {
|
|
|
274
272
|
/**
|
|
275
273
|
* A change event for a notebook document.
|
|
276
274
|
*
|
|
277
|
-
* @since 3.17.0
|
|
275
|
+
* @since 3.17.0
|
|
276
|
+
* @proposed
|
|
278
277
|
*/
|
|
279
278
|
export declare type NotebookDocumentChangeEvent = {
|
|
280
279
|
/**
|
|
@@ -320,7 +319,8 @@ export declare type NotebookDocumentChangeEvent = {
|
|
|
320
319
|
/**
|
|
321
320
|
* The params sent in a change notebook document notification.
|
|
322
321
|
*
|
|
323
|
-
* @since 3.17.0
|
|
322
|
+
* @since 3.17.0
|
|
323
|
+
* @proposed
|
|
324
324
|
*/
|
|
325
325
|
export declare type DidChangeNotebookDocumentParams = {
|
|
326
326
|
/**
|
|
@@ -354,7 +354,8 @@ export declare namespace DidChangeNotebookDocumentNotification {
|
|
|
354
354
|
/**
|
|
355
355
|
* The params sent in a save notebook document notification.
|
|
356
356
|
*
|
|
357
|
-
* @since 3.17.0
|
|
357
|
+
* @since 3.17.0
|
|
358
|
+
* @proposed
|
|
358
359
|
*/
|
|
359
360
|
export declare type DidSaveNotebookDocumentParams = {
|
|
360
361
|
/**
|
|
@@ -365,7 +366,8 @@ export declare type DidSaveNotebookDocumentParams = {
|
|
|
365
366
|
/**
|
|
366
367
|
* A notification sent when a notebook document is saved.
|
|
367
368
|
*
|
|
368
|
-
* @since 3.17.0
|
|
369
|
+
* @since 3.17.0
|
|
370
|
+
* @proposed
|
|
369
371
|
*/
|
|
370
372
|
export declare namespace DidSaveNotebookDocumentNotification {
|
|
371
373
|
const method: 'notebookDocument/didSave';
|
|
@@ -374,7 +376,8 @@ export declare namespace DidSaveNotebookDocumentNotification {
|
|
|
374
376
|
/**
|
|
375
377
|
* The params sent in a close notebook document notification.
|
|
376
378
|
*
|
|
377
|
-
* @since 3.17.0
|
|
379
|
+
* @since 3.17.0
|
|
380
|
+
* @proposed
|
|
378
381
|
*/
|
|
379
382
|
export declare type DidCloseNotebookDocumentParams = {
|
|
380
383
|
/**
|
|
@@ -390,7 +393,8 @@ export declare type DidCloseNotebookDocumentParams = {
|
|
|
390
393
|
/**
|
|
391
394
|
* A notification sent when a notebook closes.
|
|
392
395
|
*
|
|
393
|
-
* @since 3.17.0
|
|
396
|
+
* @since 3.17.0
|
|
397
|
+
* @proposed
|
|
394
398
|
*/
|
|
395
399
|
export declare namespace DidCloseNotebookDocumentNotification {
|
|
396
400
|
const method: 'notebookDocument/didClose';
|
|
@@ -11,7 +11,8 @@ const messages_1 = require("./messages");
|
|
|
11
11
|
/**
|
|
12
12
|
* A notebook cell kind.
|
|
13
13
|
*
|
|
14
|
-
* @since 3.17.0
|
|
14
|
+
* @since 3.17.0
|
|
15
|
+
* @proposed
|
|
15
16
|
*/
|
|
16
17
|
var NotebookCellKind;
|
|
17
18
|
(function (NotebookCellKind) {
|
|
@@ -155,7 +156,8 @@ var NotebookDocumentSyncRegistrationType;
|
|
|
155
156
|
/**
|
|
156
157
|
* A notification sent when a notebook opens.
|
|
157
158
|
*
|
|
158
|
-
* @since 3.17.0
|
|
159
|
+
* @since 3.17.0
|
|
160
|
+
* @proposed
|
|
159
161
|
*/
|
|
160
162
|
var DidOpenNotebookDocumentNotification;
|
|
161
163
|
(function (DidOpenNotebookDocumentNotification) {
|
|
@@ -186,7 +188,8 @@ var DidChangeNotebookDocumentNotification;
|
|
|
186
188
|
/**
|
|
187
189
|
* A notification sent when a notebook document is saved.
|
|
188
190
|
*
|
|
189
|
-
* @since 3.17.0
|
|
191
|
+
* @since 3.17.0
|
|
192
|
+
* @proposed
|
|
190
193
|
*/
|
|
191
194
|
var DidSaveNotebookDocumentNotification;
|
|
192
195
|
(function (DidSaveNotebookDocumentNotification) {
|
|
@@ -196,11 +199,12 @@ var DidSaveNotebookDocumentNotification;
|
|
|
196
199
|
/**
|
|
197
200
|
* A notification sent when a notebook closes.
|
|
198
201
|
*
|
|
199
|
-
* @since 3.17.0
|
|
202
|
+
* @since 3.17.0
|
|
203
|
+
* @proposed
|
|
200
204
|
*/
|
|
201
205
|
var DidCloseNotebookDocumentNotification;
|
|
202
206
|
(function (DidCloseNotebookDocumentNotification) {
|
|
203
207
|
DidCloseNotebookDocumentNotification.method = 'notebookDocument/didClose';
|
|
204
208
|
DidCloseNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseNotebookDocumentNotification.method);
|
|
205
209
|
})(DidCloseNotebookDocumentNotification = exports.DidCloseNotebookDocumentNotification || (exports.DidCloseNotebookDocumentNotification = {}));
|
|
206
|
-
//# sourceMappingURL=
|
|
210
|
+
//# sourceMappingURL=protocol.notebook.js.map
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import { NotificationHandler, RequestHandler, ProgressType, ProgressToken } from 'vscode-jsonrpc';
|
|
2
2
|
import { uinteger } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType, ProtocolNotificationType } from './messages';
|
|
4
|
-
export interface WorkDoneProgressClientCapabilities {
|
|
5
|
-
/**
|
|
6
|
-
* Window specific client capabilities.
|
|
7
|
-
*/
|
|
8
|
-
window?: {
|
|
9
|
-
/**
|
|
10
|
-
* Whether client supports server initiated progress using the
|
|
11
|
-
* `window/workDoneProgress/create` request.
|
|
12
|
-
*
|
|
13
|
-
* Since 3.15.0
|
|
14
|
-
*/
|
|
15
|
-
workDoneProgress?: boolean;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
4
|
export interface WorkDoneProgressBegin {
|
|
19
5
|
kind: 'begin';
|
|
20
6
|
/**
|
|
@@ -98,6 +84,7 @@ export interface WorkDoneProgressCreateParams {
|
|
|
98
84
|
* reporting from the server.
|
|
99
85
|
*/
|
|
100
86
|
export declare namespace WorkDoneProgressCreateRequest {
|
|
87
|
+
const method: 'window/workDoneProgress/create';
|
|
101
88
|
const type: ProtocolRequestType<WorkDoneProgressCreateParams, void, never, void, void>;
|
|
102
89
|
type HandlerSignature = RequestHandler<WorkDoneProgressCreateParams, void, void>;
|
|
103
90
|
}
|
|
@@ -112,6 +99,7 @@ export interface WorkDoneProgressCancelParams {
|
|
|
112
99
|
* initiated on the server side.
|
|
113
100
|
*/
|
|
114
101
|
export declare namespace WorkDoneProgressCancelNotification {
|
|
102
|
+
const method: 'window/workDoneProgress/cancel';
|
|
115
103
|
const type: ProtocolNotificationType<WorkDoneProgressCancelParams, void>;
|
|
116
104
|
type HandlerSignature = NotificationHandler<WorkDoneProgressCancelParams>;
|
|
117
105
|
}
|
|
@@ -21,7 +21,8 @@ var WorkDoneProgress;
|
|
|
21
21
|
*/
|
|
22
22
|
var WorkDoneProgressCreateRequest;
|
|
23
23
|
(function (WorkDoneProgressCreateRequest) {
|
|
24
|
-
WorkDoneProgressCreateRequest.
|
|
24
|
+
WorkDoneProgressCreateRequest.method = 'window/workDoneProgress/create';
|
|
25
|
+
WorkDoneProgressCreateRequest.type = new messages_1.ProtocolRequestType(WorkDoneProgressCreateRequest.method);
|
|
25
26
|
})(WorkDoneProgressCreateRequest = exports.WorkDoneProgressCreateRequest || (exports.WorkDoneProgressCreateRequest = {}));
|
|
26
27
|
/**
|
|
27
28
|
* The `window/workDoneProgress/cancel` notification is sent from the client to the server to cancel a progress
|
|
@@ -29,6 +30,7 @@ var WorkDoneProgressCreateRequest;
|
|
|
29
30
|
*/
|
|
30
31
|
var WorkDoneProgressCancelNotification;
|
|
31
32
|
(function (WorkDoneProgressCancelNotification) {
|
|
32
|
-
WorkDoneProgressCancelNotification.
|
|
33
|
+
WorkDoneProgressCancelNotification.method = 'window/workDoneProgress/cancel';
|
|
34
|
+
WorkDoneProgressCancelNotification.type = new messages_1.ProtocolNotificationType(WorkDoneProgressCancelNotification.method);
|
|
33
35
|
})(WorkDoneProgressCancelNotification = exports.WorkDoneProgressCancelNotification || (exports.WorkDoneProgressCancelNotification = {}));
|
|
34
36
|
//# sourceMappingURL=protocol.progress.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, Position, SelectionRange } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams, PartialResultParams } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams, PartialResultParams } from './protocol';
|
|
5
5
|
export interface SelectionRangeClientCapabilities {
|
|
6
6
|
/**
|
|
7
7
|
* Whether implementation supports dynamic registration for selection range providers. If this is set to `true`
|
|
@@ -35,6 +35,6 @@ export interface SelectionRangeParams extends WorkDoneProgressParams, PartialRes
|
|
|
35
35
|
*/
|
|
36
36
|
export declare namespace SelectionRangeRequest {
|
|
37
37
|
const method: 'textDocument/selectionRange';
|
|
38
|
-
const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[],
|
|
38
|
+
const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[], void, SelectionRangeRegistrationOptions>;
|
|
39
39
|
type HandlerSignature = RequestHandler<SelectionRangeParams, SelectionRange[] | null, void>;
|
|
40
40
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TextDocumentIdentifier, Range, uinteger, SemanticTokensEdit, SemanticTokensLegend, SemanticTokens, SemanticTokensDelta } from 'vscode-languageserver-types';
|
|
2
2
|
import { RequestHandler0, RequestHandler } from 'vscode-jsonrpc';
|
|
3
3
|
import { ProtocolRequestType, ProtocolRequestType0, RegistrationType } from './messages';
|
|
4
|
-
import { PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
|
|
4
|
+
import type { PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.16.0
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Definition, DefinitionLink, LocationLink, Location } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* Since 3.6.0
|
|
7
7
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { TypeHierarchyItem } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
|
-
* @since 3.17.0
|
|
6
|
+
* @since 3.17.0
|
|
7
|
+
* @proposed
|
|
7
8
|
*/
|
|
8
9
|
export declare type TypeHierarchyClientCapabilities = {
|
|
9
10
|
/**
|
|
@@ -16,26 +17,30 @@ export declare type TypeHierarchyClientCapabilities = {
|
|
|
16
17
|
/**
|
|
17
18
|
* Type hierarchy options used during static registration.
|
|
18
19
|
*
|
|
19
|
-
* @since 3.17.0
|
|
20
|
+
* @since 3.17.0
|
|
21
|
+
* @proposed
|
|
20
22
|
*/
|
|
21
23
|
export declare type TypeHierarchyOptions = WorkDoneProgressOptions;
|
|
22
24
|
/**
|
|
23
25
|
* Type hierarchy options used during static or dynamic registration.
|
|
24
26
|
*
|
|
25
|
-
* @since 3.17.0
|
|
27
|
+
* @since 3.17.0
|
|
28
|
+
* @proposed
|
|
26
29
|
*/
|
|
27
30
|
export declare type TypeHierarchyRegistrationOptions = TextDocumentRegistrationOptions & TypeHierarchyOptions & StaticRegistrationOptions;
|
|
28
31
|
/**
|
|
29
32
|
* The parameter of a `textDocument/prepareTypeHierarchy` request.
|
|
30
33
|
*
|
|
31
|
-
* @since 3.17.0
|
|
34
|
+
* @since 3.17.0
|
|
35
|
+
* @proposed
|
|
32
36
|
*/
|
|
33
37
|
export declare type TypeHierarchyPrepareParams = TextDocumentPositionParams & WorkDoneProgressParams;
|
|
34
38
|
/**
|
|
35
39
|
* A request to result a `TypeHierarchyItem` in a document at a given position.
|
|
36
40
|
* Can be used as an input to a subtypes or supertypes type hierarchy.
|
|
37
41
|
*
|
|
38
|
-
* @since 3.17.0
|
|
42
|
+
* @since 3.17.0
|
|
43
|
+
* @proposed
|
|
39
44
|
*/
|
|
40
45
|
export declare namespace TypeHierarchyPrepareRequest {
|
|
41
46
|
const method: 'textDocument/prepareTypeHierarchy';
|
|
@@ -45,7 +50,8 @@ export declare namespace TypeHierarchyPrepareRequest {
|
|
|
45
50
|
/**
|
|
46
51
|
* The parameter of a `typeHierarchy/supertypes` request.
|
|
47
52
|
*
|
|
48
|
-
* @since 3.17.0
|
|
53
|
+
* @since 3.17.0
|
|
54
|
+
* @proposed
|
|
49
55
|
*/
|
|
50
56
|
export declare type TypeHierarchySupertypesParams = WorkDoneProgressParams & PartialResultParams & {
|
|
51
57
|
item: TypeHierarchyItem;
|
|
@@ -53,7 +59,8 @@ export declare type TypeHierarchySupertypesParams = WorkDoneProgressParams & Par
|
|
|
53
59
|
/**
|
|
54
60
|
* A request to resolve the supertypes for a given `TypeHierarchyItem`.
|
|
55
61
|
*
|
|
56
|
-
* @since 3.17.0
|
|
62
|
+
* @since 3.17.0
|
|
63
|
+
* @proposed
|
|
57
64
|
*/
|
|
58
65
|
export declare namespace TypeHierarchySupertypesRequest {
|
|
59
66
|
const method: 'typeHierarchy/supertypes';
|
|
@@ -63,7 +70,8 @@ export declare namespace TypeHierarchySupertypesRequest {
|
|
|
63
70
|
/**
|
|
64
71
|
* The parameter of a `typeHierarchy/subtypes` request.
|
|
65
72
|
*
|
|
66
|
-
* @since 3.17.0
|
|
73
|
+
* @since 3.17.0
|
|
74
|
+
* @proposed
|
|
67
75
|
*/
|
|
68
76
|
export declare type TypeHierarchySubtypesParams = WorkDoneProgressParams & PartialResultParams & {
|
|
69
77
|
item: TypeHierarchyItem;
|
|
@@ -71,7 +79,8 @@ export declare type TypeHierarchySubtypesParams = WorkDoneProgressParams & Parti
|
|
|
71
79
|
/**
|
|
72
80
|
* A request to resolve the subtypes for a given `TypeHierarchyItem`.
|
|
73
81
|
*
|
|
74
|
-
* @since 3.17.0
|
|
82
|
+
* @since 3.17.0
|
|
83
|
+
* @proposed
|
|
75
84
|
*/
|
|
76
85
|
export declare namespace TypeHierarchySubtypesRequest {
|
|
77
86
|
const method: 'typeHierarchy/subtypes';
|
|
@@ -10,7 +10,8 @@ const messages_1 = require("./messages");
|
|
|
10
10
|
* A request to result a `TypeHierarchyItem` in a document at a given position.
|
|
11
11
|
* Can be used as an input to a subtypes or supertypes type hierarchy.
|
|
12
12
|
*
|
|
13
|
-
* @since 3.17.0
|
|
13
|
+
* @since 3.17.0
|
|
14
|
+
* @proposed
|
|
14
15
|
*/
|
|
15
16
|
var TypeHierarchyPrepareRequest;
|
|
16
17
|
(function (TypeHierarchyPrepareRequest) {
|
|
@@ -20,7 +21,8 @@ var TypeHierarchyPrepareRequest;
|
|
|
20
21
|
/**
|
|
21
22
|
* A request to resolve the supertypes for a given `TypeHierarchyItem`.
|
|
22
23
|
*
|
|
23
|
-
* @since 3.17.0
|
|
24
|
+
* @since 3.17.0
|
|
25
|
+
* @proposed
|
|
24
26
|
*/
|
|
25
27
|
var TypeHierarchySupertypesRequest;
|
|
26
28
|
(function (TypeHierarchySupertypesRequest) {
|
|
@@ -30,11 +32,12 @@ var TypeHierarchySupertypesRequest;
|
|
|
30
32
|
/**
|
|
31
33
|
* A request to resolve the subtypes for a given `TypeHierarchyItem`.
|
|
32
34
|
*
|
|
33
|
-
* @since 3.17.0
|
|
35
|
+
* @since 3.17.0
|
|
36
|
+
* @proposed
|
|
34
37
|
*/
|
|
35
38
|
var TypeHierarchySubtypesRequest;
|
|
36
39
|
(function (TypeHierarchySubtypesRequest) {
|
|
37
40
|
TypeHierarchySubtypesRequest.method = 'typeHierarchy/subtypes';
|
|
38
41
|
TypeHierarchySubtypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySubtypesRequest.method);
|
|
39
42
|
})(TypeHierarchySubtypesRequest = exports.TypeHierarchySubtypesRequest || (exports.TypeHierarchySubtypesRequest = {}));
|
|
40
|
-
//# sourceMappingURL=
|
|
43
|
+
//# sourceMappingURL=protocol.typeHierarchy.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WorkspaceFolder } from 'vscode-languageserver-types';
|
|
1
2
|
import { RequestHandler0, NotificationHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
2
3
|
import { ProtocolRequestType0, ProtocolNotificationType } from './messages';
|
|
3
4
|
export interface WorkspaceFoldersInitializeParams {
|
|
@@ -6,52 +7,21 @@ export interface WorkspaceFoldersInitializeParams {
|
|
|
6
7
|
*/
|
|
7
8
|
workspaceFolders: WorkspaceFolder[] | null;
|
|
8
9
|
}
|
|
9
|
-
export interface WorkspaceFoldersClientCapabilities {
|
|
10
|
-
/**
|
|
11
|
-
* The workspace client capabilities
|
|
12
|
-
*/
|
|
13
|
-
workspace?: {
|
|
14
|
-
/**
|
|
15
|
-
* The client has support for workspace folders
|
|
16
|
-
*
|
|
17
|
-
* @since 3.6.0
|
|
18
|
-
*/
|
|
19
|
-
workspaceFolders?: boolean;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
10
|
export interface WorkspaceFoldersServerCapabilities {
|
|
23
11
|
/**
|
|
24
|
-
* The workspace
|
|
25
|
-
*/
|
|
26
|
-
workspace?: {
|
|
27
|
-
workspaceFolders?: {
|
|
28
|
-
/**
|
|
29
|
-
* The Server has support for workspace folders
|
|
30
|
-
*/
|
|
31
|
-
supported?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Whether the server wants to receive workspace folder
|
|
34
|
-
* change notifications.
|
|
35
|
-
*
|
|
36
|
-
* If a strings is provided the string is treated as a ID
|
|
37
|
-
* under which the notification is registered on the client
|
|
38
|
-
* side. The ID can be used to unregister for these events
|
|
39
|
-
* using the `client/unregisterCapability` request.
|
|
40
|
-
*/
|
|
41
|
-
changeNotifications?: string | boolean;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export interface WorkspaceFolder {
|
|
46
|
-
/**
|
|
47
|
-
* The associated URI for this workspace folder.
|
|
12
|
+
* The Server has support for workspace folders
|
|
48
13
|
*/
|
|
49
|
-
|
|
14
|
+
supported?: boolean;
|
|
50
15
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
16
|
+
* Whether the server wants to receive workspace folder
|
|
17
|
+
* change notifications.
|
|
18
|
+
*
|
|
19
|
+
* If a strings is provided the string is treated as a ID
|
|
20
|
+
* under which the notification is registered on the client
|
|
21
|
+
* side. The ID can be used to unregister for these events
|
|
22
|
+
* using the `client/unregisterCapability` request.
|
|
53
23
|
*/
|
|
54
|
-
|
|
24
|
+
changeNotifications?: string | boolean;
|
|
55
25
|
}
|
|
56
26
|
/**
|
|
57
27
|
* The `workspace/workspaceFolders` is sent from the server to the client to fetch the open workspace folders.
|
|
@@ -21,4 +21,4 @@ var DidChangeWorkspaceFoldersNotification;
|
|
|
21
21
|
(function (DidChangeWorkspaceFoldersNotification) {
|
|
22
22
|
DidChangeWorkspaceFoldersNotification.type = new messages_1.ProtocolNotificationType('workspace/didChangeWorkspaceFolders');
|
|
23
23
|
})(DidChangeWorkspaceFoldersNotification = exports.DidChangeWorkspaceFoldersNotification || (exports.DidChangeWorkspaceFoldersNotification = {}));
|
|
24
|
-
//# sourceMappingURL=protocol.
|
|
24
|
+
//# sourceMappingURL=protocol.workspaceFolder.js.map
|