@adminide-stack/extension-api 5.0.1-alpha.9 → 6.0.1-alpha.0

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 (229) hide show
  1. package/lib/connections/jsonrpc2/connection.js +5 -13
  2. package/lib/connections/jsonrpc2/events.js +3 -4
  3. package/lib/connections/jsonrpc2/linkedMap.js +3 -4
  4. package/lib/connections/jsonrpc2/messages.js +6 -7
  5. package/lib/connections/jsonrpc2/test-helper.js +4 -6
  6. package/lib/connections/jsonrpc2/trace.js +3 -6
  7. package/lib/connections/jsonrpc2/transport.js +3 -5
  8. package/lib/connections/jsonrpc2/transports/webWorker.js +3 -5
  9. package/lib/connections/proxy/proxy.js +7 -8
  10. package/lib/connections/remote-rpc/browser-remote-rpc.js +3 -9
  11. package/lib/connections/remote-rpc/rxjs-websockets.d.ts +1 -1
  12. package/lib/connections/remote-rpc/rxjs-websockets.js +4 -8
  13. package/lib/constants/action-types.js +5 -6
  14. package/lib/constants/types.js +2 -3
  15. package/lib/core/expr/evaluator.js +6 -9
  16. package/lib/core/expr/lexer.js +6 -7
  17. package/lib/core/expr/parser.js +4 -6
  18. package/lib/core/types/ext-host-types.js +5 -8
  19. package/lib/index.d.ts +2 -0
  20. package/lib/index.js +1 -8
  21. package/lib/interfaces/context.d.ts +1 -1
  22. package/lib/interfaces/contributions/contribution.js +3 -4
  23. package/lib/interfaces/ext-services/ext-services.d.ts +2 -1
  24. package/lib/interfaces/generated-models.d.ts +1237 -1073
  25. package/lib/interfaces/generated-models.js +88 -63
  26. package/lib/interfaces/graphql.d.ts +1 -1
  27. package/lib/interfaces/graphql.js +1 -2
  28. package/lib/interfaces/model.js +2 -3
  29. package/lib/interfaces/platform-context.d.ts +1 -1
  30. package/lib/interfaces/text-document.js +4 -6
  31. package/lib/interfaces/webview/webview.js +2 -3
  32. package/lib/protocol/client.protocol.js +3 -5
  33. package/lib/protocol/common.protocol.js +6 -8
  34. package/lib/protocol/editor-missing-types.js +2 -3
  35. package/lib/protocol/index.d.ts +3 -0
  36. package/lib/protocol/proxy-identifier.js +8 -9
  37. package/lib/protocol/rpc-logger.js +3 -6
  38. package/lib/protocol/rpc-protocol.js +10 -20
  39. package/lib/protocol/server.protocol.js +14 -16
  40. package/lib/protocol/shared/editor.js +4 -6
  41. package/lib/protocol/temporary-types.js +4 -13
  42. package/lib/protocol/utils/lazy-promise.js +3 -6
  43. package/lib/utils/abortable-rx.d.ts +32 -0
  44. package/lib/utils/abortable-rx.js +112 -0
  45. package/lib/utils/errors.js +3 -4
  46. package/lib/utils/extensions.js +3 -5
  47. package/lib/utils/helper.test.js +2 -3
  48. package/lib/utils/paths-util.js +5 -7
  49. package/lib/utils/rxjs/combineLatestOrDefault.js +3 -10
  50. package/lib/utils/util.js +7 -9
  51. package/lib/worker-lib/webWorkerLink.d.ts +1 -1
  52. package/package.json +7 -5
  53. package/lib/connections/jsonrpc2/connection.js.map +0 -1
  54. package/lib/connections/jsonrpc2/connection.test.js +0 -441
  55. package/lib/connections/jsonrpc2/connection.test.js.map +0 -1
  56. package/lib/connections/jsonrpc2/events.js.map +0 -1
  57. package/lib/connections/jsonrpc2/index.js +0 -8
  58. package/lib/connections/jsonrpc2/index.js.map +0 -1
  59. package/lib/connections/jsonrpc2/linkedMap.js.map +0 -1
  60. package/lib/connections/jsonrpc2/linkedMap.test.js +0 -60
  61. package/lib/connections/jsonrpc2/linkedMap.test.js.map +0 -1
  62. package/lib/connections/jsonrpc2/messages.js.map +0 -1
  63. package/lib/connections/jsonrpc2/test-helper.js.map +0 -1
  64. package/lib/connections/jsonrpc2/trace.js.map +0 -1
  65. package/lib/connections/jsonrpc2/transport.js.map +0 -1
  66. package/lib/connections/jsonrpc2/transports/browser-websocket.d.ts +0 -0
  67. package/lib/connections/jsonrpc2/transports/browser-websocket.js +0 -189
  68. package/lib/connections/jsonrpc2/transports/browser-websocket.js.map +0 -1
  69. package/lib/connections/jsonrpc2/transports/merged.d.ts +0 -0
  70. package/lib/connections/jsonrpc2/transports/merged.js +0 -239
  71. package/lib/connections/jsonrpc2/transports/merged.js.map +0 -1
  72. package/lib/connections/jsonrpc2/transports/webSocket.d.ts +0 -0
  73. package/lib/connections/jsonrpc2/transports/webSocket.js +0 -138
  74. package/lib/connections/jsonrpc2/transports/webSocket.js.map +0 -1
  75. package/lib/connections/jsonrpc2/transports/webWorker.js.map +0 -1
  76. package/lib/connections/proxy/index.js +0 -2
  77. package/lib/connections/proxy/index.js.map +0 -1
  78. package/lib/connections/proxy/proxy.js.map +0 -1
  79. package/lib/connections/proxy/proxy.test.js +0 -53
  80. package/lib/connections/proxy/proxy.test.js.map +0 -1
  81. package/lib/connections/remote-rpc/browser-remote-rpc.js.map +0 -1
  82. package/lib/connections/remote-rpc/browser-server-rpc.test.d.ts +0 -0
  83. package/lib/connections/remote-rpc/browser-server-rpc.test.js +0 -317
  84. package/lib/connections/remote-rpc/browser-server-rpc.test.js.map +0 -1
  85. package/lib/connections/remote-rpc/index.js +0 -2
  86. package/lib/connections/remote-rpc/index.js.map +0 -1
  87. package/lib/connections/remote-rpc/old-browser-remote-rpc.js +0 -37
  88. package/lib/connections/remote-rpc/old-browser-remote-rpc.js.map +0 -1
  89. package/lib/connections/remote-rpc/rxjs-websockets.js.map +0 -1
  90. package/lib/constants/action-types.js.map +0 -1
  91. package/lib/constants/index.js +0 -3
  92. package/lib/constants/index.js.map +0 -1
  93. package/lib/constants/types.js.map +0 -1
  94. package/lib/core/expr/evaluator.js.map +0 -1
  95. package/lib/core/expr/evaluator.test.js +0 -50
  96. package/lib/core/expr/evaluator.test.js.map +0 -1
  97. package/lib/core/expr/index.js +0 -4
  98. package/lib/core/expr/index.js.map +0 -1
  99. package/lib/core/expr/lexer.js.map +0 -1
  100. package/lib/core/expr/parser.js.map +0 -1
  101. package/lib/core/index.js +0 -3
  102. package/lib/core/index.js.map +0 -1
  103. package/lib/core/types/ext-host-types-bk.d.ts +0 -0
  104. package/lib/core/types/ext-host-types-bk.js +0 -1275
  105. package/lib/core/types/ext-host-types-bk.js.map +0 -1
  106. package/lib/core/types/ext-host-types.js.map +0 -1
  107. package/lib/core/types/index.js +0 -2
  108. package/lib/core/types/index.js.map +0 -1
  109. package/lib/errors/errors.js +0 -9
  110. package/lib/errors/errors.js.map +0 -1
  111. package/lib/errors/index.js +0 -2
  112. package/lib/errors/index.js.map +0 -1
  113. package/lib/index.js.map +0 -1
  114. package/lib/interfaces/command.js +0 -2
  115. package/lib/interfaces/command.js.map +0 -1
  116. package/lib/interfaces/configuration.js +0 -2
  117. package/lib/interfaces/configuration.js.map +0 -1
  118. package/lib/interfaces/connection.js +0 -2
  119. package/lib/interfaces/connection.js.map +0 -1
  120. package/lib/interfaces/context.js +0 -2
  121. package/lib/interfaces/context.js.map +0 -1
  122. package/lib/interfaces/contributions/contribution-service.js +0 -2
  123. package/lib/interfaces/contributions/contribution-service.js.map +0 -1
  124. package/lib/interfaces/contributions/contribution.js.map +0 -1
  125. package/lib/interfaces/contributions/index.js +0 -3
  126. package/lib/interfaces/contributions/index.js.map +0 -1
  127. package/lib/interfaces/controller.js +0 -2
  128. package/lib/interfaces/controller.js.map +0 -1
  129. package/lib/interfaces/errors.js +0 -2
  130. package/lib/interfaces/errors.js.map +0 -1
  131. package/lib/interfaces/ext-services/contributon-registry.js +0 -2
  132. package/lib/interfaces/ext-services/contributon-registry.js.map +0 -1
  133. package/lib/interfaces/ext-services/ext-services.js +0 -2
  134. package/lib/interfaces/ext-services/ext-services.js.map +0 -1
  135. package/lib/interfaces/ext-services/extension-service.js +0 -2
  136. package/lib/interfaces/ext-services/extension-service.js.map +0 -1
  137. package/lib/interfaces/ext-services/index.js +0 -9
  138. package/lib/interfaces/ext-services/index.js.map +0 -1
  139. package/lib/interfaces/ext-services/model-service.js +0 -2
  140. package/lib/interfaces/ext-services/model-service.js.map +0 -1
  141. package/lib/interfaces/ext-services/panel-view-registry.js +0 -2
  142. package/lib/interfaces/ext-services/panel-view-registry.js.map +0 -1
  143. package/lib/interfaces/ext-services/settings-service.js +0 -2
  144. package/lib/interfaces/ext-services/settings-service.js.map +0 -1
  145. package/lib/interfaces/ext-services/view-service.js +0 -2
  146. package/lib/interfaces/ext-services/view-service.js.map +0 -1
  147. package/lib/interfaces/ext-services/viewer-service.js +0 -4
  148. package/lib/interfaces/ext-services/viewer-service.js.map +0 -1
  149. package/lib/interfaces/extension-manifest.js +0 -2
  150. package/lib/interfaces/extension-manifest.js.map +0 -1
  151. package/lib/interfaces/extension.js +0 -2
  152. package/lib/interfaces/extension.js.map +0 -1
  153. package/lib/interfaces/generated-models.js.map +0 -1
  154. package/lib/interfaces/graphql.js.map +0 -1
  155. package/lib/interfaces/index.js +0 -22
  156. package/lib/interfaces/index.js.map +0 -1
  157. package/lib/interfaces/languages-types.js +0 -2
  158. package/lib/interfaces/languages-types.js.map +0 -1
  159. package/lib/interfaces/model.js.map +0 -1
  160. package/lib/interfaces/plain-types.js +0 -5
  161. package/lib/interfaces/plain-types.js.map +0 -1
  162. package/lib/interfaces/plainTypes.js +0 -2
  163. package/lib/interfaces/plainTypes.js.map +0 -1
  164. package/lib/interfaces/platform-context.js +0 -2
  165. package/lib/interfaces/platform-context.js.map +0 -1
  166. package/lib/interfaces/react-props/action-item.js +0 -2
  167. package/lib/interfaces/react-props/action-item.js.map +0 -1
  168. package/lib/interfaces/react-props/extension-controller.js +0 -2
  169. package/lib/interfaces/react-props/extension-controller.js.map +0 -1
  170. package/lib/interfaces/react-props/index.js +0 -4
  171. package/lib/interfaces/react-props/index.js.map +0 -1
  172. package/lib/interfaces/react-props/platform-context.js +0 -2
  173. package/lib/interfaces/react-props/platform-context.js.map +0 -1
  174. package/lib/interfaces/registry-extension.js +0 -2
  175. package/lib/interfaces/registry-extension.js.map +0 -1
  176. package/lib/interfaces/settings.js +0 -2
  177. package/lib/interfaces/settings.js.map +0 -1
  178. package/lib/interfaces/text-document.js.map +0 -1
  179. package/lib/interfaces/webview/index.js +0 -4
  180. package/lib/interfaces/webview/index.js.map +0 -1
  181. package/lib/interfaces/webview/webview-manager-service.js +0 -2
  182. package/lib/interfaces/webview/webview-manager-service.js.map +0 -1
  183. package/lib/interfaces/webview/webview-port-mapping.js +0 -2
  184. package/lib/interfaces/webview/webview-port-mapping.js.map +0 -1
  185. package/lib/interfaces/webview/webview.js.map +0 -1
  186. package/lib/main.d.ts +0 -0
  187. package/lib/main.js +0 -3
  188. package/lib/main.js.map +0 -1
  189. package/lib/protocol/client.protocol.js.map +0 -1
  190. package/lib/protocol/common.protocol.js.map +0 -1
  191. package/lib/protocol/editor-missing-types.js.map +0 -1
  192. package/lib/protocol/index.js +0 -8
  193. package/lib/protocol/index.js.map +0 -1
  194. package/lib/protocol/proxy-identifier.js.map +0 -1
  195. package/lib/protocol/rpc-logger.js.map +0 -1
  196. package/lib/protocol/rpc-protocol.js.map +0 -1
  197. package/lib/protocol/rpc-protocol.test.js +0 -169
  198. package/lib/protocol/rpc-protocol.test.js.map +0 -1
  199. package/lib/protocol/server.protocol-bk.d.ts +0 -0
  200. package/lib/protocol/server.protocol-bk.js +0 -719
  201. package/lib/protocol/server.protocol-bk.js.map +0 -1
  202. package/lib/protocol/server.protocol.js.map +0 -1
  203. package/lib/protocol/shared/editor.js.map +0 -1
  204. package/lib/protocol/shared/tasks.js +0 -3
  205. package/lib/protocol/shared/tasks.js.map +0 -1
  206. package/lib/protocol/temporary-types.js.map +0 -1
  207. package/lib/protocol/utils/index.js +0 -2
  208. package/lib/protocol/utils/index.js.map +0 -1
  209. package/lib/protocol/utils/lazy-promise.js.map +0 -1
  210. package/lib/utils/errors.js.map +0 -1
  211. package/lib/utils/extensions.js.map +0 -1
  212. package/lib/utils/helper.test.js.map +0 -1
  213. package/lib/utils/index.js +0 -8
  214. package/lib/utils/index.js.map +0 -1
  215. package/lib/utils/paths-util.js.map +0 -1
  216. package/lib/utils/rxjs/combineLatestOrDefault.js.map +0 -1
  217. package/lib/utils/rxjs/combineLatestOrDefault.test.js +0 -50
  218. package/lib/utils/rxjs/combineLatestOrDefault.test.js.map +0 -1
  219. package/lib/utils/rxjs/index.js +0 -2
  220. package/lib/utils/rxjs/index.js.map +0 -1
  221. package/lib/utils/util.js.map +0 -1
  222. package/lib/worker-lib/MessageTypes.js +0 -6
  223. package/lib/worker-lib/MessageTypes.js.map +0 -1
  224. package/lib/worker-lib/index.js +0 -3
  225. package/lib/worker-lib/index.js.map +0 -1
  226. package/lib/worker-lib/webWorkerLink.js +0 -90
  227. package/lib/worker-lib/webWorkerLink.js.map +0 -1
  228. package/lib/worker-lib/workerUtils.js +0 -173
  229. package/lib/worker-lib/workerUtils.js.map +0 -1
@@ -1,14 +1,5 @@
1
- /* tslint:disable */
2
- import { RunOnceScheduler } from '@vscode-alt/monaco-editor/esm/vs/base/common/async';
3
- import { CancellationToken, CancellationTokenSource } from '@vscode-alt/monaco-editor/esm/vs/base/common/cancellation';
4
- import * as errors from '@vscode-alt/monaco-editor/esm/vs/base/common/errors';
5
- import { Emitter } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
6
- import { Disposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
7
- import { transformIncomingURIs } from '@vscode-alt/monaco-editor/esm/vs/base/common/uriIpc';
8
- import { LazyPromise } from './utils';
9
- import { ProxyIdentifier, getStringIdentifierForProxy } from './proxy-identifier';
10
- import { VSBuffer } from '@vscode-alt/monaco-editor/esm/vs/base/common/buffer';
11
- export function safeStringify(obj, replacer) {
1
+ import {RunOnceScheduler}from'@vscode-alt/monaco-editor/esm/vs/base/common/async.js';import {CancellationTokenSource,CancellationToken}from'@vscode-alt/monaco-editor/esm/vs/base/common/cancellation.js';import*as errors from'@vscode-alt/monaco-editor/esm/vs/base/common/errors.js';import {Emitter}from'@vscode-alt/monaco-editor/esm/vs/base/common/event.js';import {Disposable}from'@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle.js';import {transformIncomingURIs}from'@vscode-alt/monaco-editor/esm/vs/base/common/uriIpc.js';import {LazyPromise}from'./utils/lazy-promise.js';import {ProxyIdentifier,getStringIdentifierForProxy}from'./proxy-identifier.js';import {VSBuffer}from'@vscode-alt/monaco-editor/esm/vs/base/common/buffer.js';/* tslint:disable */
2
+ function safeStringify(obj, replacer) {
12
3
  try {
13
4
  return JSON.stringify(obj, replacer);
14
5
  }
@@ -27,18 +18,18 @@ function createURIReplacer(transformer) {
27
18
  return value;
28
19
  };
29
20
  }
30
- export var RequestInitiator;
21
+ var RequestInitiator;
31
22
  (function (RequestInitiator) {
32
23
  RequestInitiator[RequestInitiator["LocalSide"] = 0] = "LocalSide";
33
24
  RequestInitiator[RequestInitiator["OtherSide"] = 1] = "OtherSide";
34
25
  })(RequestInitiator || (RequestInitiator = {}));
35
- export var ResponsiveState;
26
+ var ResponsiveState;
36
27
  (function (ResponsiveState) {
37
28
  ResponsiveState[ResponsiveState["Responsive"] = 0] = "Responsive";
38
29
  ResponsiveState[ResponsiveState["Unresponsive"] = 1] = "Unresponsive";
39
30
  })(ResponsiveState || (ResponsiveState = {}));
40
31
  const noop = () => { };
41
- export class RPCProtocol extends Disposable {
32
+ class RPCProtocol extends Disposable {
42
33
  constructor(protocol, _localHostId = null, logger = null, transformer = null) {
43
34
  super();
44
35
  this._onDidChangeResponsiveState = this._register(new Emitter());
@@ -389,7 +380,7 @@ export class RPCProtocol extends Disposable {
389
380
  }
390
381
  }
391
382
  RPCProtocol.UNRESPONSIVE_TIME = 3 * 1000; // 3s
392
- export class MessageBuffer {
383
+ class MessageBuffer {
393
384
  static alloc(type, req, messageSize) {
394
385
  let result = new MessageBuffer(VSBuffer.alloc(messageSize + 1 /* type */ + 4 /* req */), 0);
395
386
  result.writeUInt8(type);
@@ -553,7 +544,7 @@ export class MessageBuffer {
553
544
  return arr;
554
545
  }
555
546
  }
556
- export class MessageIO {
547
+ class MessageIO {
557
548
  static _arrayContainsBuffer(arr) {
558
549
  for (let i = 0, len = arr.length; i < len; i++) {
559
550
  if (Buffer.isBuffer(arr[i])) {
@@ -719,7 +710,7 @@ export class MessageIO {
719
710
  return MessageBuffer.alloc(12 /* MessageType.ReplyErrEmpty */, req, 0).buffer;
720
711
  }
721
712
  }
722
- export var MessageType;
713
+ var MessageType;
723
714
  (function (MessageType) {
724
715
  MessageType[MessageType["RequestJSONArgs"] = 1] = "RequestJSONArgs";
725
716
  MessageType[MessageType["RequestJSONArgsWithCancellation"] = 2] = "RequestJSONArgsWithCancellation";
@@ -734,10 +725,9 @@ export var MessageType;
734
725
  MessageType[MessageType["ReplyErrError"] = 11] = "ReplyErrError";
735
726
  MessageType[MessageType["ReplyErrEmpty"] = 12] = "ReplyErrEmpty";
736
727
  })(MessageType || (MessageType = {}));
737
- export var ArgType;
728
+ var ArgType;
738
729
  (function (ArgType) {
739
730
  ArgType[ArgType["String"] = 1] = "String";
740
731
  ArgType[ArgType["Buffer"] = 2] = "Buffer";
741
732
  ArgType[ArgType["VSBuffer"] = 3] = "VSBuffer";
742
- })(ArgType || (ArgType = {}));
743
- //# sourceMappingURL=rpc-protocol.js.map
733
+ })(ArgType || (ArgType = {}));export{ArgType,MessageBuffer,MessageIO,MessageType,RPCProtocol,RequestInitiator,ResponsiveState,safeStringify};
@@ -1,28 +1,26 @@
1
- import { createExtHostContextProxyIdentifier as createExtId, createMainContextProxyIdentifier as createMainId } from './proxy-identifier';
2
- // -- proxy-identifiers are moved to `core` package
3
- export const MainContext = {
4
- MainThreadCommands: createMainId('MainThreadCommands'),
5
- MainThreadConfiguration: createMainId('MainThreadConfiguration'),
6
- MainThreadUrls: createMainId('MainThreadUrls'),
7
- MainThreadOrganization: createMainId('MainThreadOrganization'),
8
- MainThreadExtensionService: createMainId('MainThreadExtensionService'),
1
+ import {createMainContextProxyIdentifier,createExtHostContextProxyIdentifier}from'./proxy-identifier.js';// -- proxy-identifiers are moved to `core` package
2
+ const MainContext = {
3
+ MainThreadCommands: createMainContextProxyIdentifier('MainThreadCommands'),
4
+ MainThreadConfiguration: createMainContextProxyIdentifier('MainThreadConfiguration'),
5
+ MainThreadUrls: createMainContextProxyIdentifier('MainThreadUrls'),
6
+ MainThreadOrganization: createMainContextProxyIdentifier('MainThreadOrganization'),
7
+ MainThreadExtensionService: createMainContextProxyIdentifier('MainThreadExtensionService'),
9
8
  };
10
- export const ExtHostContext = {
9
+ const ExtHostContext = {
11
10
  // ExtHostTreeViews: createExtId<any>('ExtHostTreeViews'),
12
- ExtHostCommands: createExtId('ExtHostCommands'),
13
- ExtHostConfiguration: createExtId('ExtHostConfiguration'),
11
+ ExtHostCommands: createExtHostContextProxyIdentifier('ExtHostCommands'),
12
+ ExtHostConfiguration: createExtHostContextProxyIdentifier('ExtHostConfiguration'),
14
13
  // ExtHostDocuments: createExtId<ExtHostDocumentsShape>('ExtHostDocuments'),
15
- ExtHostExtensionService: createExtId('ExtHostExtensionService'),
16
- ExtHostLogService: createExtId('ExtHostLogService'),
14
+ ExtHostExtensionService: createExtHostContextProxyIdentifier('ExtHostExtensionService'),
15
+ ExtHostLogService: createExtHostContextProxyIdentifier('ExtHostLogService'),
17
16
  // ExtHostTerminalService: createExtId<ExtHostTerminalServiceShape>('ExtHostTerminalService'),
18
17
  // ExtHostSCM: createExtId<ExtHostSCMShape>('ExtHostSCM'),
19
18
  // ExtHostSearch: createExtId<ExtHostSearchShape>('ExtHostSearch'),
20
19
  // ExtHostTask: createExtId<ExtHostTaskShape>('ExtHostTask'),
21
- ExtHostOrganization: createExtId('ExtHostOrganization'),
20
+ ExtHostOrganization: createExtHostContextProxyIdentifier('ExtHostOrganization'),
22
21
  // ExtHostWindow: createExtId<ExtHostWindowShape>('ExtHostWindow'),
23
22
  // ExtHostWebviews: createExtId<ExtHostWebviewsShape>('ExtHostWebviews'),
24
23
  // ExtHostProgress: createMainId<ExtHostProgressShape>('ExtHostProgress', HostIdentifier.ServerExtHost),
25
24
  // ExtHostUrls: createExtId<ExtHostUrlsShape>('ExtHostUrls'),
26
25
  // ExtHostOutputService: createMainId<ExtHostOutputServiceShape>('ExtHostOutputService', HostIdentifier.ServerExtHost),
27
- };
28
- //# sourceMappingURL=server.protocol.js.map
26
+ };export{ExtHostContext,MainContext};
@@ -1,6 +1,5 @@
1
- /* tslint:disable */
2
- import { ACTIVE_GROUP, SIDE_GROUP } from '@workbench-stack/core';
3
- export function viewColumnToEditorGroup(editorGroupService, position) {
1
+ import {ACTIVE_GROUP,SIDE_GROUP}from'@workbench-stack/core';/* tslint:disable */
2
+ function viewColumnToEditorGroup(editorGroupService, position) {
4
3
  if (typeof position !== 'number' || position === ACTIVE_GROUP) {
5
4
  return ACTIVE_GROUP; // prefer active group when position is undefined or passed in as such
6
5
  }
@@ -16,8 +15,7 @@ export function viewColumnToEditorGroup(editorGroupService, position) {
16
15
  }
17
16
  return SIDE_GROUP; // open to the side if group not found or we are instructed to
18
17
  }
19
- export function editorGroupToViewColumn(editorGroupService, editorGroup) {
18
+ function editorGroupToViewColumn(editorGroupService, editorGroup) {
20
19
  const group = (typeof editorGroup === 'number') ? editorGroupService.getGroup(editorGroup) : editorGroup;
21
20
  return editorGroupService.getGroups(2 /* GroupsOrder.GRID_APPEARANCE */).indexOf(group);
22
- }
23
- //# sourceMappingURL=editor.js.map
21
+ }export{editorGroupToViewColumn,viewColumnToEditorGroup};
@@ -1,18 +1,10 @@
1
- export var modes;
1
+ var modes;
2
2
  (function (modes) {
3
- /**
4
- * @internal
5
- */
6
- let DraftMode;
7
3
  (function (DraftMode) {
8
4
  DraftMode[DraftMode["NotSupported"] = 0] = "NotSupported";
9
5
  DraftMode[DraftMode["InDraft"] = 1] = "InDraft";
10
6
  DraftMode[DraftMode["NotInDraft"] = 2] = "NotInDraft";
11
- })(DraftMode = modes.DraftMode || (modes.DraftMode = {}));
12
- /**
13
- * @internal
14
- */
15
- let CommentThreadCollapsibleState;
7
+ })(modes.DraftMode || (modes.DraftMode = {}));
16
8
  (function (CommentThreadCollapsibleState) {
17
9
  /**
18
10
  * Determines an item is collapsed
@@ -22,6 +14,5 @@ export var modes;
22
14
  * Determines an item is expanded
23
15
  */
24
16
  CommentThreadCollapsibleState[CommentThreadCollapsibleState["Expanded"] = 1] = "Expanded";
25
- })(CommentThreadCollapsibleState = modes.CommentThreadCollapsibleState || (modes.CommentThreadCollapsibleState = {}));
26
- })(modes || (modes = {}));
27
- //# sourceMappingURL=temporary-types.js.map
17
+ })(modes.CommentThreadCollapsibleState || (modes.CommentThreadCollapsibleState = {}));
18
+ })(modes || (modes = {}));export{modes};
@@ -1,7 +1,6 @@
1
- import { onUnexpectedError } from '@vscode-alt/monaco-editor/esm/vs/base/common/errors';
2
- // types taken from
1
+ import {onUnexpectedError}from'@vscode-alt/monaco-editor/esm/vs/base/common/errors.js';// types taken from
3
2
  // https://github.com/andimarek/micro-manager/blob/ac5333a1e0400f6f985ceb0edcbcdfc5a7a79988/src/ipc/ipcRemoteCom.ts
4
- export class LazyPromise {
3
+ class LazyPromise {
5
4
  constructor() {
6
5
  this._actual = null;
7
6
  this._actualOk = null;
@@ -60,6 +59,4 @@ export class LazyPromise {
60
59
  finally(callback) {
61
60
  return this._ensureActual().finally(callback);
62
61
  }
63
- }
64
- Symbol.toStringTag;
65
- //# sourceMappingURL=lazy-promise.js.map
62
+ }export{LazyPromise};
@@ -0,0 +1,32 @@
1
+ import { Observable, ObservableInput, OperatorFunction, Subscriber, TeardownLogic } from 'rxjs';
2
+ /**
3
+ * Creates an Observable just like RxJS `create`, but exposes an AbortSignal in addition to the subscriber
4
+ */
5
+ export declare const create: <T>(subscribe?: (subscriber: Subscriber<T>, signal: AbortSignal) => TeardownLogic) => Observable<T>;
6
+ /**
7
+ * Easiest way to wrap an abortable async function into a Promise.
8
+ * The factory is called every time the Observable is subscribed to, and the AbortSignal is aborted on unsubscription.
9
+ */
10
+ export declare const defer: <T>(factory: (signal: AbortSignal) => ObservableInput<T>) => Observable<T>;
11
+ /**
12
+ * Returns a Promise that resolves with the last emission of the given Observable,
13
+ * rejects if the Observable errors or rejects with an `AbortError` when the AbortSignal is aborted.
14
+ */
15
+ export declare const toPromise: <T>(observable: Observable<T>, signal?: AbortSignal) => Promise<T>;
16
+ /**
17
+ * Calls `next` for every emission and returns a Promise that resolves when the Observable completed, rejects if the
18
+ * Observable errors or rejects with an `AbortError` when the AbortSignal is aborted.
19
+ */
20
+ export declare const forEach: <T>(source: Observable<T>, next: (value: T) => void, signal?: AbortSignal) => Promise<void>;
21
+ /**
22
+ * Like RxJS `switchMap`, but passes an AbortSignal that is aborted when the source emits another element.
23
+ */
24
+ export declare const switchMap: <T, R>(project: (value: T, index: number, abortSignal: AbortSignal) => ObservableInput<R>) => OperatorFunction<T, R>;
25
+ /**
26
+ * Like RxJS `concatMap`, but passes an AbortSignal that is aborted when the returned Observable is unsubscribed from.
27
+ */
28
+ export declare const concatMap: <T, R>(project: (value: T, index: number, abortSignal: AbortSignal) => ObservableInput<R>) => OperatorFunction<T, R>;
29
+ /**
30
+ * Like RxJS `mergeMap`, but passes an AbortSignal that is aborted when the returned Observable is unsubscribed from.
31
+ */
32
+ export declare const mergeMap: <T, R>(project: (value: T, index: number, abortSignal: AbortSignal) => ObservableInput<R>) => OperatorFunction<T, R>;
@@ -0,0 +1,112 @@
1
+ import {Observable,Subscription,from}from'rxjs';import {switchMap as switchMap$1,concatMap as concatMap$1,mergeMap as mergeMap$1}from'rxjs/operators/index.js';/**
2
+ * Copied from https://github.com/felixfbecker/abortable-rx/blob/master/src/index.ts
3
+ * To support esm
4
+ * @returns
5
+ *
6
+ */
7
+ const createAbortError = () => {
8
+ const error = new Error('Aborted');
9
+ error.name = 'AbortError';
10
+ return error;
11
+ };
12
+ /**
13
+ * Creates an Observable just like RxJS `create`, but exposes an AbortSignal in addition to the subscriber
14
+ */
15
+ const create = (subscribe) => new Observable(subscriber => {
16
+ const abortController = new AbortController();
17
+ const subscription = new Subscription();
18
+ const teardown = subscribe && subscribe(subscriber, abortController.signal);
19
+ subscription.add(teardown);
20
+ subscription.add(() => abortController.abort());
21
+ return subscription;
22
+ });
23
+ /**
24
+ * Easiest way to wrap an abortable async function into a Promise.
25
+ * The factory is called every time the Observable is subscribed to, and the AbortSignal is aborted on unsubscription.
26
+ */
27
+ const defer = (factory) => create((subscriber, signal) => from(factory(signal)).subscribe(subscriber));
28
+ /**
29
+ * Returns a Promise that resolves with the last emission of the given Observable,
30
+ * rejects if the Observable errors or rejects with an `AbortError` when the AbortSignal is aborted.
31
+ */
32
+ const toPromise = (observable, signal) => new Promise((resolve, reject) => {
33
+ if (signal && signal.aborted) {
34
+ reject(createAbortError());
35
+ return;
36
+ }
37
+ let subscription;
38
+ const listener = () => {
39
+ subscription.unsubscribe();
40
+ reject(createAbortError());
41
+ };
42
+ const cleanup = () => {
43
+ if (signal) {
44
+ signal.removeEventListener('abort', listener);
45
+ }
46
+ };
47
+ let value;
48
+ subscription = observable.subscribe(val => {
49
+ value = val;
50
+ }, err => {
51
+ cleanup();
52
+ reject(err);
53
+ }, () => {
54
+ cleanup();
55
+ resolve(value);
56
+ });
57
+ if (signal) {
58
+ signal.addEventListener('abort', listener, { once: true });
59
+ }
60
+ });
61
+ /**
62
+ * Calls `next` for every emission and returns a Promise that resolves when the Observable completed, rejects if the
63
+ * Observable errors or rejects with an `AbortError` when the AbortSignal is aborted.
64
+ */
65
+ const forEach = (source, next, signal) => new Promise((resolve, reject) => {
66
+ if (signal && signal.aborted) {
67
+ reject(createAbortError());
68
+ return;
69
+ }
70
+ let subscription;
71
+ const listener = () => {
72
+ subscription.unsubscribe();
73
+ reject(createAbortError());
74
+ };
75
+ const cleanup = () => {
76
+ if (signal) {
77
+ signal.removeEventListener('abort', listener);
78
+ }
79
+ };
80
+ subscription = source.subscribe(value => {
81
+ try {
82
+ next(value);
83
+ }
84
+ catch (err) {
85
+ reject(err);
86
+ if (subscription) {
87
+ subscription.unsubscribe();
88
+ }
89
+ }
90
+ }, err => {
91
+ cleanup();
92
+ reject(err);
93
+ }, () => {
94
+ cleanup();
95
+ resolve();
96
+ });
97
+ if (signal) {
98
+ signal.addEventListener('abort', listener, { once: true });
99
+ }
100
+ });
101
+ /**
102
+ * Like RxJS `switchMap`, but passes an AbortSignal that is aborted when the source emits another element.
103
+ */
104
+ const switchMap = (project) => source => source.pipe(switchMap$1((value, index) => defer(abortSignal => project(value, index, abortSignal))));
105
+ /**
106
+ * Like RxJS `concatMap`, but passes an AbortSignal that is aborted when the returned Observable is unsubscribed from.
107
+ */
108
+ const concatMap = (project) => source => source.pipe(concatMap$1((value, index) => defer(abortSignal => project(value, index, abortSignal))));
109
+ /**
110
+ * Like RxJS `mergeMap`, but passes an AbortSignal that is aborted when the returned Observable is unsubscribed from.
111
+ */
112
+ const mergeMap = (project) => source => source.pipe(mergeMap$1((value, index) => defer(abortSignal => project(value, index, abortSignal))));export{concatMap,create,defer,forEach,mergeMap,switchMap,toPromise};
@@ -1,8 +1,8 @@
1
- export const isErrorLike = (val) => !!val && typeof val === 'object' && (!!val.stack || ('message' in val || 'code' in val)) && !('__typename' in val);
1
+ const isErrorLike = (val) => !!val && typeof val === 'object' && (!!val.stack || ('message' in val || 'code' in val)) && !('__typename' in val);
2
2
  /**
3
3
  * Ensures a value is a proper Error, copying all properties if needed
4
4
  */
5
- export const asError = (err) => {
5
+ const asError = (err) => {
6
6
  if (err instanceof Error) {
7
7
  return err;
8
8
  }
@@ -10,5 +10,4 @@ export const asError = (err) => {
10
10
  return Object.assign(new Error(err.message), err);
11
11
  }
12
12
  return new Error(err);
13
- };
14
- //# sourceMappingURL=errors.js.map
13
+ };export{asError,isErrorLike};
@@ -1,12 +1,11 @@
1
- import { isErrorLike } from './errors';
2
- /**
1
+ import {isErrorLike}from'./errors.js';/**
3
2
  * Returns the extension's script URL from its manifest.
4
3
  *
5
4
  * @param extension The extension whose script URL to get.
6
5
  * @throws If the script URL can't be dtermined.
7
6
  * @returns The extension's script URL.
8
7
  */
9
- export function getScriptURLFromExtensionManifest(extension) {
8
+ function getScriptURLFromExtensionManifest(extension) {
10
9
  if (!extension.manifest) {
11
10
  throw new Error(`extension ${JSON.stringify(extension.id)}: no mainfest found`);
12
11
  }
@@ -17,5 +16,4 @@ export function getScriptURLFromExtensionManifest(extension) {
17
16
  throw new Error(`extension ${JSON.stringify(extension.id)}: no "url" property in manifest`);
18
17
  }
19
18
  return extension.manifest.bundleURL;
20
- }
21
- //# sourceMappingURL=extensions.js.map
19
+ }export{getScriptURLFromExtensionManifest};
@@ -3,9 +3,8 @@
3
3
  *
4
4
  * @internal
5
5
  */
6
- export function createBarrier() {
6
+ function createBarrier() {
7
7
  let done;
8
8
  const wait = new Promise(resolve => (done = resolve));
9
9
  return { wait, done };
10
- }
11
- //# sourceMappingURL=helper.test.js.map
10
+ }export{createBarrier};
@@ -1,4 +1,4 @@
1
- /********************************************************************************
1
+ import {sep}from'@vscode-alt/monaco-editor/esm/vs/base/common/path.js';/********************************************************************************
2
2
 
3
3
  Copyright (c) 2015 John Vilk and other contributors.
4
4
 
@@ -22,9 +22,8 @@ SOFTWARE.
22
22
 
23
23
  ====
24
24
  */
25
- import { sep } from '@vscode-alt/monaco-editor/esm/vs/base/common/path';
26
25
  const replaceRegex = new RegExp('//+', 'g');
27
- export function resolve(...paths) {
26
+ function resolve(...paths) {
28
27
  let processed = [];
29
28
  for (const p of paths) {
30
29
  if (typeof p !== 'string') {
@@ -43,7 +42,7 @@ export function resolve(...paths) {
43
42
  }
44
43
  return resolved;
45
44
  }
46
- export function relative(from, to) {
45
+ function relative(from, to) {
47
46
  let i;
48
47
  from = resolve(from);
49
48
  to = resolve(to);
@@ -78,7 +77,7 @@ export function relative(from, to) {
78
77
  }
79
78
  return rv;
80
79
  }
81
- export function normalize(p) {
80
+ function normalize(p) {
82
81
  if (p === '') {
83
82
  p = '.';
84
83
  }
@@ -117,5 +116,4 @@ export function normalize(p) {
117
116
  function removeDuplicateSeparators(p) {
118
117
  p = p.replace(replaceRegex, sep);
119
118
  return p;
120
- }
121
- //# sourceMappingURL=paths-util.js.map
119
+ }export{normalize,relative,resolve};
@@ -1,10 +1,4 @@
1
- /* tslint:disable */
2
- import { of, zip } from 'rxjs';
3
- import { fromArray } from 'rxjs-compat/observable/fromArray';
4
- import { OuterSubscriber } from 'rxjs-compat/OuterSubscriber';
5
- import { asap } from 'rxjs-compat/scheduler/asap';
6
- import { subscribeToResult } from 'rxjs-compat/util/subscribeToResult';
7
- // tslint:disable no-use-before-declare
1
+ import {zip,of}from'rxjs';import {fromArray}from'rxjs-compat/observable/fromArray.js';import {OuterSubscriber}from'rxjs-compat/OuterSubscriber.js';import {asap}from'rxjs-compat/scheduler/asap.js';import {subscribeToResult}from'rxjs-compat/util/subscribeToResult.js';// tslint:disable no-use-before-declare
8
2
  /**
9
3
  * Like {@link combineLatest}, except that it does not wait for all Observables to emit before emitting an initial
10
4
  * value. It emits whenever any of the source Observables emit.
@@ -31,7 +25,7 @@ import { subscribeToResult } from 'rxjs-compat/util/subscribeToResult';
31
25
  * @return {Observable} An Observable of an array of the most recent values from each input Observable (or
32
26
  * {@link defaultValue}).
33
27
  */
34
- export function combineLatestOrDefault(observables, defaultValue) {
28
+ function combineLatestOrDefault(observables, defaultValue) {
35
29
  switch (observables.length) {
36
30
  case 0:
37
31
  // No source observables: emit an empty array and complete
@@ -103,5 +97,4 @@ class CombineLatestSubscriber extends OuterSubscriber {
103
97
  });
104
98
  }
105
99
  }
106
- }
107
- //# sourceMappingURL=combineLatestOrDefault.js.map
100
+ }export{combineLatestOrDefault};
package/lib/utils/util.js CHANGED
@@ -1,10 +1,9 @@
1
- import { compact, flatten } from 'lodash';
2
- /**
1
+ import {flatten,compact}from'lodash-es';/**
3
2
  * Runs f and returns a resolved promise with its value or a rejected promise with its exception,
4
3
  * regardless of whether it returns a promise or not.
5
4
  * @param f
6
5
  */
7
- export function tryCatchPromise(f) {
6
+ function tryCatchPromise(f) {
8
7
  try {
9
8
  return Promise.resolve(f());
10
9
  }
@@ -15,17 +14,17 @@ export function tryCatchPromise(f) {
15
14
  /**
16
15
  * Reports whether value is a Promise.
17
16
  */
18
- export function isPromise(value) {
17
+ function isPromise(value) {
19
18
  return typeof value.then === 'function';
20
19
  }
21
20
  /**
22
21
  * Reports whether value is a {@link cdeops.Subscribable}.
23
22
  */
24
- export function isSubscribable(value) {
23
+ function isSubscribable(value) {
25
24
  return typeof value.subscribe === 'function';
26
25
  }
27
26
  /** Flattens and compacts the argument. If it is null or if the result is empty, it returns null. */
28
- export function flattenAndCompact(value) {
27
+ function flattenAndCompact(value) {
29
28
  if (value === null) {
30
29
  return null;
31
30
  }
@@ -33,7 +32,7 @@ export function flattenAndCompact(value) {
33
32
  return merged.length === 0 ? null : merged;
34
33
  }
35
34
  /** generate unique id for contributions */
36
- export function generateContributionId() {
35
+ function generateContributionId() {
37
36
  // always start with a letter (for DOM friendlyness)
38
37
  let idStr = String.fromCharCode(Math.floor((Math.random() * 25) + 65));
39
38
  do {
@@ -45,5 +44,4 @@ export function generateContributionId() {
45
44
  }
46
45
  } while (idStr.length < 32);
47
46
  return (idStr);
48
- }
49
- //# sourceMappingURL=util.js.map
47
+ }export{flattenAndCompact,generateContributionId,isPromise,isSubscribable,tryCatchPromise};
@@ -1,4 +1,4 @@
1
- import { ApolloLink, Observable } from '@apollo/client';
1
+ import { ApolloLink, Observable } from '@apollo/client/index.js';
2
2
  export declare class PromiseWorkerLink extends ApolloLink {
3
3
  promiseWorker: any;
4
4
  constructor({ worker }: {
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "@adminide-stack/extension-api",
3
- "version": "5.0.1-alpha.9",
3
+ "version": "6.0.1-alpha.0",
4
4
  "description": "Workbench core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
7
7
  "main": "lib/index.js",
8
+ "module": "lib/index.js",
9
+ "type": "module",
8
10
  "typings": "lib/index.d.ts",
9
11
  "scripts": {
10
12
  "build": "npm run build:clean && npm run build:lib",
11
13
  "build:clean": "rimraf lib",
12
- "build:lib": "tsc",
14
+ "build:lib": "rollup -c rollup.config.mjs",
13
15
  "build:lib:watch": "npm run build:lib -- -w",
14
16
  "jest": "./node_modules/.bin/jest",
15
17
  "prepublishOnly": "npm run build",
@@ -35,10 +37,10 @@
35
37
  }
36
38
  },
37
39
  "dependencies": {
38
- "@adminide-stack/core": "5.0.1-alpha.9",
40
+ "@adminide-stack/core": "6.0.1-alpha.0",
39
41
  "abort-controller": "^2.0.0",
40
42
  "abortable-rx": "^1.0.9",
41
- "cdeops": "5.0.1-alpha.9",
43
+ "cdeops": "6.0.1-alpha.0",
42
44
  "queueing-subject": "0.3.4",
43
45
  "utility-types": "^3.10.0",
44
46
  "valid-url": "1.0.9"
@@ -56,5 +58,5 @@
56
58
  "typescript": {
57
59
  "definition": "lib/index.d.ts"
58
60
  },
59
- "gitHead": "c6f78f4135cdbbe914a2a41e5c95f52f173bc62b"
61
+ "gitHead": "7fbafbc1a55cd118a1653aabe3a4d1d91071db94"
60
62
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"connection.js","sourceRoot":"","sources":["../../../src/connections/jsonrpc2/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAY,OAAO,EAAkB,MAAM,MAAM,CAAA;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,OAAO,EAAS,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,eAAe,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EACH,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EAKjB,aAAa,GAEhB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,UAAU,EAAU,MAAM,SAAS,CAAA;AAY5C,MAAM,UAAU,GAAW,MAAM,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,GAAG,EAAE;QACR,UAAU;IACd,CAAC;IACD,IAAI,EAAE,GAAG,EAAE;QACP,UAAU;IACd,CAAC;IACD,IA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