@adminide-stack/extension-api 0.0.2-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 (318) hide show
  1. package/LICENSE +39 -0
  2. package/README.md +9 -0
  3. package/lib/connections/jsonrpc2/connection.d.ts +55 -0
  4. package/lib/connections/jsonrpc2/connection.js +575 -0
  5. package/lib/connections/jsonrpc2/connection.js.map +1 -0
  6. package/lib/connections/jsonrpc2/connection.test.d.ts +1 -0
  7. package/lib/connections/jsonrpc2/connection.test.js +443 -0
  8. package/lib/connections/jsonrpc2/connection.test.js.map +1 -0
  9. package/lib/connections/jsonrpc2/events.d.ts +24 -0
  10. package/lib/connections/jsonrpc2/events.js +117 -0
  11. package/lib/connections/jsonrpc2/events.js.map +1 -0
  12. package/lib/connections/jsonrpc2/index.d.ts +5 -0
  13. package/lib/connections/jsonrpc2/index.js +24 -0
  14. package/lib/connections/jsonrpc2/index.js.map +1 -0
  15. package/lib/connections/jsonrpc2/linkedMap.d.ts +29 -0
  16. package/lib/connections/jsonrpc2/linkedMap.js +254 -0
  17. package/lib/connections/jsonrpc2/linkedMap.js.map +1 -0
  18. package/lib/connections/jsonrpc2/linkedMap.test.d.ts +1 -0
  19. package/lib/connections/jsonrpc2/linkedMap.test.js +62 -0
  20. package/lib/connections/jsonrpc2/linkedMap.test.js.map +1 -0
  21. package/lib/connections/jsonrpc2/messages.d.ts +117 -0
  22. package/lib/connections/jsonrpc2/messages.js +72 -0
  23. package/lib/connections/jsonrpc2/messages.js.map +1 -0
  24. package/lib/connections/jsonrpc2/test-helper.d.ts +8 -0
  25. package/lib/connections/jsonrpc2/test-helper.js +36 -0
  26. package/lib/connections/jsonrpc2/test-helper.js.map +1 -0
  27. package/lib/connections/jsonrpc2/trace.d.ts +30 -0
  28. package/lib/connections/jsonrpc2/trace.js +96 -0
  29. package/lib/connections/jsonrpc2/trace.js.map +1 -0
  30. package/lib/connections/jsonrpc2/transport.d.ts +36 -0
  31. package/lib/connections/jsonrpc2/transport.js +66 -0
  32. package/lib/connections/jsonrpc2/transport.js.map +1 -0
  33. package/lib/connections/jsonrpc2/transports/browser-websocket.d.ts +0 -0
  34. package/lib/connections/jsonrpc2/transports/browser-websocket.js +189 -0
  35. package/lib/connections/jsonrpc2/transports/browser-websocket.js.map +1 -0
  36. package/lib/connections/jsonrpc2/transports/merged.d.ts +0 -0
  37. package/lib/connections/jsonrpc2/transports/merged.js +239 -0
  38. package/lib/connections/jsonrpc2/transports/merged.js.map +1 -0
  39. package/lib/connections/jsonrpc2/transports/webSocket.d.ts +0 -0
  40. package/lib/connections/jsonrpc2/transports/webSocket.js +138 -0
  41. package/lib/connections/jsonrpc2/transports/webSocket.js.map +1 -0
  42. package/lib/connections/jsonrpc2/transports/webWorker.d.ts +22 -0
  43. package/lib/connections/jsonrpc2/transports/webWorker.js +111 -0
  44. package/lib/connections/jsonrpc2/transports/webWorker.js.map +1 -0
  45. package/lib/connections/proxy/index.d.ts +1 -0
  46. package/lib/connections/proxy/index.js +18 -0
  47. package/lib/connections/proxy/index.js.map +1 -0
  48. package/lib/connections/proxy/proxy.d.ts +49 -0
  49. package/lib/connections/proxy/proxy.js +108 -0
  50. package/lib/connections/proxy/proxy.js.map +1 -0
  51. package/lib/connections/proxy/proxy.test.d.ts +1 -0
  52. package/lib/connections/proxy/proxy.test.js +55 -0
  53. package/lib/connections/proxy/proxy.test.js.map +1 -0
  54. package/lib/connections/remote-rpc/browser-remote-rpc.d.ts +12 -0
  55. package/lib/connections/remote-rpc/browser-remote-rpc.js +62 -0
  56. package/lib/connections/remote-rpc/browser-remote-rpc.js.map +1 -0
  57. package/lib/connections/remote-rpc/browser-server-rpc.test.d.ts +0 -0
  58. package/lib/connections/remote-rpc/browser-server-rpc.test.js +317 -0
  59. package/lib/connections/remote-rpc/browser-server-rpc.test.js.map +1 -0
  60. package/lib/connections/remote-rpc/index.d.ts +1 -0
  61. package/lib/connections/remote-rpc/index.js +18 -0
  62. package/lib/connections/remote-rpc/index.js.map +1 -0
  63. package/lib/connections/remote-rpc/old-browser-remote-rpc.d.ts +12 -0
  64. package/lib/connections/remote-rpc/old-browser-remote-rpc.js +41 -0
  65. package/lib/connections/remote-rpc/old-browser-remote-rpc.js.map +1 -0
  66. package/lib/connections/remote-rpc/rxjs-websockets.d.ts +18 -0
  67. package/lib/connections/remote-rpc/rxjs-websockets.js +80 -0
  68. package/lib/connections/remote-rpc/rxjs-websockets.js.map +1 -0
  69. package/lib/constants/action-types.d.ts +30 -0
  70. package/lib/constants/action-types.js +38 -0
  71. package/lib/constants/action-types.js.map +1 -0
  72. package/lib/constants/index.d.ts +2 -0
  73. package/lib/constants/index.js +19 -0
  74. package/lib/constants/index.js.map +1 -0
  75. package/lib/constants/types.d.ts +8 -0
  76. package/lib/constants/types.js +12 -0
  77. package/lib/constants/types.js.map +1 -0
  78. package/lib/core/expr/evaluator.d.ts +27 -0
  79. package/lib/core/expr/evaluator.js +144 -0
  80. package/lib/core/expr/evaluator.js.map +1 -0
  81. package/lib/core/expr/evaluator.test.d.ts +1 -0
  82. package/lib/core/expr/evaluator.test.js +52 -0
  83. package/lib/core/expr/evaluator.test.js.map +1 -0
  84. package/lib/core/expr/index.d.ts +3 -0
  85. package/lib/core/expr/index.js +20 -0
  86. package/lib/core/expr/index.js.map +1 -0
  87. package/lib/core/expr/lexer.d.ts +114 -0
  88. package/lib/core/expr/lexer.js +418 -0
  89. package/lib/core/expr/lexer.js.map +1 -0
  90. package/lib/core/expr/parser.d.ts +52 -0
  91. package/lib/core/expr/parser.js +242 -0
  92. package/lib/core/expr/parser.js.map +1 -0
  93. package/lib/core/index.d.ts +2 -0
  94. package/lib/core/index.js +19 -0
  95. package/lib/core/index.js.map +1 -0
  96. package/lib/core/types/ext-host-types-bk.d.ts +0 -0
  97. package/lib/core/types/ext-host-types-bk.js +1275 -0
  98. package/lib/core/types/ext-host-types-bk.js.map +1 -0
  99. package/lib/core/types/ext-host-types.d.ts +32 -0
  100. package/lib/core/types/ext-host-types.js +71 -0
  101. package/lib/core/types/ext-host-types.js.map +1 -0
  102. package/lib/core/types/index.d.ts +1 -0
  103. package/lib/core/types/index.js +18 -0
  104. package/lib/core/types/index.js.map +1 -0
  105. package/lib/errors/errors.d.ts +1 -0
  106. package/lib/errors/errors.js +13 -0
  107. package/lib/errors/errors.js.map +1 -0
  108. package/lib/errors/index.d.ts +1 -0
  109. package/lib/errors/index.js +18 -0
  110. package/lib/errors/index.js.map +1 -0
  111. package/lib/index.d.ts +7 -0
  112. package/lib/index.js +24 -0
  113. package/lib/index.js.map +1 -0
  114. package/lib/interfaces/command.d.ts +28 -0
  115. package/lib/interfaces/command.js +3 -0
  116. package/lib/interfaces/command.js.map +1 -0
  117. package/lib/interfaces/configuration.d.ts +36 -0
  118. package/lib/interfaces/configuration.js +3 -0
  119. package/lib/interfaces/configuration.js.map +1 -0
  120. package/lib/interfaces/connection.d.ts +12 -0
  121. package/lib/interfaces/connection.js +3 -0
  122. package/lib/interfaces/connection.js.map +1 -0
  123. package/lib/interfaces/context.d.ts +12 -0
  124. package/lib/interfaces/context.js +3 -0
  125. package/lib/interfaces/context.js.map +1 -0
  126. package/lib/interfaces/contributions/contribution-service.d.ts +20 -0
  127. package/lib/interfaces/contributions/contribution-service.js +3 -0
  128. package/lib/interfaces/contributions/contribution-service.js.map +1 -0
  129. package/lib/interfaces/contributions/contribution.d.ts +383 -0
  130. package/lib/interfaces/contributions/contribution.js +49 -0
  131. package/lib/interfaces/contributions/contribution.js.map +1 -0
  132. package/lib/interfaces/contributions/index.d.ts +2 -0
  133. package/lib/interfaces/contributions/index.js +19 -0
  134. package/lib/interfaces/contributions/index.js.map +1 -0
  135. package/lib/interfaces/controller.d.ts +30 -0
  136. package/lib/interfaces/controller.js +3 -0
  137. package/lib/interfaces/controller.js.map +1 -0
  138. package/lib/interfaces/errors.d.ts +5 -0
  139. package/lib/interfaces/errors.js +3 -0
  140. package/lib/interfaces/errors.js.map +1 -0
  141. package/lib/interfaces/ext-services/contributon-registry.d.ts +45 -0
  142. package/lib/interfaces/ext-services/contributon-registry.js +3 -0
  143. package/lib/interfaces/ext-services/contributon-registry.js.map +1 -0
  144. package/lib/interfaces/ext-services/ext-services.d.ts +23 -0
  145. package/lib/interfaces/ext-services/ext-services.js +3 -0
  146. package/lib/interfaces/ext-services/ext-services.js.map +1 -0
  147. package/lib/interfaces/ext-services/extension-service.d.ts +8 -0
  148. package/lib/interfaces/ext-services/extension-service.js +3 -0
  149. package/lib/interfaces/ext-services/extension-service.js.map +1 -0
  150. package/lib/interfaces/ext-services/index.d.ts +8 -0
  151. package/lib/interfaces/ext-services/index.js +25 -0
  152. package/lib/interfaces/ext-services/index.js.map +1 -0
  153. package/lib/interfaces/ext-services/model-service.d.ts +89 -0
  154. package/lib/interfaces/ext-services/model-service.js +3 -0
  155. package/lib/interfaces/ext-services/model-service.js.map +1 -0
  156. package/lib/interfaces/ext-services/panel-view-registry.d.ts +21 -0
  157. package/lib/interfaces/ext-services/panel-view-registry.js +3 -0
  158. package/lib/interfaces/ext-services/panel-view-registry.js.map +1 -0
  159. package/lib/interfaces/ext-services/settings-service.d.ts +18 -0
  160. package/lib/interfaces/ext-services/settings-service.js +3 -0
  161. package/lib/interfaces/ext-services/settings-service.js.map +1 -0
  162. package/lib/interfaces/ext-services/view-service.d.ts +65 -0
  163. package/lib/interfaces/ext-services/view-service.js +4 -0
  164. package/lib/interfaces/ext-services/view-service.js.map +1 -0
  165. package/lib/interfaces/ext-services/viewer-service.d.ts +125 -0
  166. package/lib/interfaces/ext-services/viewer-service.js +5 -0
  167. package/lib/interfaces/ext-services/viewer-service.js.map +1 -0
  168. package/lib/interfaces/extension-manifest.d.ts +8 -0
  169. package/lib/interfaces/extension-manifest.js +3 -0
  170. package/lib/interfaces/extension-manifest.js.map +1 -0
  171. package/lib/interfaces/extension.d.ts +72 -0
  172. package/lib/interfaces/extension.js +3 -0
  173. package/lib/interfaces/extension.js.map +1 -0
  174. package/lib/interfaces/generated-models.d.ts +3716 -0
  175. package/lib/interfaces/generated-models.js +648 -0
  176. package/lib/interfaces/generated-models.js.map +1 -0
  177. package/lib/interfaces/graphql.d.ts +17 -0
  178. package/lib/interfaces/graphql.js +5 -0
  179. package/lib/interfaces/graphql.js.map +1 -0
  180. package/lib/interfaces/index.d.ts +21 -0
  181. package/lib/interfaces/index.js +38 -0
  182. package/lib/interfaces/index.js.map +1 -0
  183. package/lib/interfaces/languages-types.d.ts +65 -0
  184. package/lib/interfaces/languages-types.js +3 -0
  185. package/lib/interfaces/languages-types.js.map +1 -0
  186. package/lib/interfaces/model.d.ts +51 -0
  187. package/lib/interfaces/model.js +9 -0
  188. package/lib/interfaces/model.js.map +1 -0
  189. package/lib/interfaces/plain-types.d.ts +4 -0
  190. package/lib/interfaces/plain-types.js +6 -0
  191. package/lib/interfaces/plain-types.js.map +1 -0
  192. package/lib/interfaces/plainTypes.d.ts +68 -0
  193. package/lib/interfaces/plainTypes.js +3 -0
  194. package/lib/interfaces/plainTypes.js.map +1 -0
  195. package/lib/interfaces/platform-context.d.ts +82 -0
  196. package/lib/interfaces/platform-context.js +3 -0
  197. package/lib/interfaces/platform-context.js.map +1 -0
  198. package/lib/interfaces/react-props/action-item.d.ts +20 -0
  199. package/lib/interfaces/react-props/action-item.js +3 -0
  200. package/lib/interfaces/react-props/action-item.js.map +1 -0
  201. package/lib/interfaces/react-props/extension-controller.d.ts +11 -0
  202. package/lib/interfaces/react-props/extension-controller.js +3 -0
  203. package/lib/interfaces/react-props/extension-controller.js.map +1 -0
  204. package/lib/interfaces/react-props/index.d.ts +3 -0
  205. package/lib/interfaces/react-props/index.js +20 -0
  206. package/lib/interfaces/react-props/index.js.map +1 -0
  207. package/lib/interfaces/react-props/platform-context.d.ts +7 -0
  208. package/lib/interfaces/react-props/platform-context.js +3 -0
  209. package/lib/interfaces/react-props/platform-context.js.map +1 -0
  210. package/lib/interfaces/registry-extension.d.ts +21 -0
  211. package/lib/interfaces/registry-extension.js +3 -0
  212. package/lib/interfaces/registry-extension.js.map +1 -0
  213. package/lib/interfaces/settings.d.ts +51 -0
  214. package/lib/interfaces/settings.js +3 -0
  215. package/lib/interfaces/settings.js.map +1 -0
  216. package/lib/interfaces/text-document.d.ts +57 -0
  217. package/lib/interfaces/text-document.js +119 -0
  218. package/lib/interfaces/text-document.js.map +1 -0
  219. package/lib/interfaces/webview/index.d.ts +3 -0
  220. package/lib/interfaces/webview/index.js +20 -0
  221. package/lib/interfaces/webview/index.js.map +1 -0
  222. package/lib/interfaces/webview/webview-manager-service.d.ts +22 -0
  223. package/lib/interfaces/webview/webview-manager-service.js +3 -0
  224. package/lib/interfaces/webview/webview-manager-service.js.map +1 -0
  225. package/lib/interfaces/webview/webview-port-mapping.d.ts +4 -0
  226. package/lib/interfaces/webview/webview-port-mapping.js +3 -0
  227. package/lib/interfaces/webview/webview-port-mapping.js.map +1 -0
  228. package/lib/interfaces/webview/webview.d.ts +99 -0
  229. package/lib/interfaces/webview/webview.js +9 -0
  230. package/lib/interfaces/webview/webview.js.map +1 -0
  231. package/lib/main.d.ts +0 -0
  232. package/lib/main.js +3 -0
  233. package/lib/main.js.map +1 -0
  234. package/lib/protocol/client.protocol.d.ts +99 -0
  235. package/lib/protocol/client.protocol.js +8 -0
  236. package/lib/protocol/client.protocol.js.map +1 -0
  237. package/lib/protocol/common.protocol.d.ts +289 -0
  238. package/lib/protocol/common.protocol.js +68 -0
  239. package/lib/protocol/common.protocol.js.map +1 -0
  240. package/lib/protocol/editor-missing-types.d.ts +87 -0
  241. package/lib/protocol/editor-missing-types.js +10 -0
  242. package/lib/protocol/editor-missing-types.js.map +1 -0
  243. package/lib/protocol/index.d.ts +6 -0
  244. package/lib/protocol/index.js +24 -0
  245. package/lib/protocol/index.js.map +1 -0
  246. package/lib/protocol/proxy-identifier.d.ts +51 -0
  247. package/lib/protocol/proxy-identifier.js +59 -0
  248. package/lib/protocol/proxy-identifier.js.map +1 -0
  249. package/lib/protocol/rpc-logger.d.ts +8 -0
  250. package/lib/protocol/rpc-logger.js +60 -0
  251. package/lib/protocol/rpc-logger.js.map +1 -0
  252. package/lib/protocol/rpc-protocol.d.ts +148 -0
  253. package/lib/protocol/rpc-protocol.js +750 -0
  254. package/lib/protocol/rpc-protocol.js.map +1 -0
  255. package/lib/protocol/rpc-protocol.test.d.ts +1 -0
  256. package/lib/protocol/rpc-protocol.test.js +171 -0
  257. package/lib/protocol/rpc-protocol.test.js.map +1 -0
  258. package/lib/protocol/server.protocol-bk.d.ts +0 -0
  259. package/lib/protocol/server.protocol-bk.js +719 -0
  260. package/lib/protocol/server.protocol-bk.js.map +1 -0
  261. package/lib/protocol/server.protocol.d.ts +91 -0
  262. package/lib/protocol/server.protocol.js +31 -0
  263. package/lib/protocol/server.protocol.js.map +1 -0
  264. package/lib/protocol/shared/editor.d.ts +4 -0
  265. package/lib/protocol/shared/editor.js +28 -0
  266. package/lib/protocol/shared/editor.js.map +1 -0
  267. package/lib/protocol/shared/tasks.d.ts +104 -0
  268. package/lib/protocol/shared/tasks.js +4 -0
  269. package/lib/protocol/shared/tasks.js.map +1 -0
  270. package/lib/protocol/temporary-types.d.ts +198 -0
  271. package/lib/protocol/temporary-types.js +30 -0
  272. package/lib/protocol/temporary-types.js.map +1 -0
  273. package/lib/protocol/utils/index.d.ts +1 -0
  274. package/lib/protocol/utils/index.js +18 -0
  275. package/lib/protocol/utils/index.js.map +1 -0
  276. package/lib/protocol/utils/lazy-promise.d.ts +18 -0
  277. package/lib/protocol/utils/lazy-promise.js +69 -0
  278. package/lib/protocol/utils/lazy-promise.js.map +1 -0
  279. package/lib/utils/errors.d.ts +6 -0
  280. package/lib/utils/errors.js +19 -0
  281. package/lib/utils/errors.js.map +1 -0
  282. package/lib/utils/extensions.d.ts +9 -0
  283. package/lib/utils/extensions.js +25 -0
  284. package/lib/utils/extensions.js.map +1 -0
  285. package/lib/utils/helper.test.d.ts +9 -0
  286. package/lib/utils/helper.test.js +15 -0
  287. package/lib/utils/helper.test.js.map +1 -0
  288. package/lib/utils/index.d.ts +7 -0
  289. package/lib/utils/index.js +25 -0
  290. package/lib/utils/index.js.map +1 -0
  291. package/lib/utils/paths-util.d.ts +27 -0
  292. package/lib/utils/paths-util.js +127 -0
  293. package/lib/utils/paths-util.js.map +1 -0
  294. package/lib/utils/rxjs/combineLatestOrDefault.d.ts +28 -0
  295. package/lib/utils/rxjs/combineLatestOrDefault.js +111 -0
  296. package/lib/utils/rxjs/combineLatestOrDefault.js.map +1 -0
  297. package/lib/utils/rxjs/combineLatestOrDefault.test.d.ts +1 -0
  298. package/lib/utils/rxjs/combineLatestOrDefault.test.js +52 -0
  299. package/lib/utils/rxjs/combineLatestOrDefault.test.js.map +1 -0
  300. package/lib/utils/rxjs/index.d.ts +1 -0
  301. package/lib/utils/rxjs/index.js +18 -0
  302. package/lib/utils/rxjs/index.js.map +1 -0
  303. package/lib/utils/util.d.ts +19 -0
  304. package/lib/utils/util.js +57 -0
  305. package/lib/utils/util.js.map +1 -0
  306. package/lib/worker-lib/MessageTypes.d.ts +5 -0
  307. package/lib/worker-lib/MessageTypes.js +9 -0
  308. package/lib/worker-lib/MessageTypes.js.map +1 -0
  309. package/lib/worker-lib/index.d.ts +2 -0
  310. package/lib/worker-lib/index.js +19 -0
  311. package/lib/worker-lib/index.js.map +1 -0
  312. package/lib/worker-lib/webWorkerLink.d.ts +12 -0
  313. package/lib/worker-lib/webWorkerLink.js +96 -0
  314. package/lib/worker-lib/webWorkerLink.js.map +1 -0
  315. package/lib/worker-lib/workerUtils.d.ts +11 -0
  316. package/lib/worker-lib/workerUtils.js +178 -0
  317. package/lib/worker-lib/workerUtils.js.map +1 -0
  318. package/package.json +60 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.protocol-bk.js","sourceRoot":"","sources":["../../src/protocol/server.protocol-bk.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,iGAAiG;AACjG,yFAAyF;AACzF,wFAAwF;AACxF,gFAAgF;AAChF,yFAAyF;AACzF,mEA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AA0F;AAC1F,6FAA6F;AAC7F,+GAA+G;AAC/G,wEAAwE;AACxE,iFAAiF;AACjF,8EAA8E;AAC9E,iFAAiF;AACjF,KAAK;AAEL,kCAAkC;AAClC,iEAAiE;AACjE,6EAA6E;AAC7E,4FAA4F;AAC5F,sFAAsF;AACtF,4FAA4F;AAC5F,sFAAsF;AACtF,8GAA8G;AAC9G,gFAAgF;AAChF,6HAA6H;AAC7H,0HAA0H;AAC1H,0EAA0E;AAC1E,gFAAgF;AAChF,mFAAmF;AACnF,uHAAuH;AACvH,sFAAsF;AACtF,qGAAqG;AACrG,gFAAgF;AAChF,qGAAqG;AACrG,mFAAmF;AACnF,qGAAqG;AACrG,8DAA8D;AAC9D,uEAAuE;AACvE,oEAAoE;AACpE,gFAAgF;AAChF,uEAAuE;AACvE,6EAA6E;AAC7E,gHAAgH;AAChH,4GAA4G;AAC5G,yGAAyG;AACzG,iEAAiE;AACjE,2HAA2H;AAC3H,KAAK"}
@@ -0,0 +1,91 @@
1
+ /// <reference types="node" />
2
+ import { IRPCProtocol, ProxyIdentifier } from './proxy-identifier';
3
+ import { IOrganizationData, IOrganizationConfigurationChangeEventData, IConfigurationInitData, IDocumentsShape } from './common.protocol';
4
+ import { CdmLogger } from '@cdm-logger/core';
5
+ import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
6
+ import { ExtensionIdentifier, ICommandHandlerDescription, IExtensionDescription } from '@workbench-stack/core';
7
+ import { ConfigurationTarget } from '@adminide-stack/core';
8
+ import { UriComponents } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
9
+ import { CancellationToken } from '@vscode-alt/monaco-editor/esm/vs/base/common/cancellation';
10
+ import Severity from '@vscode-alt/monaco-editor/esm/vs/base/common/severity';
11
+ import { SerializedError } from '@vscode-alt/monaco-editor/esm/vs/base/common/errors';
12
+ export interface IInitData {
13
+ version: string;
14
+ }
15
+ export interface IExtHostContext extends IRPCProtocol {
16
+ getUIProxy?<T>(identifier: ProxyIdentifier<T>): T;
17
+ }
18
+ export interface ExtHostCommandsShape {
19
+ $executeContributedCommand<T>(id: string, ...args: any[]): Promise<T>;
20
+ $getContributedCommandHandlerDescriptions(): Promise<{
21
+ [id: string]: string | ICommandHandlerDescription;
22
+ }>;
23
+ }
24
+ export interface ExtHostConfigurationShape {
25
+ $initializeConfiguration(data: IConfigurationInitData): void;
26
+ $acceptConfigurationChanged(data: IConfigurationInitData, eventData: IOrganizationConfigurationChangeEventData): void;
27
+ }
28
+ export interface ExtHostOrganizationShape {
29
+ $acceptOrganizationData(organization: IOrganizationData): void;
30
+ }
31
+ export interface MainThreadDocumentsShape extends IDocumentsShape, IDisposable {
32
+ }
33
+ export interface ExtHostLogServiceShape {
34
+ $setLevel(level: CdmLogger.LoggerLevel): void;
35
+ }
36
+ export interface ExtHostExtensionServiceShape {
37
+ $startExtensionHost(enabledExtensionIds: ExtensionIdentifier[]): Promise<void>;
38
+ $activateByEvent(activationEvent: string): Promise<void>;
39
+ $activate(extensionId: ExtensionIdentifier, activationEvent: string): Promise<void>;
40
+ $deltaExtensions(toAdd: IExtensionDescription[], toRemove: ExtensionIdentifier[]): Promise<void>;
41
+ $test_latency(n: number): Promise<number>;
42
+ $test_up(b: Buffer): Promise<number>;
43
+ $test_down(size: number): Promise<Buffer>;
44
+ }
45
+ export interface IMainContext extends IRPCProtocol {
46
+ }
47
+ export interface MainThreadCommandsShape extends IDisposable {
48
+ $registerCommand(id: string): void;
49
+ $unregisterCommand(id: string): void;
50
+ $executeCommand<T>(id: string, args: any[]): Promise<T>;
51
+ $getCommands(): Promise<string[]>;
52
+ }
53
+ export interface MainThreadConfigurationShape extends IDisposable {
54
+ $updateConfigurationOption(target: ConfigurationTarget, key: string, value: any, resource: UriComponents): Promise<void>;
55
+ $removeConfigurationOption(target: ConfigurationTarget, key: string, resource: UriComponents): Promise<void>;
56
+ }
57
+ export interface MainThreadUrlsShape extends IDisposable {
58
+ $registerUriHandler(handle: number, extensionId: ExtensionIdentifier): Promise<void>;
59
+ $unregisterUriHandler(handle: number): Promise<void>;
60
+ }
61
+ export interface MainThreadOrganizationShape extends IDisposable {
62
+ $checkExists(includes: string[], token: CancellationToken): Promise<boolean>;
63
+ $saveAll(includeUntitled?: boolean): Promise<boolean>;
64
+ $updateOrganizationResources(extensionName: string, index: number, deleteCount: number, organizationResourcesToAdd: {
65
+ uri: UriComponents;
66
+ name?: string;
67
+ }[]): Promise<void>;
68
+ $resolveProxy(url: string): Promise<string>;
69
+ }
70
+ export interface MainThreadExtensionServiceShape extends IDisposable {
71
+ $localShowMessage(severity: Severity, msg: string): void;
72
+ $onWillActivateExtension(extensionId: ExtensionIdentifier): void;
73
+ $onDidActivateExtension(extensionId: ExtensionIdentifier, startup: boolean, codeLoadingTime: number, activateCallTime: number, activateResolvedTime: number, activationEvent: string): void;
74
+ $onExtensionActivationFailed(extensionId: ExtensionIdentifier): void;
75
+ $onExtensionRuntimeError(extensionId: ExtensionIdentifier, error: SerializedError): void;
76
+ $addMessage(extensionId: ExtensionIdentifier, severity: Severity, message: string): void;
77
+ }
78
+ export declare const MainContext: {
79
+ MainThreadCommands: ProxyIdentifier<MainThreadCommandsShape>;
80
+ MainThreadConfiguration: ProxyIdentifier<MainThreadConfigurationShape>;
81
+ MainThreadUrls: ProxyIdentifier<MainThreadUrlsShape>;
82
+ MainThreadOrganization: ProxyIdentifier<MainThreadOrganizationShape>;
83
+ MainThreadExtensionService: ProxyIdentifier<MainThreadExtensionServiceShape>;
84
+ };
85
+ export declare const ExtHostContext: {
86
+ ExtHostCommands: ProxyIdentifier<ExtHostCommandsShape>;
87
+ ExtHostConfiguration: ProxyIdentifier<ExtHostConfigurationShape>;
88
+ ExtHostExtensionService: ProxyIdentifier<ExtHostExtensionServiceShape>;
89
+ ExtHostLogService: ProxyIdentifier<ExtHostLogServiceShape>;
90
+ ExtHostOrganization: ProxyIdentifier<ExtHostOrganizationShape>;
91
+ };
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExtHostContext = exports.MainContext = void 0;
4
+ const proxy_identifier_1 = require("./proxy-identifier");
5
+ // -- proxy-identifiers are moved to `core` package
6
+ exports.MainContext = {
7
+ MainThreadCommands: (0, proxy_identifier_1.createMainContextProxyIdentifier)('MainThreadCommands'),
8
+ MainThreadConfiguration: (0, proxy_identifier_1.createMainContextProxyIdentifier)('MainThreadConfiguration'),
9
+ MainThreadUrls: (0, proxy_identifier_1.createMainContextProxyIdentifier)('MainThreadUrls'),
10
+ MainThreadOrganization: (0, proxy_identifier_1.createMainContextProxyIdentifier)('MainThreadOrganization'),
11
+ MainThreadExtensionService: (0, proxy_identifier_1.createMainContextProxyIdentifier)('MainThreadExtensionService'),
12
+ };
13
+ exports.ExtHostContext = {
14
+ // ExtHostTreeViews: createExtId<any>('ExtHostTreeViews'),
15
+ ExtHostCommands: (0, proxy_identifier_1.createExtHostContextProxyIdentifier)('ExtHostCommands'),
16
+ ExtHostConfiguration: (0, proxy_identifier_1.createExtHostContextProxyIdentifier)('ExtHostConfiguration'),
17
+ // ExtHostDocuments: createExtId<ExtHostDocumentsShape>('ExtHostDocuments'),
18
+ ExtHostExtensionService: (0, proxy_identifier_1.createExtHostContextProxyIdentifier)('ExtHostExtensionService'),
19
+ ExtHostLogService: (0, proxy_identifier_1.createExtHostContextProxyIdentifier)('ExtHostLogService'),
20
+ // ExtHostTerminalService: createExtId<ExtHostTerminalServiceShape>('ExtHostTerminalService'),
21
+ // ExtHostSCM: createExtId<ExtHostSCMShape>('ExtHostSCM'),
22
+ // ExtHostSearch: createExtId<ExtHostSearchShape>('ExtHostSearch'),
23
+ // ExtHostTask: createExtId<ExtHostTaskShape>('ExtHostTask'),
24
+ ExtHostOrganization: (0, proxy_identifier_1.createExtHostContextProxyIdentifier)('ExtHostOrganization'),
25
+ // ExtHostWindow: createExtId<ExtHostWindowShape>('ExtHostWindow'),
26
+ // ExtHostWebviews: createExtId<ExtHostWebviewsShape>('ExtHostWebviews'),
27
+ // ExtHostProgress: createMainId<ExtHostProgressShape>('ExtHostProgress', HostIdentifier.ServerExtHost),
28
+ // ExtHostUrls: createExtId<ExtHostUrlsShape>('ExtHostUrls'),
29
+ // ExtHostOutputService: createMainId<ExtHostOutputServiceShape>('ExtHostOutputService', HostIdentifier.ServerExtHost),
30
+ };
31
+ //# sourceMappingURL=server.protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.protocol.js","sourceRoot":"","sources":["../../src/protocol/server.protocol.ts"],"names":[],"mappings":";;;AAAA,yDAAyL;AAyHzL,mDAAmD;AAEtC,QAAA,WAAW,GAAG;IACvB,kBAAkB,EAA4C,IAAA,mDAAY,EAA0B,oBAAoB,CAAC;IACzH,uBAAuB,EAAE,IAAA,mDAAY,EAA+B,yBAAyB,CAAC;IAC9F,cAAc,EAAE,IAAA,mDAAY,EAAsB,gBAAgB,CAAC;IACnE,sBAAsB,EAAE,IAAA,mDAAY,EAA8B,wBAAwB,CAAC;IAC3F,0BAA0B,EAAE,IAAA,mDAAY,EAAkC,4BAA4B,CAAC;CAE1G,CAAA;AAIY,QAAA,cAAc,GAAG;IAC1B,0DAA0D;IAC1D,eAAe,EAAE,IAAA,sDAAW,EAAuB,iBAAiB,CAAC;IACrE,oBAAoB,EAAE,IAAA,sDAAW,EAA4B,sBAAsB,CAAC;IACpF,4EAA4E;IAC5E,uBAAuB,EAAE,IAAA,sDAAW,EAA+B,yBAAyB,CAAC;IAC7F,iBAAiB,EAAE,IAAA,sDAAW,EAAyB,mBAAmB,CAAC;IAC3E,8FAA8F;IAC9F,0DAA0D;IAC1D,mEAAmE;IACnE,6DAA6D;IAC7D,mBAAmB,EAAE,IAAA,sDAAW,EAA2B,qBAAqB,CAAC;IACjF,mEAAmE;IACnE,yEAAyE;IACzE,yGAAyG;IACzG,6DAA6D;IAC7D,uHAAuH;CAC1H,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { IEditorGroupsService, IEditorGroup, GroupIdentifier } from '@workbench-stack/core';
2
+ export declare type EditorViewColumn = number;
3
+ export declare function viewColumnToEditorGroup(editorGroupService: IEditorGroupsService, position?: EditorViewColumn): GroupIdentifier;
4
+ export declare function editorGroupToViewColumn(editorGroupService: IEditorGroupsService, editorGroup: IEditorGroup | GroupIdentifier): EditorViewColumn;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.editorGroupToViewColumn = exports.viewColumnToEditorGroup = void 0;
5
+ const core_1 = require("@workbench-stack/core");
6
+ function viewColumnToEditorGroup(editorGroupService, position) {
7
+ if (typeof position !== 'number' || position === core_1.ACTIVE_GROUP) {
8
+ return core_1.ACTIVE_GROUP; // prefer active group when position is undefined or passed in as such
9
+ }
10
+ const groups = editorGroupService.getGroups(2 /* GroupsOrder.GRID_APPEARANCE */);
11
+ let candidate = groups[position];
12
+ if (candidate) {
13
+ return candidate.id; // found direct match
14
+ }
15
+ let firstGroup = groups[0];
16
+ // if (groups.length === 1 /** && firstGroup.count === 0 */) {
17
+ if (groups.length === 1 && (!firstGroup.tabs || firstGroup.tabs.length === 0)) {
18
+ return firstGroup.id; // first editor should always open in first group independent from position provided
19
+ }
20
+ return core_1.SIDE_GROUP; // open to the side if group not found or we are instructed to
21
+ }
22
+ exports.viewColumnToEditorGroup = viewColumnToEditorGroup;
23
+ function editorGroupToViewColumn(editorGroupService, editorGroup) {
24
+ const group = (typeof editorGroup === 'number') ? editorGroupService.getGroup(editorGroup) : editorGroup;
25
+ return editorGroupService.getGroups(2 /* GroupsOrder.GRID_APPEARANCE */).indexOf(group);
26
+ }
27
+ exports.editorGroupToViewColumn = editorGroupToViewColumn;
28
+ //# sourceMappingURL=editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.js","sourceRoot":"","sources":["../../../src/protocol/shared/editor.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAEpB,gDAAmI;AAInI,SAAgB,uBAAuB,CAAC,kBAAwC,EAAE,QAA2B;IAC5G,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,mBAAY,EAAE;QAC9D,OAAO,mBAAY,CAAC,CAAC,sEAAsE;KAC3F;IAED,MAAM,MAAM,GAAG,kBAAkB,CAAC,SAAS,qCAA6B,CAAC;IAEzE,IAAI,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjC,IAAI,SAAS,EAAE;QACd,OAAO,SAAS,CAAC,EAAE,CAAC,CAAC,qBAAqB;KAC1C;IAED,IAAI,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IAC3B,8DAA8D;IAC9D,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,EAAE;QAC9E,OAAO,UAAU,CAAC,EAAE,CAAC,CAAC,oFAAoF;KAC1G;IAED,OAAO,iBAAU,CAAC,CAAC,8DAA8D;AAClF,CAAC;AAnBD,0DAmBC;AAED,SAAgB,uBAAuB,CAAC,kBAAwC,EAAE,WAA2C;IAC5H,MAAM,KAAK,GAAG,CAAC,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;IAEzG,OAAO,kBAAkB,CAAC,SAAS,qCAA6B,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACjF,CAAC;AAJD,0DAIC"}
@@ -0,0 +1,104 @@
1
+ import { UriComponents } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
2
+ import { IExtensionDescription } from '@workbench-stack/core';
3
+ export interface TaskDefinitionDTO {
4
+ type: string;
5
+ [name: string]: any;
6
+ }
7
+ export interface TaskPresentationOptionsDTO {
8
+ reveal?: number;
9
+ echo?: boolean;
10
+ focus?: boolean;
11
+ panel?: number;
12
+ showReuseMessage?: boolean;
13
+ clear?: boolean;
14
+ group?: string;
15
+ }
16
+ export interface RunOptionsDTO {
17
+ reevaluateOnRerun?: boolean;
18
+ }
19
+ export interface ExecutionOptionsDTO {
20
+ cwd?: string;
21
+ env?: {
22
+ [key: string]: string;
23
+ };
24
+ }
25
+ export interface ProcessExecutionOptionsDTO extends ExecutionOptionsDTO {
26
+ }
27
+ export interface ProcessExecutionDTO {
28
+ process: string;
29
+ args: string[];
30
+ options?: ProcessExecutionOptionsDTO;
31
+ }
32
+ export interface ShellQuotingOptionsDTO {
33
+ escape?: string | {
34
+ escapeChar: string;
35
+ charsToEscape: string;
36
+ };
37
+ strong?: string;
38
+ weak?: string;
39
+ }
40
+ export interface ShellExecutionOptionsDTO extends ExecutionOptionsDTO {
41
+ executable?: string;
42
+ shellArgs?: string[];
43
+ shellQuoting?: ShellQuotingOptionsDTO;
44
+ }
45
+ export interface ShellQuotedStringDTO {
46
+ value: string;
47
+ quoting: number;
48
+ }
49
+ export interface ShellExecutionDTO {
50
+ commandLine?: string;
51
+ command?: string | ShellQuotedStringDTO;
52
+ args?: Array<string | ShellQuotedStringDTO>;
53
+ options?: ShellExecutionOptionsDTO;
54
+ }
55
+ export interface CustomExecutionDTO {
56
+ customExecution: 'customExecution';
57
+ }
58
+ export interface TaskSourceDTO {
59
+ label: string;
60
+ extensionId?: string;
61
+ scope?: number | UriComponents;
62
+ }
63
+ export interface TaskHandleDTO {
64
+ id: string;
65
+ workspaceFolder: UriComponents;
66
+ }
67
+ export interface TaskDTO {
68
+ _id: string;
69
+ name?: string;
70
+ execution: ProcessExecutionDTO | ShellExecutionDTO | CustomExecutionDTO;
71
+ definition: TaskDefinitionDTO;
72
+ isBackground?: boolean;
73
+ source: TaskSourceDTO;
74
+ group?: string;
75
+ presentationOptions?: TaskPresentationOptionsDTO;
76
+ problemMatchers: string[];
77
+ hasDefinedMatchers: boolean;
78
+ runOptions?: RunOptionsDTO;
79
+ }
80
+ export interface TaskSetDTO {
81
+ tasks: TaskDTO[];
82
+ extension: IExtensionDescription;
83
+ }
84
+ export interface TaskExecutionDTO {
85
+ id: string;
86
+ task: TaskDTO;
87
+ }
88
+ export interface TaskProcessStartedDTO {
89
+ id: string;
90
+ processId: number;
91
+ }
92
+ export interface TaskProcessEndedDTO {
93
+ id: string;
94
+ exitCode: number;
95
+ }
96
+ export interface TaskFilterDTO {
97
+ version?: string;
98
+ type?: string;
99
+ }
100
+ export interface TaskSystemInfoDTO {
101
+ scheme: string;
102
+ authority: string;
103
+ platform: string;
104
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=tasks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../../src/protocol/shared/tasks.ts"],"names":[],"mappings":";AAAA,oBAAoB"}
@@ -0,0 +1,198 @@
1
+ import { IRelativePattern } from '@vscode-alt/monaco-editor/esm/vs/base/common/glob';
2
+ import { Event } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
3
+ import { URI, UriComponents } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
4
+ import { IRange } from '@vscode-alt/monaco-editor/esm/vs/editor/common/core/range';
5
+ import { IMarkdownString } from '@vscode-alt/monaco-editor/esm/vs/base/common/htmlContent';
6
+ import * as langModes from '@vscode-alt/monaco-editor/esm/vs/editor/common/modes';
7
+ import { IModelContentChange } from '@vscode-alt/monaco-editor/esm/vs/editor/common/model/textModelEvents';
8
+ declare type Command = langModes.Command;
9
+ export interface ITextEditorSelection {
10
+ readonly startLineNumber: number;
11
+ readonly startColumn: number;
12
+ readonly endLineNumber?: number;
13
+ readonly endColumn?: number;
14
+ }
15
+ export interface LanguageFilter {
16
+ language?: string;
17
+ scheme?: string;
18
+ pattern?: string | IRelativePattern;
19
+ /**
20
+ * This provider is implemented in the UI thread.
21
+ */
22
+ hasAccessToAllModels?: boolean;
23
+ exclusive?: boolean;
24
+ }
25
+ export declare type LanguageSelector = string | LanguageFilter | Array<string | LanguageFilter>;
26
+ export interface IModelChangedEvent {
27
+ /**
28
+ * The actual changes.
29
+ */
30
+ readonly changes: IModelContentChange[];
31
+ /**
32
+ * The (new) end-of-line character.
33
+ */
34
+ readonly eol: string;
35
+ /**
36
+ * The new version id the model has transitioned to.
37
+ */
38
+ readonly versionId: number;
39
+ }
40
+ export interface ITerminalDimensions {
41
+ /**
42
+ * The columns of the terminal.
43
+ */
44
+ readonly cols: number;
45
+ /**
46
+ * The rows of the terminal.
47
+ */
48
+ readonly rows: number;
49
+ }
50
+ export declare namespace modes {
51
+ /**
52
+ * @internal
53
+ */
54
+ interface CommentInfo {
55
+ extensionId: string;
56
+ threads: CommentThread[];
57
+ commentingRanges?: (IRange[] | CommentingRanges);
58
+ reply?: Command;
59
+ draftMode: DraftMode;
60
+ }
61
+ /**
62
+ * @internal
63
+ */
64
+ enum DraftMode {
65
+ NotSupported = 0,
66
+ InDraft = 1,
67
+ NotInDraft = 2
68
+ }
69
+ /**
70
+ * @internal
71
+ */
72
+ enum CommentThreadCollapsibleState {
73
+ /**
74
+ * Determines an item is collapsed
75
+ */
76
+ Collapsed = 0,
77
+ /**
78
+ * Determines an item is expanded
79
+ */
80
+ Expanded = 1
81
+ }
82
+ /**
83
+ * @internal
84
+ */
85
+ interface CommentWidget {
86
+ commentThread: CommentThread;
87
+ comment?: Comment;
88
+ input: string;
89
+ onDidChangeInput: Event<string>;
90
+ }
91
+ /**
92
+ * @internal
93
+ */
94
+ interface CommentInput {
95
+ value: string;
96
+ uri: URI;
97
+ }
98
+ /**
99
+ * @internal
100
+ */
101
+ interface CommentThread2 {
102
+ commentThreadHandle: number;
103
+ extensionId: string;
104
+ threadId: string;
105
+ resource: string;
106
+ range: IRange;
107
+ label: string;
108
+ comments: Comment[];
109
+ onDidChangeComments: Event<Comment[]>;
110
+ collapsibleState?: CommentThreadCollapsibleState;
111
+ input: CommentInput;
112
+ onDidChangeInput: Event<CommentInput>;
113
+ acceptInputCommand?: Command;
114
+ additionalCommands: Command[];
115
+ onDidChangeAcceptInputCommand: Event<Command>;
116
+ onDidChangeAdditionalCommands: Event<Command[]>;
117
+ onDidChangeRange: Event<IRange>;
118
+ onDidChangeLabel: Event<string>;
119
+ onDidChangeCollasibleState: Event<CommentThreadCollapsibleState>;
120
+ }
121
+ /**
122
+ * @internal
123
+ */
124
+ interface CommentingRanges {
125
+ readonly resource: URI;
126
+ ranges: IRange[];
127
+ newCommentThreadCommand?: Command;
128
+ newCommentThreadCallback?: (uri: UriComponents, range: IRange) => void;
129
+ }
130
+ /**
131
+ * @internal
132
+ */
133
+ interface CommentThread {
134
+ extensionId: string;
135
+ threadId: string;
136
+ resource: string;
137
+ range: IRange;
138
+ comments: Comment[];
139
+ collapsibleState?: CommentThreadCollapsibleState;
140
+ reply?: Command;
141
+ }
142
+ /**
143
+ * @internal
144
+ */
145
+ interface NewCommentAction {
146
+ ranges: IRange[];
147
+ actions: Command[];
148
+ }
149
+ /**
150
+ * @internal
151
+ */
152
+ interface CommentReaction {
153
+ readonly label?: string;
154
+ readonly iconPath?: UriComponents;
155
+ readonly count?: number;
156
+ readonly hasReacted?: boolean;
157
+ readonly canEdit?: boolean;
158
+ }
159
+ /**
160
+ * @internal
161
+ */
162
+ interface Comment {
163
+ readonly commentId: string;
164
+ readonly body: IMarkdownString;
165
+ readonly userName: string;
166
+ readonly userIconPath: string;
167
+ readonly canEdit?: boolean;
168
+ readonly canDelete?: boolean;
169
+ readonly command?: Command;
170
+ readonly editCommand?: Command;
171
+ readonly deleteCommand?: Command;
172
+ readonly isDraft?: boolean;
173
+ readonly commentReactions?: CommentReaction[];
174
+ readonly label?: string;
175
+ }
176
+ /**
177
+ * @internal
178
+ */
179
+ interface CommentThreadChangedEvent {
180
+ /**
181
+ * Added comment threads.
182
+ */
183
+ readonly added: (CommentThread | CommentThread2)[];
184
+ /**
185
+ * Removed comment threads.
186
+ */
187
+ readonly removed: (CommentThread | CommentThread2)[];
188
+ /**
189
+ * Changed comment threads.
190
+ */
191
+ readonly changed: (CommentThread | CommentThread2)[];
192
+ /**
193
+ * changed draft mode.
194
+ */
195
+ readonly draftMode?: DraftMode;
196
+ }
197
+ }
198
+ export {};
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.modes = void 0;
4
+ var modes;
5
+ (function (modes) {
6
+ /**
7
+ * @internal
8
+ */
9
+ let DraftMode;
10
+ (function (DraftMode) {
11
+ DraftMode[DraftMode["NotSupported"] = 0] = "NotSupported";
12
+ DraftMode[DraftMode["InDraft"] = 1] = "InDraft";
13
+ DraftMode[DraftMode["NotInDraft"] = 2] = "NotInDraft";
14
+ })(DraftMode = modes.DraftMode || (modes.DraftMode = {}));
15
+ /**
16
+ * @internal
17
+ */
18
+ let CommentThreadCollapsibleState;
19
+ (function (CommentThreadCollapsibleState) {
20
+ /**
21
+ * Determines an item is collapsed
22
+ */
23
+ CommentThreadCollapsibleState[CommentThreadCollapsibleState["Collapsed"] = 0] = "Collapsed";
24
+ /**
25
+ * Determines an item is expanded
26
+ */
27
+ CommentThreadCollapsibleState[CommentThreadCollapsibleState["Expanded"] = 1] = "Expanded";
28
+ })(CommentThreadCollapsibleState = modes.CommentThreadCollapsibleState || (modes.CommentThreadCollapsibleState = {}));
29
+ })(modes = exports.modes || (exports.modes = {}));
30
+ //# sourceMappingURL=temporary-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporary-types.js","sourceRoot":"","sources":["../../src/protocol/temporary-types.ts"],"names":[],"mappings":";;;AAgEA,IAAiB,KAAK,CAmKrB;AAnKD,WAAiB,KAAK;IAYpB;;OAEG;IACH,IAAY,SAIX;IAJD,WAAY,SAAS;QACnB,yDAAY,CAAA;QACZ,+CAAO,CAAA;QACP,qDAAU,CAAA;IACZ,CAAC,EAJW,SAAS,GAAT,eAAS,KAAT,eAAS,QAIpB;IAED;;OAEG;IACH,IAAY,6BASX;IATD,WAAY,6BAA6B;QACvC;;WAEG;QACH,2FAAa,CAAA;QACb;;WAEG;QACH,yFAAY,CAAA;IACd,CAAC,EATW,6BAA6B,GAA7B,mCAA6B,KAA7B,mCAA6B,QASxC;AAkIH,CAAC,EAnKgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAmKrB"}
@@ -0,0 +1 @@
1
+ export * from './lazy-promise';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./lazy-promise"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/protocol/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -0,0 +1,18 @@
1
+ export declare class LazyPromise implements Promise<any> {
2
+ readonly [Symbol.toStringTag]: 'Promise';
3
+ private _onCancel;
4
+ private _actual;
5
+ private _actualOk;
6
+ private _actualErr;
7
+ private _hasValue;
8
+ private _value;
9
+ private _hasErr;
10
+ private _err;
11
+ constructor();
12
+ private _ensureActual;
13
+ resolveOk(value: any): void;
14
+ resolveErr(err: any): void;
15
+ then(success: any, error: any): any;
16
+ catch(error: any): any;
17
+ finally(callback: any): any;
18
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LazyPromise = void 0;
4
+ const errors_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/errors");
5
+ // types taken from
6
+ // https://github.com/andimarek/micro-manager/blob/ac5333a1e0400f6f985ceb0edcbcdfc5a7a79988/src/ipc/ipcRemoteCom.ts
7
+ class LazyPromise {
8
+ constructor() {
9
+ this._actual = null;
10
+ this._actualOk = null;
11
+ this._actualErr = null;
12
+ this._hasValue = false;
13
+ this._value = null;
14
+ this._hasErr = false;
15
+ this._err = null;
16
+ }
17
+ _ensureActual() {
18
+ if (!this._actual) {
19
+ this._actual = new Promise((c, e) => {
20
+ this._actualOk = c;
21
+ this._actualErr = e;
22
+ if (this._hasValue) {
23
+ this._actualOk(this._value);
24
+ }
25
+ if (this._hasErr) {
26
+ this._actualErr(this._err);
27
+ }
28
+ });
29
+ }
30
+ return this._actual;
31
+ }
32
+ resolveOk(value) {
33
+ if (this._hasValue || this._hasErr) {
34
+ return;
35
+ }
36
+ this._hasValue = true;
37
+ this._value = value;
38
+ if (this._actual) {
39
+ this._actualOk(value);
40
+ }
41
+ }
42
+ resolveErr(err) {
43
+ if (this._hasValue || this._hasErr) {
44
+ return;
45
+ }
46
+ this._hasErr = true;
47
+ this._err = err;
48
+ if (this._actual) {
49
+ this._actualErr(err);
50
+ }
51
+ else {
52
+ // If nobody's listening at this point, it is safe to assume they never will,
53
+ // since resolving this promise is always "async"
54
+ (0, errors_1.onUnexpectedError)(err);
55
+ }
56
+ }
57
+ then(success, error) {
58
+ return this._ensureActual().then(success, error);
59
+ }
60
+ catch(error) {
61
+ return this._ensureActual().then(undefined, error);
62
+ }
63
+ finally(callback) {
64
+ return this._ensureActual().finally(callback);
65
+ }
66
+ }
67
+ exports.LazyPromise = LazyPromise;
68
+ Symbol.toStringTag;
69
+ //# sourceMappingURL=lazy-promise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy-promise.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;IAEM,UAAU,CAAC,GAAQ;QACtB,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,EAAE;YAChC,OAAO;SACV;QAED,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAEhB,IAAI,IAAI,CAAC,OAAO,EAAE;YACd,IAAI,CAAC,UAAW,CAAC,GAAG,CAAC,CAAC;SACzB;aAAM;YACH,6EAA6E;YAC7E,iDAAiD;YACjD,IAAA,0BAAiB,EAAC,GAAG,CAAC,CAAC;SAC1B;IACL,CAAC;IAEM,IAAI,CAAC,OAAY,EAAE,KAAU;QAChC,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;IAEM,KAAK,CAAC,KAAU;QACnB,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IAEM,OAAO,CAAC,QAAQ;QACnB,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;CACJ;AAtFD,kCAsFC;AApFoB,MAAM,CAAC,WAAW"}
@@ -0,0 +1,6 @@
1
+ import { ErrorLike } from '../interfaces';
2
+ export declare const isErrorLike: (val: any) => val is ErrorLike;
3
+ /**
4
+ * Ensures a value is a proper Error, copying all properties if needed
5
+ */
6
+ export declare const asError: (err: any) => Error;