vscode-languageserver-protocol 3.17.2-next.5 → 3.17.3-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/lib/common/messages.d.ts +5 -0
  2. package/lib/common/messages.js +7 -1
  3. package/lib/common/protocol.$.js +12 -4
  4. package/lib/common/protocol.callHierarchy.d.ts +4 -1
  5. package/lib/common/protocol.callHierarchy.js +3 -0
  6. package/lib/common/protocol.colorProvider.d.ts +4 -1
  7. package/lib/common/protocol.colorProvider.js +4 -1
  8. package/lib/common/protocol.configuration.d.ts +3 -1
  9. package/lib/common/protocol.configuration.js +3 -1
  10. package/lib/common/protocol.d.ts +61 -3
  11. package/lib/common/protocol.declaration.d.ts +2 -1
  12. package/lib/common/protocol.declaration.js +1 -0
  13. package/lib/common/protocol.diagnostic.d.ts +4 -1
  14. package/lib/common/protocol.diagnostic.js +3 -0
  15. package/lib/common/protocol.fileOperations.d.ts +7 -1
  16. package/lib/common/protocol.fileOperations.js +6 -0
  17. package/lib/common/protocol.foldingRange.d.ts +2 -1
  18. package/lib/common/protocol.foldingRange.js +1 -0
  19. package/lib/common/protocol.implementation.d.ts +2 -1
  20. package/lib/common/protocol.implementation.js +1 -0
  21. package/lib/common/protocol.inlayHint.d.ts +4 -1
  22. package/lib/common/protocol.inlayHint.js +3 -0
  23. package/lib/common/protocol.inlineValue.d.ts +3 -1
  24. package/lib/common/protocol.inlineValue.js +2 -0
  25. package/lib/common/protocol.js +72 -14
  26. package/lib/common/protocol.linkedEditingRange.d.ts +2 -1
  27. package/lib/common/protocol.linkedEditingRange.js +1 -0
  28. package/lib/common/protocol.moniker.d.ts +2 -1
  29. package/lib/common/protocol.moniker.js +1 -0
  30. package/lib/common/protocol.notebook.d.ts +10 -1
  31. package/lib/common/protocol.notebook.js +9 -0
  32. package/lib/common/protocol.progress.d.ts +3 -1
  33. package/lib/common/protocol.progress.js +2 -0
  34. package/lib/common/protocol.selectionRange.d.ts +2 -1
  35. package/lib/common/protocol.selectionRange.js +1 -0
  36. package/lib/common/protocol.semanticTokens.d.ts +8 -1
  37. package/lib/common/protocol.semanticTokens.js +7 -0
  38. package/lib/common/protocol.showDocument.d.ts +2 -1
  39. package/lib/common/protocol.showDocument.js +1 -0
  40. package/lib/common/protocol.typeDefinition.d.ts +3 -2
  41. package/lib/common/protocol.typeDefinition.js +2 -1
  42. package/lib/common/protocol.typeHierarchy.d.ts +4 -1
  43. package/lib/common/protocol.typeHierarchy.js +3 -0
  44. package/lib/common/protocol.workspaceFolder.d.ts +5 -1
  45. package/lib/common/protocol.workspaceFolder.js +6 -2
  46. package/metaModel.schema.json +49 -4
  47. package/package.json +38 -38
@@ -1,4 +1,4 @@
1
- import { ProtocolRequestType } from './messages';
1
+ import { MessageDirection, ProtocolRequestType } from './messages';
2
2
  import type { WorkDoneProgressOptions, WorkDoneProgressParams, PartialResultParams, TextDocumentRegistrationOptions, TextDocumentPositionParams } from './protocol';
3
3
  /**
4
4
  * Moniker uniqueness level to define scope of the moniker.
@@ -101,5 +101,6 @@ export interface MonikerParams extends TextDocumentPositionParams, WorkDoneProgr
101
101
  */
102
102
  export declare namespace MonikerRequest {
103
103
  const method: 'textDocument/moniker';
104
+ const messageDirection: MessageDirection;
104
105
  const type: ProtocolRequestType<MonikerParams, Moniker[] | null, Moniker[], void, MonikerRegistrationOptions>;
105
106
  }
@@ -63,6 +63,7 @@ var MonikerKind;
63
63
  var MonikerRequest;
64
64
  (function (MonikerRequest) {
65
65
  MonikerRequest.method = 'textDocument/moniker';
66
+ MonikerRequest.messageDirection = messages_1.MessageDirection.clientToServer;
66
67
  MonikerRequest.type = new messages_1.ProtocolRequestType(MonikerRequest.method);
67
68
  })(MonikerRequest = exports.MonikerRequest || (exports.MonikerRequest = {}));
68
69
  //# sourceMappingURL=protocol.moniker.js.map
@@ -1,5 +1,5 @@
1
1
  import { URI, integer, DocumentUri, uinteger, TextDocumentItem, TextDocumentIdentifier, VersionedTextDocumentIdentifier, LSPObject } from 'vscode-languageserver-types';
2
- import { ProtocolNotificationType, RegistrationType } from './messages';
2
+ import { MessageDirection, ProtocolNotificationType, RegistrationType } from './messages';
3
3
  import type { StaticRegistrationOptions, NotebookDocumentFilter, TextDocumentContentChangeEvent } from './protocol';
4
4
  /**
5
5
  * Notebook specific client capabilities.
@@ -211,6 +211,7 @@ export declare type NotebookDocumentSyncOptions = {
211
211
  export declare type NotebookDocumentSyncRegistrationOptions = NotebookDocumentSyncOptions & StaticRegistrationOptions;
212
212
  export declare namespace NotebookDocumentSyncRegistrationType {
213
213
  const method: 'notebookDocument/sync';
214
+ const messageDirection: MessageDirection;
214
215
  const type: RegistrationType<NotebookDocumentSyncRegistrationOptions>;
215
216
  }
216
217
  /**
@@ -236,7 +237,9 @@ export declare type DidOpenNotebookDocumentParams = {
236
237
  */
237
238
  export declare namespace DidOpenNotebookDocumentNotification {
238
239
  const method: 'notebookDocument/didOpen';
240
+ const messageDirection: MessageDirection;
239
241
  const type: ProtocolNotificationType<DidOpenNotebookDocumentParams, void>;
242
+ const registrationMethod: typeof NotebookDocumentSyncRegistrationType.method;
240
243
  }
241
244
  /**
242
245
  * A change describing how to move a `NotebookCell`
@@ -342,7 +345,9 @@ export declare type DidChangeNotebookDocumentParams = {
342
345
  };
343
346
  export declare namespace DidChangeNotebookDocumentNotification {
344
347
  const method: 'notebookDocument/didChange';
348
+ const messageDirection: MessageDirection;
345
349
  const type: ProtocolNotificationType<DidChangeNotebookDocumentParams, void>;
350
+ const registrationMethod: typeof NotebookDocumentSyncRegistrationType.method;
346
351
  }
347
352
  /**
348
353
  * The params sent in a save notebook document notification.
@@ -362,7 +367,9 @@ export declare type DidSaveNotebookDocumentParams = {
362
367
  */
363
368
  export declare namespace DidSaveNotebookDocumentNotification {
364
369
  const method: 'notebookDocument/didSave';
370
+ const messageDirection: MessageDirection;
365
371
  const type: ProtocolNotificationType<DidSaveNotebookDocumentParams, void>;
372
+ const registrationMethod: typeof NotebookDocumentSyncRegistrationType.method;
366
373
  }
367
374
  /**
368
375
  * The params sent in a close notebook document notification.
@@ -387,5 +394,7 @@ export declare type DidCloseNotebookDocumentParams = {
387
394
  */
388
395
  export declare namespace DidCloseNotebookDocumentNotification {
389
396
  const method: 'notebookDocument/didClose';
397
+ const messageDirection: MessageDirection;
390
398
  const type: ProtocolNotificationType<DidCloseNotebookDocumentParams, void>;
399
+ const registrationMethod: typeof NotebookDocumentSyncRegistrationType.method;
391
400
  }
@@ -150,6 +150,7 @@ var NotebookDocument;
150
150
  var NotebookDocumentSyncRegistrationType;
151
151
  (function (NotebookDocumentSyncRegistrationType) {
152
152
  NotebookDocumentSyncRegistrationType.method = 'notebookDocument/sync';
153
+ NotebookDocumentSyncRegistrationType.messageDirection = messages_1.MessageDirection.clientToServer;
153
154
  NotebookDocumentSyncRegistrationType.type = new messages_1.RegistrationType(NotebookDocumentSyncRegistrationType.method);
154
155
  })(NotebookDocumentSyncRegistrationType = exports.NotebookDocumentSyncRegistrationType || (exports.NotebookDocumentSyncRegistrationType = {}));
155
156
  /**
@@ -160,7 +161,9 @@ var NotebookDocumentSyncRegistrationType;
160
161
  var DidOpenNotebookDocumentNotification;
161
162
  (function (DidOpenNotebookDocumentNotification) {
162
163
  DidOpenNotebookDocumentNotification.method = 'notebookDocument/didOpen';
164
+ DidOpenNotebookDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
163
165
  DidOpenNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidOpenNotebookDocumentNotification.method);
166
+ DidOpenNotebookDocumentNotification.registrationMethod = NotebookDocumentSyncRegistrationType.method;
164
167
  })(DidOpenNotebookDocumentNotification = exports.DidOpenNotebookDocumentNotification || (exports.DidOpenNotebookDocumentNotification = {}));
165
168
  var NotebookCellArrayChange;
166
169
  (function (NotebookCellArrayChange) {
@@ -181,7 +184,9 @@ var NotebookCellArrayChange;
181
184
  var DidChangeNotebookDocumentNotification;
182
185
  (function (DidChangeNotebookDocumentNotification) {
183
186
  DidChangeNotebookDocumentNotification.method = 'notebookDocument/didChange';
187
+ DidChangeNotebookDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
184
188
  DidChangeNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidChangeNotebookDocumentNotification.method);
189
+ DidChangeNotebookDocumentNotification.registrationMethod = NotebookDocumentSyncRegistrationType.method;
185
190
  })(DidChangeNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification || (exports.DidChangeNotebookDocumentNotification = {}));
186
191
  /**
187
192
  * A notification sent when a notebook document is saved.
@@ -191,7 +196,9 @@ var DidChangeNotebookDocumentNotification;
191
196
  var DidSaveNotebookDocumentNotification;
192
197
  (function (DidSaveNotebookDocumentNotification) {
193
198
  DidSaveNotebookDocumentNotification.method = 'notebookDocument/didSave';
199
+ DidSaveNotebookDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
194
200
  DidSaveNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidSaveNotebookDocumentNotification.method);
201
+ DidSaveNotebookDocumentNotification.registrationMethod = NotebookDocumentSyncRegistrationType.method;
195
202
  })(DidSaveNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification || (exports.DidSaveNotebookDocumentNotification = {}));
196
203
  /**
197
204
  * A notification sent when a notebook closes.
@@ -201,6 +208,8 @@ var DidSaveNotebookDocumentNotification;
201
208
  var DidCloseNotebookDocumentNotification;
202
209
  (function (DidCloseNotebookDocumentNotification) {
203
210
  DidCloseNotebookDocumentNotification.method = 'notebookDocument/didClose';
211
+ DidCloseNotebookDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
204
212
  DidCloseNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseNotebookDocumentNotification.method);
213
+ DidCloseNotebookDocumentNotification.registrationMethod = NotebookDocumentSyncRegistrationType.method;
205
214
  })(DidCloseNotebookDocumentNotification = exports.DidCloseNotebookDocumentNotification || (exports.DidCloseNotebookDocumentNotification = {}));
206
215
  //# sourceMappingURL=protocol.notebook.js.map
@@ -1,6 +1,6 @@
1
1
  import { NotificationHandler, RequestHandler, ProgressType, ProgressToken } from 'vscode-jsonrpc';
2
2
  import { uinteger } from 'vscode-languageserver-types';
3
- import { ProtocolRequestType, ProtocolNotificationType } from './messages';
3
+ import { MessageDirection, ProtocolRequestType, ProtocolNotificationType } from './messages';
4
4
  export interface WorkDoneProgressBegin {
5
5
  kind: 'begin';
6
6
  /**
@@ -85,6 +85,7 @@ export interface WorkDoneProgressCreateParams {
85
85
  */
86
86
  export declare namespace WorkDoneProgressCreateRequest {
87
87
  const method: 'window/workDoneProgress/create';
88
+ const messageDirection: MessageDirection;
88
89
  const type: ProtocolRequestType<WorkDoneProgressCreateParams, void, never, void, void>;
89
90
  type HandlerSignature = RequestHandler<WorkDoneProgressCreateParams, void, void>;
90
91
  }
@@ -100,6 +101,7 @@ export interface WorkDoneProgressCancelParams {
100
101
  */
101
102
  export declare namespace WorkDoneProgressCancelNotification {
102
103
  const method: 'window/workDoneProgress/cancel';
104
+ const messageDirection: MessageDirection;
103
105
  const type: ProtocolNotificationType<WorkDoneProgressCancelParams, void>;
104
106
  type HandlerSignature = NotificationHandler<WorkDoneProgressCancelParams>;
105
107
  }
@@ -22,6 +22,7 @@ var WorkDoneProgress;
22
22
  var WorkDoneProgressCreateRequest;
23
23
  (function (WorkDoneProgressCreateRequest) {
24
24
  WorkDoneProgressCreateRequest.method = 'window/workDoneProgress/create';
25
+ WorkDoneProgressCreateRequest.messageDirection = messages_1.MessageDirection.serverToClient;
25
26
  WorkDoneProgressCreateRequest.type = new messages_1.ProtocolRequestType(WorkDoneProgressCreateRequest.method);
26
27
  })(WorkDoneProgressCreateRequest = exports.WorkDoneProgressCreateRequest || (exports.WorkDoneProgressCreateRequest = {}));
27
28
  /**
@@ -31,6 +32,7 @@ var WorkDoneProgressCreateRequest;
31
32
  var WorkDoneProgressCancelNotification;
32
33
  (function (WorkDoneProgressCancelNotification) {
33
34
  WorkDoneProgressCancelNotification.method = 'window/workDoneProgress/cancel';
35
+ WorkDoneProgressCancelNotification.messageDirection = messages_1.MessageDirection.clientToServer;
34
36
  WorkDoneProgressCancelNotification.type = new messages_1.ProtocolNotificationType(WorkDoneProgressCancelNotification.method);
35
37
  })(WorkDoneProgressCancelNotification = exports.WorkDoneProgressCancelNotification || (exports.WorkDoneProgressCancelNotification = {}));
36
38
  //# sourceMappingURL=protocol.progress.js.map
@@ -1,6 +1,6 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { TextDocumentIdentifier, Position, SelectionRange } from 'vscode-languageserver-types';
3
- import { ProtocolRequestType } from './messages';
3
+ import { MessageDirection, ProtocolRequestType } from './messages';
4
4
  import type { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams, PartialResultParams } from './protocol';
5
5
  export interface SelectionRangeClientCapabilities {
6
6
  /**
@@ -35,6 +35,7 @@ export interface SelectionRangeParams extends WorkDoneProgressParams, PartialRes
35
35
  */
36
36
  export declare namespace SelectionRangeRequest {
37
37
  const method: 'textDocument/selectionRange';
38
+ const messageDirection: MessageDirection;
38
39
  const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[], void, SelectionRangeRegistrationOptions>;
39
40
  type HandlerSignature = RequestHandler<SelectionRangeParams, SelectionRange[] | null, void>;
40
41
  }
@@ -15,6 +15,7 @@ const messages_1 = require("./messages");
15
15
  var SelectionRangeRequest;
16
16
  (function (SelectionRangeRequest) {
17
17
  SelectionRangeRequest.method = 'textDocument/selectionRange';
18
+ SelectionRangeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
18
19
  SelectionRangeRequest.type = new messages_1.ProtocolRequestType(SelectionRangeRequest.method);
19
20
  })(SelectionRangeRequest = exports.SelectionRangeRequest || (exports.SelectionRangeRequest = {}));
20
21
  //# sourceMappingURL=protocol.selectionRange.js.map
@@ -1,6 +1,6 @@
1
1
  import { TextDocumentIdentifier, Range, uinteger, SemanticTokensEdit, SemanticTokensLegend, SemanticTokens, SemanticTokensDelta } from 'vscode-languageserver-types';
2
2
  import { RequestHandler0, RequestHandler } from 'vscode-jsonrpc';
3
- import { ProtocolRequestType, ProtocolRequestType0, RegistrationType } from './messages';
3
+ import { MessageDirection, ProtocolRequestType, ProtocolRequestType0, RegistrationType } from './messages';
4
4
  import type { PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
5
5
  /**
6
6
  * @since 3.16.0
@@ -145,7 +145,9 @@ export interface SemanticTokensParams extends WorkDoneProgressParams, PartialRes
145
145
  */
146
146
  export declare namespace SemanticTokensRequest {
147
147
  const method: 'textDocument/semanticTokens/full';
148
+ const messageDirection: MessageDirection;
148
149
  const type: ProtocolRequestType<SemanticTokensParams, SemanticTokens | null, SemanticTokensPartialResult, void, SemanticTokensRegistrationOptions>;
150
+ const registrationMethod: typeof SemanticTokensRegistrationType.method;
149
151
  type HandlerSignature = RequestHandler<SemanticTokensDeltaParams, SemanticTokens | null, void>;
150
152
  }
151
153
  /**
@@ -167,7 +169,9 @@ export interface SemanticTokensDeltaParams extends WorkDoneProgressParams, Parti
167
169
  */
168
170
  export declare namespace SemanticTokensDeltaRequest {
169
171
  const method: 'textDocument/semanticTokens/full/delta';
172
+ const messageDirection: MessageDirection;
170
173
  const type: ProtocolRequestType<SemanticTokensDeltaParams, SemanticTokens | SemanticTokensDelta | null, SemanticTokensPartialResult | SemanticTokensDeltaPartialResult, void, SemanticTokensRegistrationOptions>;
174
+ const registrationMethod: typeof SemanticTokensRegistrationType.method;
171
175
  type HandlerSignature = RequestHandler<SemanticTokensDeltaParams, SemanticTokens | SemanticTokensDelta | null, void>;
172
176
  }
173
177
  /**
@@ -188,7 +192,9 @@ export interface SemanticTokensRangeParams extends WorkDoneProgressParams, Parti
188
192
  */
189
193
  export declare namespace SemanticTokensRangeRequest {
190
194
  const method: 'textDocument/semanticTokens/range';
195
+ const messageDirection: MessageDirection;
191
196
  const type: ProtocolRequestType<SemanticTokensRangeParams, SemanticTokens | null, SemanticTokensPartialResult, void, void>;
197
+ const registrationMethod: typeof SemanticTokensRegistrationType.method;
192
198
  type HandlerSignature = RequestHandler<SemanticTokensRangeParams, SemanticTokens | null, void>;
193
199
  }
194
200
  /**
@@ -211,6 +217,7 @@ export interface SemanticTokensWorkspaceClientCapabilities {
211
217
  */
212
218
  export declare namespace SemanticTokensRefreshRequest {
213
219
  const method: `workspace/semanticTokens/refresh`;
220
+ const messageDirection: MessageDirection;
214
221
  const type: ProtocolRequestType0<void, void, void, void>;
215
222
  type HandlerSignature = RequestHandler0<void, void>;
216
223
  }
@@ -22,7 +22,9 @@ var SemanticTokensRegistrationType;
22
22
  var SemanticTokensRequest;
23
23
  (function (SemanticTokensRequest) {
24
24
  SemanticTokensRequest.method = 'textDocument/semanticTokens/full';
25
+ SemanticTokensRequest.messageDirection = messages_1.MessageDirection.clientToServer;
25
26
  SemanticTokensRequest.type = new messages_1.ProtocolRequestType(SemanticTokensRequest.method);
27
+ SemanticTokensRequest.registrationMethod = SemanticTokensRegistrationType.method;
26
28
  })(SemanticTokensRequest = exports.SemanticTokensRequest || (exports.SemanticTokensRequest = {}));
27
29
  /**
28
30
  * @since 3.16.0
@@ -30,7 +32,9 @@ var SemanticTokensRequest;
30
32
  var SemanticTokensDeltaRequest;
31
33
  (function (SemanticTokensDeltaRequest) {
32
34
  SemanticTokensDeltaRequest.method = 'textDocument/semanticTokens/full/delta';
35
+ SemanticTokensDeltaRequest.messageDirection = messages_1.MessageDirection.clientToServer;
33
36
  SemanticTokensDeltaRequest.type = new messages_1.ProtocolRequestType(SemanticTokensDeltaRequest.method);
37
+ SemanticTokensDeltaRequest.registrationMethod = SemanticTokensRegistrationType.method;
34
38
  })(SemanticTokensDeltaRequest = exports.SemanticTokensDeltaRequest || (exports.SemanticTokensDeltaRequest = {}));
35
39
  /**
36
40
  * @since 3.16.0
@@ -38,7 +42,9 @@ var SemanticTokensDeltaRequest;
38
42
  var SemanticTokensRangeRequest;
39
43
  (function (SemanticTokensRangeRequest) {
40
44
  SemanticTokensRangeRequest.method = 'textDocument/semanticTokens/range';
45
+ SemanticTokensRangeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
41
46
  SemanticTokensRangeRequest.type = new messages_1.ProtocolRequestType(SemanticTokensRangeRequest.method);
47
+ SemanticTokensRangeRequest.registrationMethod = SemanticTokensRegistrationType.method;
42
48
  })(SemanticTokensRangeRequest = exports.SemanticTokensRangeRequest || (exports.SemanticTokensRangeRequest = {}));
43
49
  /**
44
50
  * @since 3.16.0
@@ -46,6 +52,7 @@ var SemanticTokensRangeRequest;
46
52
  var SemanticTokensRefreshRequest;
47
53
  (function (SemanticTokensRefreshRequest) {
48
54
  SemanticTokensRefreshRequest.method = `workspace/semanticTokens/refresh`;
55
+ SemanticTokensRefreshRequest.messageDirection = messages_1.MessageDirection.clientToServer;
49
56
  SemanticTokensRefreshRequest.type = new messages_1.ProtocolRequestType0(SemanticTokensRefreshRequest.method);
50
57
  })(SemanticTokensRefreshRequest = exports.SemanticTokensRefreshRequest || (exports.SemanticTokensRefreshRequest = {}));
51
58
  //# sourceMappingURL=protocol.semanticTokens.js.map
@@ -1,6 +1,6 @@
1
1
  import { HandlerResult, RequestHandler } from 'vscode-jsonrpc';
2
2
  import { Range, URI } from 'vscode-languageserver-types';
3
- import { ProtocolRequestType } from './messages';
3
+ import { MessageDirection, ProtocolRequestType } from './messages';
4
4
  /**
5
5
  * Client capabilities for the showDocument request.
6
6
  *
@@ -65,6 +65,7 @@ export interface ShowDocumentResult {
65
65
  */
66
66
  export declare namespace ShowDocumentRequest {
67
67
  const method: 'window/showDocument';
68
+ const messageDirection: MessageDirection;
68
69
  const type: ProtocolRequestType<ShowDocumentParams, ShowDocumentResult, void, void, void>;
69
70
  type HandlerSignature = RequestHandler<ShowDocumentParams, ShowDocumentResult, void>;
70
71
  type MiddlewareSignature = (params: ShowDocumentParams, next: HandlerSignature) => HandlerResult<ShowDocumentResult, void>;
@@ -17,6 +17,7 @@ const messages_1 = require("./messages");
17
17
  var ShowDocumentRequest;
18
18
  (function (ShowDocumentRequest) {
19
19
  ShowDocumentRequest.method = 'window/showDocument';
20
+ ShowDocumentRequest.messageDirection = messages_1.MessageDirection.serverToClient;
20
21
  ShowDocumentRequest.type = new messages_1.ProtocolRequestType(ShowDocumentRequest.method);
21
22
  })(ShowDocumentRequest = exports.ShowDocumentRequest || (exports.ShowDocumentRequest = {}));
22
23
  //# sourceMappingURL=protocol.showDocument.js.map
@@ -1,6 +1,6 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { Definition, DefinitionLink, LocationLink, Location } from 'vscode-languageserver-types';
3
- import { ProtocolRequestType } from './messages';
3
+ import { MessageDirection, ProtocolRequestType } from './messages';
4
4
  import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5
5
  /**
6
6
  * Since 3.6.0
@@ -27,12 +27,13 @@ export interface TypeDefinitionParams extends TextDocumentPositionParams, WorkDo
27
27
  }
28
28
  /**
29
29
  * A request to resolve the type definition locations of a symbol at a given text
30
- * document position. The request's parameter is of type [TextDocumentPositioParams]
30
+ * document position. The request's parameter is of type [TextDocumentPositionParams]
31
31
  * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
32
32
  * Thenable that resolves to such.
33
33
  */
34
34
  export declare namespace TypeDefinitionRequest {
35
35
  const method: 'textDocument/typeDefinition';
36
+ const messageDirection: MessageDirection;
36
37
  const type: ProtocolRequestType<TypeDefinitionParams, Definition | LocationLink[] | null, Location[] | LocationLink[], void, TypeDefinitionRegistrationOptions>;
37
38
  type HandlerSignature = RequestHandler<TypeDefinitionParams, Definition | DefinitionLink[] | null, void>;
38
39
  }
@@ -10,13 +10,14 @@ const messages_1 = require("./messages");
10
10
  let __noDynamicImport;
11
11
  /**
12
12
  * A request to resolve the type definition locations of a symbol at a given text
13
- * document position. The request's parameter is of type [TextDocumentPositioParams]
13
+ * document position. The request's parameter is of type [TextDocumentPositionParams]
14
14
  * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
15
15
  * Thenable that resolves to such.
16
16
  */
17
17
  var TypeDefinitionRequest;
18
18
  (function (TypeDefinitionRequest) {
19
19
  TypeDefinitionRequest.method = 'textDocument/typeDefinition';
20
+ TypeDefinitionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
20
21
  TypeDefinitionRequest.type = new messages_1.ProtocolRequestType(TypeDefinitionRequest.method);
21
22
  })(TypeDefinitionRequest = exports.TypeDefinitionRequest || (exports.TypeDefinitionRequest = {}));
22
23
  //# sourceMappingURL=protocol.typeDefinition.js.map
@@ -1,6 +1,6 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { TypeHierarchyItem } from 'vscode-languageserver-types';
3
- import { ProtocolRequestType } from './messages';
3
+ import { MessageDirection, ProtocolRequestType } from './messages';
4
4
  import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5
5
  /**
6
6
  * @since 3.17.0
@@ -39,6 +39,7 @@ export declare type TypeHierarchyPrepareParams = TextDocumentPositionParams & Wo
39
39
  */
40
40
  export declare namespace TypeHierarchyPrepareRequest {
41
41
  const method: 'textDocument/prepareTypeHierarchy';
42
+ const messageDirection: MessageDirection;
42
43
  const type: ProtocolRequestType<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, never, void, TypeHierarchyRegistrationOptions>;
43
44
  type HandlerSignature = RequestHandler<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, void>;
44
45
  }
@@ -57,6 +58,7 @@ export declare type TypeHierarchySupertypesParams = WorkDoneProgressParams & Par
57
58
  */
58
59
  export declare namespace TypeHierarchySupertypesRequest {
59
60
  const method: 'typeHierarchy/supertypes';
61
+ const messageDirection: MessageDirection;
60
62
  const type: ProtocolRequestType<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
61
63
  type HandlerSignature = RequestHandler<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, void>;
62
64
  }
@@ -75,6 +77,7 @@ export declare type TypeHierarchySubtypesParams = WorkDoneProgressParams & Parti
75
77
  */
76
78
  export declare namespace TypeHierarchySubtypesRequest {
77
79
  const method: 'typeHierarchy/subtypes';
80
+ const messageDirection: MessageDirection;
78
81
  const type: ProtocolRequestType<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
79
82
  type HandlerSignature = RequestHandler<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, void>;
80
83
  }
@@ -15,6 +15,7 @@ const messages_1 = require("./messages");
15
15
  var TypeHierarchyPrepareRequest;
16
16
  (function (TypeHierarchyPrepareRequest) {
17
17
  TypeHierarchyPrepareRequest.method = 'textDocument/prepareTypeHierarchy';
18
+ TypeHierarchyPrepareRequest.messageDirection = messages_1.MessageDirection.clientToServer;
18
19
  TypeHierarchyPrepareRequest.type = new messages_1.ProtocolRequestType(TypeHierarchyPrepareRequest.method);
19
20
  })(TypeHierarchyPrepareRequest = exports.TypeHierarchyPrepareRequest || (exports.TypeHierarchyPrepareRequest = {}));
20
21
  /**
@@ -25,6 +26,7 @@ var TypeHierarchyPrepareRequest;
25
26
  var TypeHierarchySupertypesRequest;
26
27
  (function (TypeHierarchySupertypesRequest) {
27
28
  TypeHierarchySupertypesRequest.method = 'typeHierarchy/supertypes';
29
+ TypeHierarchySupertypesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
28
30
  TypeHierarchySupertypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySupertypesRequest.method);
29
31
  })(TypeHierarchySupertypesRequest = exports.TypeHierarchySupertypesRequest || (exports.TypeHierarchySupertypesRequest = {}));
30
32
  /**
@@ -35,6 +37,7 @@ var TypeHierarchySupertypesRequest;
35
37
  var TypeHierarchySubtypesRequest;
36
38
  (function (TypeHierarchySubtypesRequest) {
37
39
  TypeHierarchySubtypesRequest.method = 'typeHierarchy/subtypes';
40
+ TypeHierarchySubtypesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
38
41
  TypeHierarchySubtypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySubtypesRequest.method);
39
42
  })(TypeHierarchySubtypesRequest = exports.TypeHierarchySubtypesRequest || (exports.TypeHierarchySubtypesRequest = {}));
40
43
  //# sourceMappingURL=protocol.typeHierarchy.js.map
@@ -1,6 +1,6 @@
1
1
  import { WorkspaceFolder } from 'vscode-languageserver-types';
2
2
  import { RequestHandler0, NotificationHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
3
- import { ProtocolRequestType0, ProtocolNotificationType } from './messages';
3
+ import { MessageDirection, ProtocolRequestType0, ProtocolNotificationType } from './messages';
4
4
  export interface WorkspaceFoldersInitializeParams {
5
5
  /**
6
6
  * The workspace folders configured in the client when the server starts.
@@ -33,6 +33,8 @@ export interface WorkspaceFoldersServerCapabilities {
33
33
  * The `workspace/workspaceFolders` is sent from the server to the client to fetch the open workspace folders.
34
34
  */
35
35
  export declare namespace WorkspaceFoldersRequest {
36
+ const method: 'workspace/workspaceFolders';
37
+ const messageDirection: MessageDirection;
36
38
  const type: ProtocolRequestType0<WorkspaceFolder[] | null, never, void, void>;
37
39
  type HandlerSignature = RequestHandler0<WorkspaceFolder[] | null, void>;
38
40
  type MiddlewareSignature = (token: CancellationToken, next: HandlerSignature) => HandlerResult<WorkspaceFolder[] | null, void>;
@@ -42,6 +44,8 @@ export declare namespace WorkspaceFoldersRequest {
42
44
  * folder configuration changes.
43
45
  */
44
46
  export declare namespace DidChangeWorkspaceFoldersNotification {
47
+ const method: 'workspace/didChangeWorkspaceFolders';
48
+ const messageDirection: MessageDirection;
45
49
  const type: ProtocolNotificationType<DidChangeWorkspaceFoldersParams, void>;
46
50
  type HandlerSignature = NotificationHandler<DidChangeWorkspaceFoldersParams>;
47
51
  type MiddlewareSignature = (params: DidChangeWorkspaceFoldersParams, next: HandlerSignature) => void;
@@ -11,7 +11,9 @@ const messages_1 = require("./messages");
11
11
  */
12
12
  var WorkspaceFoldersRequest;
13
13
  (function (WorkspaceFoldersRequest) {
14
- WorkspaceFoldersRequest.type = new messages_1.ProtocolRequestType0('workspace/workspaceFolders');
14
+ WorkspaceFoldersRequest.method = 'workspace/workspaceFolders';
15
+ WorkspaceFoldersRequest.messageDirection = messages_1.MessageDirection.serverToClient;
16
+ WorkspaceFoldersRequest.type = new messages_1.ProtocolRequestType0(WorkspaceFoldersRequest.method);
15
17
  })(WorkspaceFoldersRequest = exports.WorkspaceFoldersRequest || (exports.WorkspaceFoldersRequest = {}));
16
18
  /**
17
19
  * The `workspace/didChangeWorkspaceFolders` notification is sent from the client to the server when the workspace
@@ -19,6 +21,8 @@ var WorkspaceFoldersRequest;
19
21
  */
20
22
  var DidChangeWorkspaceFoldersNotification;
21
23
  (function (DidChangeWorkspaceFoldersNotification) {
22
- DidChangeWorkspaceFoldersNotification.type = new messages_1.ProtocolNotificationType('workspace/didChangeWorkspaceFolders');
24
+ DidChangeWorkspaceFoldersNotification.method = 'workspace/didChangeWorkspaceFolders';
25
+ DidChangeWorkspaceFoldersNotification.messageDirection = messages_1.MessageDirection.clientToServer;
26
+ DidChangeWorkspaceFoldersNotification.type = new messages_1.ProtocolNotificationType(DidChangeWorkspaceFoldersNotification.method);
23
27
  })(DidChangeWorkspaceFoldersNotification = exports.DidChangeWorkspaceFoldersNotification || (exports.DidChangeWorkspaceFoldersNotification = {}));
24
28
  //# sourceMappingURL=protocol.workspaceFolder.js.map
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "BaseTypes": {
62
62
  "enum": [
63
- "Uri",
63
+ "URI",
64
64
  "DocumentUri",
65
65
  "integer",
66
66
  "uinteger",
@@ -218,7 +218,7 @@
218
218
  },
219
219
  "name": {
220
220
  "enum": [
221
- "Uri",
221
+ "URI",
222
222
  "DocumentUri",
223
223
  "string",
224
224
  "integer"
@@ -260,6 +260,28 @@
260
260
  ],
261
261
  "type": "object"
262
262
  },
263
+ "MessageDirection": {
264
+ "description": "Indicates in which direction a message is sent in the protocol.",
265
+ "enum": [
266
+ "clientToServer",
267
+ "serverToClient",
268
+ "both"
269
+ ],
270
+ "type": "string"
271
+ },
272
+ "MetaData": {
273
+ "additionalProperties": false,
274
+ "properties": {
275
+ "version": {
276
+ "description": "The protocol version.",
277
+ "type": "string"
278
+ }
279
+ },
280
+ "required": [
281
+ "version"
282
+ ],
283
+ "type": "object"
284
+ },
263
285
  "MetaModel": {
264
286
  "additionalProperties": false,
265
287
  "description": "The actual meta model.",
@@ -271,6 +293,10 @@
271
293
  },
272
294
  "type": "array"
273
295
  },
296
+ "metaData": {
297
+ "$ref": "#/definitions/MetaData",
298
+ "description": "Additional meta data."
299
+ },
274
300
  "notifications": {
275
301
  "description": "The notifications.",
276
302
  "items": {
@@ -301,6 +327,7 @@
301
327
  }
302
328
  },
303
329
  "required": [
330
+ "metaData",
304
331
  "requests",
305
332
  "notifications",
306
333
  "structures",
@@ -317,6 +344,10 @@
317
344
  "description": "An optional documentation;",
318
345
  "type": "string"
319
346
  },
347
+ "messageDirection": {
348
+ "$ref": "#/definitions/MessageDirection",
349
+ "description": "The direction in which this notification is sent in the protocol."
350
+ },
320
351
  "method": {
321
352
  "description": "The request's method name.",
322
353
  "type": "string"
@@ -339,6 +370,10 @@
339
370
  "description": "Whether this is a proposed notification. If omitted the notification is final.",
340
371
  "type": "boolean"
341
372
  },
373
+ "registrationMethod": {
374
+ "description": "Optional a dynamic registration method if it different from the request's method.",
375
+ "type": "string"
376
+ },
342
377
  "registrationOptions": {
343
378
  "$ref": "#/definitions/Type",
344
379
  "description": "Optional registration options if the notification supports dynamic registration."
@@ -349,7 +384,8 @@
349
384
  }
350
385
  },
351
386
  "required": [
352
- "method"
387
+ "method",
388
+ "messageDirection"
353
389
  ],
354
390
  "type": "object"
355
391
  },
@@ -439,6 +475,10 @@
439
475
  "$ref": "#/definitions/Type",
440
476
  "description": "An optional error data type."
441
477
  },
478
+ "messageDirection": {
479
+ "$ref": "#/definitions/MessageDirection",
480
+ "description": "The direction in which this request is sent in the protocol."
481
+ },
442
482
  "method": {
443
483
  "description": "The request's method name.",
444
484
  "type": "string"
@@ -465,6 +505,10 @@
465
505
  "description": "Whether this is a proposed feature. If omitted the feature is final.",
466
506
  "type": "boolean"
467
507
  },
508
+ "registrationMethod": {
509
+ "description": "Optional a dynamic registration method if it different from the request's method.",
510
+ "type": "string"
511
+ },
468
512
  "registrationOptions": {
469
513
  "$ref": "#/definitions/Type",
470
514
  "description": "Optional registration options if the request supports dynamic registration."
@@ -480,7 +524,8 @@
480
524
  },
481
525
  "required": [
482
526
  "method",
483
- "result"
527
+ "result",
528
+ "messageDirection"
484
529
  ],
485
530
  "type": "object"
486
531
  },