@mrclrchtr/supi-lsp 1.11.1 → 1.11.3

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 (163) hide show
  1. package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/package.json +1 -1
  2. package/node_modules/@mrclrchtr/supi-code-runtime/package.json +2 -2
  3. package/node_modules/@mrclrchtr/supi-core/package.json +1 -1
  4. package/node_modules/vscode-jsonrpc/README.md +2 -17
  5. package/node_modules/vscode-jsonrpc/eslint.config.js +12 -0
  6. package/node_modules/vscode-jsonrpc/lib/browser/main.js +10 -3
  7. package/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +11 -1
  8. package/node_modules/vscode-jsonrpc/lib/browser/ril.js +58 -4
  9. package/node_modules/vscode-jsonrpc/lib/common/api.d.ts +3 -3
  10. package/node_modules/vscode-jsonrpc/lib/common/api.js +10 -4
  11. package/node_modules/vscode-jsonrpc/lib/common/cancellation.js +41 -5
  12. package/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +76 -67
  13. package/node_modules/vscode-jsonrpc/lib/common/connection.js +217 -160
  14. package/node_modules/vscode-jsonrpc/lib/common/events.js +10 -3
  15. package/node_modules/vscode-jsonrpc/lib/common/is.js +7 -8
  16. package/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +3 -1
  17. package/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +17 -3
  18. package/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +5 -2
  19. package/node_modules/vscode-jsonrpc/lib/common/messageReader.js +52 -3
  20. package/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +45 -3
  21. package/node_modules/vscode-jsonrpc/lib/common/messages.js +147 -17
  22. package/node_modules/vscode-jsonrpc/lib/common/semaphore.js +8 -2
  23. package/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +4 -3
  24. package/node_modules/vscode-jsonrpc/lib/node/main.d.ts +0 -5
  25. package/node_modules/vscode-jsonrpc/lib/node/main.js +56 -24
  26. package/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +0 -1
  27. package/node_modules/vscode-jsonrpc/lib/node/ril.js +3 -1
  28. package/node_modules/vscode-jsonrpc/package.json +20 -11
  29. package/node_modules/vscode-jsonrpc/tsconfig.tsbuildinfo +1 -0
  30. package/node_modules/vscode-languageserver-protocol/README.md +3 -3
  31. package/node_modules/vscode-languageserver-protocol/eslint.config.js +13 -0
  32. package/node_modules/vscode-languageserver-protocol/lib/browser/main.js +1 -2
  33. package/node_modules/vscode-languageserver-protocol/lib/common/api.d.ts +1 -1
  34. package/node_modules/vscode-languageserver-protocol/lib/common/api.js +1 -1
  35. package/node_modules/vscode-languageserver-protocol/lib/common/connection.d.ts +13 -13
  36. package/node_modules/vscode-languageserver-protocol/lib/common/connection.js +1 -2
  37. package/node_modules/vscode-languageserver-protocol/lib/common/messages.d.ts +7 -0
  38. package/node_modules/vscode-languageserver-protocol/lib/common/messages.js +38 -1
  39. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.d.ts +5 -2
  40. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +3 -0
  41. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.d.ts +5 -3
  42. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +3 -1
  43. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.d.ts +2 -1
  44. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +1 -0
  45. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.d.ts +735 -361
  46. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.d.ts +3 -2
  47. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +1 -0
  48. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.d.ts +12 -3
  49. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +37 -1
  50. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.d.ts +8 -2
  51. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +6 -0
  52. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.d.ts +34 -25
  53. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +4 -1
  54. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.d.ts +3 -2
  55. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +1 -0
  56. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.d.ts +15 -8
  57. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +3 -0
  58. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.d.ts +3 -7
  59. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +1 -1
  60. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.d.ts +7 -6
  61. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +2 -0
  62. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +97 -9
  63. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.d.ts +3 -2
  64. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +1 -0
  65. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.d.ts +3 -2
  66. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +1 -0
  67. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.d.ts +91 -63
  68. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +34 -1
  69. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.d.ts +2 -1
  70. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +1 -0
  71. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.d.ts +3 -2
  72. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +1 -0
  73. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.d.ts +44 -26
  74. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +4 -0
  75. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.d.ts +4 -3
  76. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +1 -0
  77. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.d.ts +93 -0
  78. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.js +33 -0
  79. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.d.ts +3 -2
  80. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +2 -1
  81. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.d.ts +3 -2
  82. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +1 -0
  83. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.d.ts +3 -1
  84. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +2 -0
  85. package/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +9 -10
  86. package/node_modules/vscode-languageserver-protocol/lib/node/main.d.ts +0 -1
  87. package/node_modules/vscode-languageserver-protocol/lib/node/main.js +1 -2
  88. package/node_modules/vscode-languageserver-protocol/metaModel.schema.json +84 -3
  89. package/node_modules/vscode-languageserver-protocol/package.json +21 -12
  90. package/node_modules/vscode-languageserver-types/README.md +1 -1
  91. package/node_modules/vscode-languageserver-types/eslint.config.js +13 -0
  92. package/node_modules/vscode-languageserver-types/lib/esm/main.d.ts +483 -107
  93. package/node_modules/vscode-languageserver-types/lib/esm/main.js +255 -62
  94. package/node_modules/vscode-languageserver-types/lib/umd/main.d.ts +483 -107
  95. package/node_modules/vscode-languageserver-types/lib/umd/main.js +201 -8
  96. package/node_modules/vscode-languageserver-types/package.json +9 -8
  97. package/package.json +4 -4
  98. package/src/config/types.ts +3 -0
  99. package/src/diagnostics/diagnostic-context.ts +2 -1
  100. package/src/diagnostics/diagnostic-display.ts +2 -1
  101. package/src/diagnostics/diagnostics.ts +2 -1
  102. package/src/diagnostics/stale-diagnostics.ts +3 -1
  103. package/src/diagnostics/suppression-diagnostics.ts +3 -1
  104. package/src/format.ts +30 -3
  105. package/src/ui/ui.ts +3 -1
  106. package/node_modules/vscode-jsonrpc/browser.d.ts +0 -6
  107. package/node_modules/vscode-jsonrpc/browser.js +0 -7
  108. package/node_modules/vscode-jsonrpc/node.cmd +0 -5
  109. package/node_modules/vscode-jsonrpc/node.d.ts +0 -6
  110. package/node_modules/vscode-jsonrpc/node.js +0 -7
  111. package/node_modules/vscode-languageserver-protocol/browser.d.ts +0 -6
  112. package/node_modules/vscode-languageserver-protocol/browser.js +0 -7
  113. package/node_modules/vscode-languageserver-protocol/node.cmd +0 -5
  114. package/node_modules/vscode-languageserver-protocol/node.d.ts +0 -6
  115. package/node_modules/vscode-languageserver-protocol/node.js +0 -7
  116. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/License.txt +0 -11
  117. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/README.md +0 -69
  118. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.d.ts +0 -6
  119. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +0 -7
  120. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
  121. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -76
  122. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +0 -12
  123. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -156
  124. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.d.ts +0 -14
  125. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js +0 -81
  126. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
  127. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -96
  128. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +0 -358
  129. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -1212
  130. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
  131. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -16
  132. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
  133. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/encoding.js +0 -70
  134. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.d.ts +0 -39
  135. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +0 -128
  136. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.d.ts +0 -7
  137. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +0 -35
  138. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -53
  139. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -398
  140. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
  141. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -152
  142. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
  143. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -197
  144. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
  145. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -115
  146. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
  147. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -306
  148. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
  149. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -23
  150. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
  151. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -68
  152. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
  153. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -76
  154. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/main.d.ts +0 -63
  155. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/main.js +0 -257
  156. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +0 -13
  157. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/ril.js +0 -161
  158. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.cmd +0 -5
  159. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.d.ts +0 -6
  160. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.js +0 -7
  161. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/package.json +0 -45
  162. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/thirdpartynotices.txt +0 -16
  163. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/typings/thenable.d.ts +0 -5
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../typings/thenable.d.ts" preserve="true" />
1
2
  import { Message, RequestMessage, RequestType, RequestType0, RequestType1, RequestType2, RequestType3, RequestType4, RequestType5, RequestType6, RequestType7, RequestType8, RequestType9, ResponseMessage, ResponseError, NotificationMessage, NotificationType, NotificationType0, NotificationType1, NotificationType2, NotificationType3, NotificationType4, NotificationType5, NotificationType6, NotificationType7, NotificationType8, NotificationType9, _EM, ParameterStructures } from './messages';
2
3
  import type { Disposable } from './disposable';
3
4
  import { Event } from './events';
@@ -27,7 +28,8 @@ export declare class ProgressType<PR> {
27
28
  readonly _pr: PR | undefined;
28
29
  constructor();
29
30
  }
30
- export type HandlerResult<R, E> = R | ResponseError<E> | Thenable<R> | Thenable<ResponseError<E>> | Thenable<R | ResponseError<E>>;
31
+ export type RequestParam<P> = P extends null ? P | undefined : P;
32
+ export type HandlerResult<R, E, _R = R extends null ? (R | undefined | void) : R> = _R | ResponseError<E> | Thenable<_R> | Thenable<ResponseError<E>> | Thenable<_R | ResponseError<E>>;
31
33
  export interface StarRequestHandler {
32
34
  (method: string, params: any[] | object | undefined, token: CancellationToken): HandlerResult<any, any>;
33
35
  }
@@ -67,44 +69,45 @@ export interface RequestHandler8<P1, P2, P3, P4, P5, P6, P7, P8, R, E> {
67
69
  export interface RequestHandler9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E> {
68
70
  (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, token: CancellationToken): HandlerResult<R, E>;
69
71
  }
72
+ export type NotificationResult = void | Promise<void>;
70
73
  export interface StarNotificationHandler {
71
- (method: string, params: any[] | object | undefined): void;
74
+ (method: string, params: any[] | object | undefined): NotificationResult;
72
75
  }
73
76
  export interface GenericNotificationHandler {
74
- (...params: any[]): void;
77
+ (...params: any[]): NotificationResult;
75
78
  }
76
79
  export interface NotificationHandler0 {
77
- (): void;
80
+ (): NotificationResult;
78
81
  }
79
82
  export interface NotificationHandler<P> {
80
- (params: P): void;
83
+ (params: P): NotificationResult;
81
84
  }
82
85
  export interface NotificationHandler1<P1> {
83
- (p1: P1): void;
86
+ (p1: P1): NotificationResult;
84
87
  }
85
88
  export interface NotificationHandler2<P1, P2> {
86
- (p1: P1, p2: P2): void;
89
+ (p1: P1, p2: P2): NotificationResult;
87
90
  }
88
91
  export interface NotificationHandler3<P1, P2, P3> {
89
- (p1: P1, p2: P2, p3: P3): void;
92
+ (p1: P1, p2: P2, p3: P3): NotificationResult;
90
93
  }
91
94
  export interface NotificationHandler4<P1, P2, P3, P4> {
92
- (p1: P1, p2: P2, p3: P3, p4: P4): void;
95
+ (p1: P1, p2: P2, p3: P3, p4: P4): NotificationResult;
93
96
  }
94
97
  export interface NotificationHandler5<P1, P2, P3, P4, P5> {
95
- (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5): void;
98
+ (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5): NotificationResult;
96
99
  }
97
100
  export interface NotificationHandler6<P1, P2, P3, P4, P5, P6> {
98
- (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6): void;
101
+ (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6): NotificationResult;
99
102
  }
100
103
  export interface NotificationHandler7<P1, P2, P3, P4, P5, P6, P7> {
101
- (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7): void;
104
+ (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7): NotificationResult;
102
105
  }
103
106
  export interface NotificationHandler8<P1, P2, P3, P4, P5, P6, P7, P8> {
104
- (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8): void;
107
+ (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8): NotificationResult;
105
108
  }
106
109
  export interface NotificationHandler9<P1, P2, P3, P4, P5, P6, P7, P8, P9> {
107
- (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9): void;
110
+ (p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9): NotificationResult;
108
111
  }
109
112
  export interface Logger {
110
113
  error(message: string): void;
@@ -119,7 +122,7 @@ export declare enum Trace {
119
122
  Compact = 2,
120
123
  Verbose = 3
121
124
  }
122
- export declare namespace TraceValues {
125
+ export declare namespace TraceValue {
123
126
  /**
124
127
  * Turn tracing off.
125
128
  */
@@ -137,10 +140,15 @@ export declare namespace TraceValues {
137
140
  */
138
141
  const Verbose: 'verbose';
139
142
  }
140
- export type TraceValues = 'off' | 'messages' | 'compact' | 'verbose';
143
+ export type TraceValue = 'off' | 'messages' | 'compact' | 'verbose';
144
+ /**
145
+ * @deprecated Use TraceValue instead
146
+ */
147
+ export declare const TraceValues: typeof TraceValue;
148
+ export type TraceValues = TraceValue;
141
149
  export declare namespace Trace {
142
150
  function fromString(value: string): Trace;
143
- function toString(value: Trace): TraceValues;
151
+ function toString(value: Trace): TraceValue;
144
152
  }
145
153
  export declare enum TraceFormat {
146
154
  Text = "text",
@@ -154,7 +162,7 @@ export interface TraceOptions {
154
162
  traceFormat?: TraceFormat;
155
163
  }
156
164
  export interface SetTraceParams {
157
- value: TraceValues;
165
+ value: TraceValue;
158
166
  }
159
167
  export declare namespace SetTraceNotification {
160
168
  const type: NotificationType<SetTraceParams>;
@@ -227,11 +235,7 @@ export interface RequestCancellationReceiverStrategy {
227
235
  export declare namespace RequestCancellationReceiverStrategy {
228
236
  function is(value: any): value is RequestCancellationReceiverStrategy;
229
237
  }
230
- /**
231
- * This will break with the next major version and will become
232
- * export type CancellationReceiverStrategy = IdCancellationReceiverStrategy | RequestCancellationReceiverStrategy;
233
- */
234
- export type CancellationReceiverStrategy = IdCancellationReceiverStrategy;
238
+ export type CancellationReceiverStrategy = IdCancellationReceiverStrategy | RequestCancellationReceiverStrategy;
235
239
  export declare namespace CancellationReceiverStrategy {
236
240
  const Message: CancellationReceiverStrategy;
237
241
  function is(value: any): value is CancellationReceiverStrategy;
@@ -275,74 +279,79 @@ export declare namespace CancellationStrategy {
275
279
  function is(value: any): value is CancellationStrategy;
276
280
  }
277
281
  export interface MessageStrategy {
278
- handleMessage(message: Message, next: (message: Message) => void): void;
282
+ handleMessage(message: Message, next: (message: Message) => NotificationResult): NotificationResult;
279
283
  }
280
284
  export declare namespace MessageStrategy {
281
285
  function is(value: any): value is MessageStrategy;
282
286
  }
287
+ /**
288
+ * Connection options. A valid connection option must have at least a
289
+ * `CancellationStrategy` or a `MessageStrategy` or a `ConnectionStrategy`.
290
+ */
283
291
  export interface ConnectionOptions {
284
292
  cancellationStrategy?: CancellationStrategy;
285
293
  connectionStrategy?: ConnectionStrategy;
286
294
  messageStrategy?: MessageStrategy;
295
+ maxParallelism?: number;
287
296
  }
288
297
  export declare namespace ConnectionOptions {
289
298
  function is(value: any): value is ConnectionOptions;
290
299
  }
291
300
  export interface MessageConnection {
292
301
  sendRequest<R, E>(type: RequestType0<R, E>, token?: CancellationToken): Promise<R>;
293
- sendRequest<P, R, E>(type: RequestType<P, R, E>, params: P, token?: CancellationToken): Promise<R>;
294
- sendRequest<P1, R, E>(type: RequestType1<P1, R, E>, p1: P1, token?: CancellationToken): Promise<R>;
295
- sendRequest<P1, P2, R, E>(type: RequestType2<P1, P2, R, E>, p1: P1, p2: P2, token?: CancellationToken): Promise<R>;
296
- sendRequest<P1, P2, P3, R, E>(type: RequestType3<P1, P2, P3, R, E>, p1: P1, p2: P2, p3: P3, token?: CancellationToken): Promise<R>;
297
- sendRequest<P1, P2, P3, P4, R, E>(type: RequestType4<P1, P2, P3, P4, R, E>, p1: P1, p2: P2, p3: P3, p4: P4, token?: CancellationToken): Promise<R>;
298
- sendRequest<P1, P2, P3, P4, P5, R, E>(type: RequestType5<P1, P2, P3, P4, P5, R, E>, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, token?: CancellationToken): Promise<R>;
299
- sendRequest<P1, P2, P3, P4, P5, P6, R, E>(type: RequestType6<P1, P2, P3, P4, P5, P6, R, E>, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, token?: CancellationToken): Promise<R>;
300
- sendRequest<P1, P2, P3, P4, P5, P6, P7, R, E>(type: RequestType7<P1, P2, P3, P4, P5, P6, P7, R, E>, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, token?: CancellationToken): Promise<R>;
301
- sendRequest<P1, P2, P3, P4, P5, P6, P7, P8, R, E>(type: RequestType8<P1, P2, P3, P4, P5, P6, P7, P8, R, E>, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, token?: CancellationToken): Promise<R>;
302
- sendRequest<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>(type: RequestType9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9, token?: CancellationToken): Promise<R>;
302
+ sendRequest<P, R, E>(type: RequestType<P, R, E>, params: NoInfer<RequestParam<P>>, token?: CancellationToken): Promise<R>;
303
+ sendRequest<P1, R, E>(type: RequestType1<P1, R, E>, p1: NoInfer<RequestParam<P1>>, token?: CancellationToken): Promise<R>;
304
+ sendRequest<P1, P2, R, E>(type: RequestType2<P1, P2, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, token?: CancellationToken): Promise<R>;
305
+ sendRequest<P1, P2, P3, R, E>(type: RequestType3<P1, P2, P3, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, token?: CancellationToken): Promise<R>;
306
+ sendRequest<P1, P2, P3, P4, R, E>(type: RequestType4<P1, P2, P3, P4, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, token?: CancellationToken): Promise<R>;
307
+ sendRequest<P1, P2, P3, P4, P5, R, E>(type: RequestType5<P1, P2, P3, P4, P5, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, token?: CancellationToken): Promise<R>;
308
+ sendRequest<P1, P2, P3, P4, P5, P6, R, E>(type: RequestType6<P1, P2, P3, P4, P5, P6, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, token?: CancellationToken): Promise<R>;
309
+ sendRequest<P1, P2, P3, P4, P5, P6, P7, R, E>(type: RequestType7<P1, P2, P3, P4, P5, P6, P7, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>, token?: CancellationToken): Promise<R>;
310
+ sendRequest<P1, P2, P3, P4, P5, P6, P7, P8, R, E>(type: RequestType8<P1, P2, P3, P4, P5, P6, P7, P8, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>, p8: NoInfer<RequestParam<P8>>, token?: CancellationToken): Promise<R>;
311
+ sendRequest<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>(type: RequestType9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>, p8: NoInfer<RequestParam<P8>>, p9: NoInfer<RequestParam<P9>>, token?: CancellationToken): Promise<R>;
303
312
  sendRequest<R>(method: string, r0?: ParameterStructures | any, ...rest: any[]): Promise<R>;
304
- onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): Disposable;
305
- onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): Disposable;
306
- onRequest<P1, R, E>(type: RequestType1<P1, R, E>, handler: RequestHandler1<P1, R, E>): Disposable;
307
- onRequest<P1, P2, R, E>(type: RequestType2<P1, P2, R, E>, handler: RequestHandler2<P1, P2, R, E>): Disposable;
308
- onRequest<P1, P2, P3, R, E>(type: RequestType3<P1, P2, P3, R, E>, handler: RequestHandler3<P1, P2, P3, R, E>): Disposable;
309
- onRequest<P1, P2, P3, P4, R, E>(type: RequestType4<P1, P2, P3, P4, R, E>, handler: RequestHandler4<P1, P2, P3, P4, R, E>): Disposable;
310
- onRequest<P1, P2, P3, P4, P5, R, E>(type: RequestType5<P1, P2, P3, P4, P5, R, E>, handler: RequestHandler5<P1, P2, P3, P4, P5, R, E>): Disposable;
311
- onRequest<P1, P2, P3, P4, P5, P6, R, E>(type: RequestType6<P1, P2, P3, P4, P5, P6, R, E>, handler: RequestHandler6<P1, P2, P3, P4, P5, P6, R, E>): Disposable;
312
- onRequest<P1, P2, P3, P4, P5, P6, P7, R, E>(type: RequestType7<P1, P2, P3, P4, P5, P6, P7, R, E>, handler: RequestHandler7<P1, P2, P3, P4, P5, P6, P7, R, E>): Disposable;
313
- onRequest<P1, P2, P3, P4, P5, P6, P7, P8, R, E>(type: RequestType8<P1, P2, P3, P4, P5, P6, P7, P8, R, E>, handler: RequestHandler8<P1, P2, P3, P4, P5, P6, P7, P8, R, E>): Disposable;
314
- onRequest<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>(type: RequestType9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>, handler: RequestHandler9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>): Disposable;
313
+ onRequest<R, E>(type: RequestType0<R, E>, handler: NoInfer<RequestHandler0<R, E>>): Disposable;
314
+ onRequest<P, R, E>(type: RequestType<P, R, E>, handler: NoInfer<RequestHandler<P, R, E>>): Disposable;
315
+ onRequest<P1, R, E>(type: RequestType1<P1, R, E>, handler: NoInfer<RequestHandler1<P1, R, E>>): Disposable;
316
+ onRequest<P1, P2, R, E>(type: RequestType2<P1, P2, R, E>, handler: NoInfer<RequestHandler2<P1, P2, R, E>>): Disposable;
317
+ onRequest<P1, P2, P3, R, E>(type: RequestType3<P1, P2, P3, R, E>, handler: NoInfer<RequestHandler3<P1, P2, P3, R, E>>): Disposable;
318
+ onRequest<P1, P2, P3, P4, R, E>(type: RequestType4<P1, P2, P3, P4, R, E>, handler: NoInfer<RequestHandler4<P1, P2, P3, P4, R, E>>): Disposable;
319
+ onRequest<P1, P2, P3, P4, P5, R, E>(type: RequestType5<P1, P2, P3, P4, P5, R, E>, handler: NoInfer<RequestHandler5<P1, P2, P3, P4, P5, R, E>>): Disposable;
320
+ onRequest<P1, P2, P3, P4, P5, P6, R, E>(type: RequestType6<P1, P2, P3, P4, P5, P6, R, E>, handler: NoInfer<RequestHandler6<P1, P2, P3, P4, P5, P6, R, E>>): Disposable;
321
+ onRequest<P1, P2, P3, P4, P5, P6, P7, R, E>(type: RequestType7<P1, P2, P3, P4, P5, P6, P7, R, E>, handler: NoInfer<RequestHandler7<P1, P2, P3, P4, P5, P6, P7, R, E>>): Disposable;
322
+ onRequest<P1, P2, P3, P4, P5, P6, P7, P8, R, E>(type: RequestType8<P1, P2, P3, P4, P5, P6, P7, P8, R, E>, handler: NoInfer<RequestHandler8<P1, P2, P3, P4, P5, P6, P7, P8, R, E>>): Disposable;
323
+ onRequest<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>(type: RequestType9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>, handler: NoInfer<RequestHandler9<P1, P2, P3, P4, P5, P6, P7, P8, P9, R, E>>): Disposable;
315
324
  onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): Disposable;
316
325
  onRequest(handler: StarRequestHandler): Disposable;
317
326
  hasPendingResponse(): boolean;
318
327
  sendNotification(type: NotificationType0): Promise<void>;
319
- sendNotification<P>(type: NotificationType<P>, params?: P): Promise<void>;
320
- sendNotification<P1>(type: NotificationType1<P1>, p1: P1): Promise<void>;
321
- sendNotification<P1, P2>(type: NotificationType2<P1, P2>, p1: P1, p2: P2): Promise<void>;
322
- sendNotification<P1, P2, P3>(type: NotificationType3<P1, P2, P3>, p1: P1, p2: P2, p3: P3): Promise<void>;
323
- sendNotification<P1, P2, P3, P4>(type: NotificationType4<P1, P2, P3, P4>, p1: P1, p2: P2, p3: P3, p4: P4): Promise<void>;
324
- sendNotification<P1, P2, P3, P4, P5>(type: NotificationType5<P1, P2, P3, P4, P5>, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5): Promise<void>;
325
- sendNotification<P1, P2, P3, P4, P5, P6>(type: NotificationType6<P1, P2, P3, P4, P5, P6>, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6): Promise<void>;
326
- sendNotification<P1, P2, P3, P4, P5, P6, P7>(type: NotificationType7<P1, P2, P3, P4, P5, P6, P7>, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7): Promise<void>;
327
- sendNotification<P1, P2, P3, P4, P5, P6, P7, P8>(type: NotificationType8<P1, P2, P3, P4, P5, P6, P7, P8>, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8): Promise<void>;
328
- sendNotification<P1, P2, P3, P4, P5, P6, P7, P8, P9>(type: NotificationType9<P1, P2, P3, P4, P5, P6, P7, P8, P9>, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9): Promise<void>;
328
+ sendNotification<P>(type: NotificationType<P>, params?: NoInfer<RequestParam<P>>): Promise<void>;
329
+ sendNotification<P1>(type: NotificationType1<P1>, p1: NoInfer<RequestParam<P1>>): Promise<void>;
330
+ sendNotification<P1, P2>(type: NotificationType2<P1, P2>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>): Promise<void>;
331
+ sendNotification<P1, P2, P3>(type: NotificationType3<P1, P2, P3>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>): Promise<void>;
332
+ sendNotification<P1, P2, P3, P4>(type: NotificationType4<P1, P2, P3, P4>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>): Promise<void>;
333
+ sendNotification<P1, P2, P3, P4, P5>(type: NotificationType5<P1, P2, P3, P4, P5>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>): Promise<void>;
334
+ sendNotification<P1, P2, P3, P4, P5, P6>(type: NotificationType6<P1, P2, P3, P4, P5, P6>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>): Promise<void>;
335
+ sendNotification<P1, P2, P3, P4, P5, P6, P7>(type: NotificationType7<P1, P2, P3, P4, P5, P6, P7>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>): Promise<void>;
336
+ sendNotification<P1, P2, P3, P4, P5, P6, P7, P8>(type: NotificationType8<P1, P2, P3, P4, P5, P6, P7, P8>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>, p8: NoInfer<RequestParam<P8>>): Promise<void>;
337
+ sendNotification<P1, P2, P3, P4, P5, P6, P7, P8, P9>(type: NotificationType9<P1, P2, P3, P4, P5, P6, P7, P8, P9>, p1: NoInfer<RequestParam<P1>>, p2: NoInfer<RequestParam<P2>>, p3: NoInfer<RequestParam<P3>>, p4: NoInfer<RequestParam<P4>>, p5: NoInfer<RequestParam<P5>>, p6: NoInfer<RequestParam<P6>>, p7: NoInfer<RequestParam<P7>>, p8: NoInfer<RequestParam<P8>>, p9: NoInfer<RequestParam<P9>>): Promise<void>;
329
338
  sendNotification(method: string, r0?: ParameterStructures | any, ...rest: any[]): Promise<void>;
330
339
  onNotification(type: NotificationType0, handler: NotificationHandler0): Disposable;
331
- onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): Disposable;
332
- onNotification<P1>(type: NotificationType1<P1>, handler: NotificationHandler1<P1>): Disposable;
333
- onNotification<P1, P2>(type: NotificationType2<P1, P2>, handler: NotificationHandler2<P1, P2>): Disposable;
334
- onNotification<P1, P2, P3>(type: NotificationType3<P1, P2, P3>, handler: NotificationHandler3<P1, P2, P3>): Disposable;
335
- onNotification<P1, P2, P3, P4>(type: NotificationType4<P1, P2, P3, P4>, handler: NotificationHandler4<P1, P2, P3, P4>): Disposable;
336
- onNotification<P1, P2, P3, P4, P5>(type: NotificationType5<P1, P2, P3, P4, P5>, handler: NotificationHandler5<P1, P2, P3, P4, P5>): Disposable;
337
- onNotification<P1, P2, P3, P4, P5, P6>(type: NotificationType6<P1, P2, P3, P4, P5, P6>, handler: NotificationHandler6<P1, P2, P3, P4, P5, P6>): Disposable;
338
- onNotification<P1, P2, P3, P4, P5, P6, P7>(type: NotificationType7<P1, P2, P3, P4, P5, P6, P7>, handler: NotificationHandler7<P1, P2, P3, P4, P5, P6, P7>): Disposable;
339
- onNotification<P1, P2, P3, P4, P5, P6, P7, P8>(type: NotificationType8<P1, P2, P3, P4, P5, P6, P7, P8>, handler: NotificationHandler8<P1, P2, P3, P4, P5, P6, P7, P8>): Disposable;
340
- onNotification<P1, P2, P3, P4, P5, P6, P7, P8, P9>(type: NotificationType9<P1, P2, P3, P4, P5, P6, P7, P8, P9>, handler: NotificationHandler9<P1, P2, P3, P4, P5, P6, P7, P8, P9>): Disposable;
340
+ onNotification<P>(type: NotificationType<P>, handler: NoInfer<NotificationHandler<P>>): Disposable;
341
+ onNotification<P1>(type: NotificationType1<P1>, handler: NoInfer<NotificationHandler1<P1>>): Disposable;
342
+ onNotification<P1, P2>(type: NotificationType2<P1, P2>, handler: NoInfer<NotificationHandler2<P1, P2>>): Disposable;
343
+ onNotification<P1, P2, P3>(type: NotificationType3<P1, P2, P3>, handler: NoInfer<NotificationHandler3<P1, P2, P3>>): Disposable;
344
+ onNotification<P1, P2, P3, P4>(type: NotificationType4<P1, P2, P3, P4>, handler: NoInfer<NotificationHandler4<P1, P2, P3, P4>>): Disposable;
345
+ onNotification<P1, P2, P3, P4, P5>(type: NotificationType5<P1, P2, P3, P4, P5>, handler: NoInfer<NotificationHandler5<P1, P2, P3, P4, P5>>): Disposable;
346
+ onNotification<P1, P2, P3, P4, P5, P6>(type: NotificationType6<P1, P2, P3, P4, P5, P6>, handler: NoInfer<NotificationHandler6<P1, P2, P3, P4, P5, P6>>): Disposable;
347
+ onNotification<P1, P2, P3, P4, P5, P6, P7>(type: NotificationType7<P1, P2, P3, P4, P5, P6, P7>, handler: NoInfer<NotificationHandler7<P1, P2, P3, P4, P5, P6, P7>>): Disposable;
348
+ onNotification<P1, P2, P3, P4, P5, P6, P7, P8>(type: NotificationType8<P1, P2, P3, P4, P5, P6, P7, P8>, handler: NoInfer<NotificationHandler8<P1, P2, P3, P4, P5, P6, P7, P8>>): Disposable;
349
+ onNotification<P1, P2, P3, P4, P5, P6, P7, P8, P9>(type: NotificationType9<P1, P2, P3, P4, P5, P6, P7, P8, P9>, handler: NoInfer<NotificationHandler9<P1, P2, P3, P4, P5, P6, P7, P8, P9>>): Disposable;
341
350
  onNotification(method: string, handler: GenericNotificationHandler): Disposable;
342
351
  onNotification(handler: StarNotificationHandler): Disposable;
343
352
  onUnhandledNotification: Event<NotificationMessage>;
344
- onProgress<P>(type: ProgressType<P>, token: string | number, handler: NotificationHandler<P>): Disposable;
345
- sendProgress<P>(type: ProgressType<P>, token: string | number, value: P): Promise<void>;
353
+ onProgress<P>(type: ProgressType<P>, token: string | number, handler: NoInfer<NotificationHandler<P>>): Disposable;
354
+ sendProgress<P>(type: ProgressType<P>, token: string | number, value: NoInfer<RequestParam<P>>): Promise<void>;
346
355
  onUnhandledProgress: Event<ProgressParams<any>>;
347
356
  trace(value: Trace, tracer: Tracer, sendNotification?: boolean): Promise<void>;
348
357
  trace(value: Trace, tracer: Tracer, traceOptions?: TraceOptions): Promise<void>;