@theia/plugin-ext 1.67.0-next.56 → 1.67.0-next.59

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 (1317) hide show
  1. package/lib/common/arrays.d.ts +24 -0
  2. package/lib/common/arrays.d.ts.map +1 -0
  3. package/lib/common/arrays.js +61 -0
  4. package/lib/common/arrays.js.map +1 -0
  5. package/lib/common/assert.d.ts +2 -0
  6. package/lib/common/assert.d.ts.map +1 -0
  7. package/lib/common/assert.js +26 -0
  8. package/lib/common/assert.js.map +1 -0
  9. package/lib/common/cache.d.ts +12 -0
  10. package/lib/common/cache.d.ts.map +1 -0
  11. package/lib/common/cache.js +48 -0
  12. package/lib/common/cache.js.map +1 -0
  13. package/lib/common/character-classifier.d.ts +19 -0
  14. package/lib/common/character-classifier.d.ts.map +1 -0
  15. package/lib/common/character-classifier.js +61 -0
  16. package/lib/common/character-classifier.js.map +1 -0
  17. package/lib/common/collections.d.ts +9 -0
  18. package/lib/common/collections.d.ts.map +1 -0
  19. package/lib/common/collections.js +56 -0
  20. package/lib/common/collections.js.map +1 -0
  21. package/lib/common/commands.d.ts +4 -0
  22. package/lib/common/commands.d.ts.map +1 -0
  23. package/lib/common/commands.js +17 -0
  24. package/lib/common/commands.js.map +1 -0
  25. package/lib/common/connection.d.ts +55 -0
  26. package/lib/common/connection.d.ts.map +1 -0
  27. package/lib/common/connection.js +108 -0
  28. package/lib/common/connection.js.map +1 -0
  29. package/lib/common/disposable-util.d.ts +7 -0
  30. package/lib/common/disposable-util.d.ts.map +1 -0
  31. package/lib/common/disposable-util.js +38 -0
  32. package/lib/common/disposable-util.js.map +1 -0
  33. package/lib/common/editor-options.d.ts +31 -0
  34. package/lib/common/editor-options.d.ts.map +1 -0
  35. package/lib/common/editor-options.js +73 -0
  36. package/lib/common/editor-options.js.map +1 -0
  37. package/lib/common/env.d.ts +4 -0
  38. package/lib/common/env.d.ts.map +1 -0
  39. package/lib/common/env.js +18 -0
  40. package/lib/common/env.js.map +1 -0
  41. package/lib/common/errors.d.ts +18 -0
  42. package/lib/common/errors.d.ts.map +1 -0
  43. package/lib/common/errors.js +59 -0
  44. package/lib/common/errors.js.map +1 -0
  45. package/lib/common/id-generator.d.ts +7 -0
  46. package/lib/common/id-generator.d.ts.map +1 -0
  47. package/lib/common/id-generator.js +29 -0
  48. package/lib/common/id-generator.js.map +1 -0
  49. package/lib/common/index.d.ts +4 -0
  50. package/lib/common/index.d.ts.map +1 -0
  51. package/lib/common/index.js +25 -0
  52. package/lib/common/index.js.map +1 -0
  53. package/lib/common/language-pack-service.d.ts +16 -0
  54. package/lib/common/language-pack-service.d.ts.map +1 -0
  55. package/lib/common/language-pack-service.js +21 -0
  56. package/lib/common/language-pack-service.js.map +1 -0
  57. package/lib/common/link-computer.d.ts +42 -0
  58. package/lib/common/link-computer.d.ts.map +1 -0
  59. package/lib/common/link-computer.js +276 -0
  60. package/lib/common/link-computer.js.map +1 -0
  61. package/lib/common/lm-protocol.d.ts +103 -0
  62. package/lib/common/lm-protocol.d.ts.map +1 -0
  63. package/lib/common/lm-protocol.js +21 -0
  64. package/lib/common/lm-protocol.js.map +1 -0
  65. package/lib/common/object-identifier.d.ts +9 -0
  66. package/lib/common/object-identifier.d.ts.map +1 -0
  67. package/lib/common/object-identifier.js +33 -0
  68. package/lib/common/object-identifier.js.map +1 -0
  69. package/lib/common/objects.d.ts +2 -0
  70. package/lib/common/objects.d.ts.map +1 -0
  71. package/lib/common/objects.js +47 -0
  72. package/lib/common/objects.js.map +1 -0
  73. package/lib/common/paths-util.d.ts +4 -0
  74. package/lib/common/paths-util.d.ts.map +1 -0
  75. package/lib/common/paths-util.js +145 -0
  76. package/lib/common/paths-util.js.map +1 -0
  77. package/lib/common/plugin-api-rpc-model.d.ts +776 -0
  78. package/lib/common/plugin-api-rpc-model.d.ts.map +1 -0
  79. package/lib/common/plugin-api-rpc-model.js +179 -0
  80. package/lib/common/plugin-api-rpc-model.js.map +1 -0
  81. package/lib/common/plugin-api-rpc.d.ts +2220 -0
  82. package/lib/common/plugin-api-rpc.d.ts.map +1 -0
  83. package/lib/common/plugin-api-rpc.js +341 -0
  84. package/lib/common/plugin-api-rpc.js.map +1 -0
  85. package/lib/common/plugin-ext-api-contribution.d.ts +89 -0
  86. package/lib/common/plugin-ext-api-contribution.d.ts.map +1 -0
  87. package/lib/common/plugin-ext-api-contribution.js +6 -0
  88. package/lib/common/plugin-ext-api-contribution.js.map +1 -0
  89. package/lib/common/plugin-identifiers.d.ts +47 -0
  90. package/lib/common/plugin-identifiers.d.ts.map +1 -0
  91. package/lib/common/plugin-identifiers.js +90 -0
  92. package/lib/common/plugin-identifiers.js.map +1 -0
  93. package/lib/common/plugin-protocol.d.ts +960 -0
  94. package/lib/common/plugin-protocol.d.ts.map +1 -0
  95. package/lib/common/plugin-protocol.js +73 -0
  96. package/lib/common/plugin-protocol.js.map +1 -0
  97. package/lib/common/reference-map.d.ts +8 -0
  98. package/lib/common/reference-map.d.ts.map +1 -0
  99. package/lib/common/reference-map.js +40 -0
  100. package/lib/common/reference-map.js.map +1 -0
  101. package/lib/common/rpc-protocol.d.ts +83 -0
  102. package/lib/common/rpc-protocol.d.ts.map +1 -0
  103. package/lib/common/rpc-protocol.js +262 -0
  104. package/lib/common/rpc-protocol.js.map +1 -0
  105. package/lib/common/semantic-tokens-dto.d.ts +19 -0
  106. package/lib/common/semantic-tokens-dto.d.ts.map +1 -0
  107. package/lib/common/semantic-tokens-dto.js +163 -0
  108. package/lib/common/semantic-tokens-dto.js.map +1 -0
  109. package/lib/common/test-types.d.ts +103 -0
  110. package/lib/common/test-types.d.ts.map +1 -0
  111. package/lib/common/test-types.js +83 -0
  112. package/lib/common/test-types.js.map +1 -0
  113. package/lib/common/types.d.ts +38 -0
  114. package/lib/common/types.d.ts.map +1 -0
  115. package/lib/common/types.js +122 -0
  116. package/lib/common/types.js.map +1 -0
  117. package/lib/common/uint.d.ts +8 -0
  118. package/lib/common/uint.d.ts.map +1 -0
  119. package/lib/common/uint.js +34 -0
  120. package/lib/common/uint.js.map +1 -0
  121. package/lib/common/uri-components.d.ts +40 -0
  122. package/lib/common/uri-components.d.ts.map +1 -0
  123. package/lib/common/uri-components.js +65 -0
  124. package/lib/common/uri-components.js.map +1 -0
  125. package/lib/hosted/browser/hosted-plugin-watcher.d.ts +16 -0
  126. package/lib/hosted/browser/hosted-plugin-watcher.d.ts.map +1 -0
  127. package/lib/hosted/browser/hosted-plugin-watcher.js +55 -0
  128. package/lib/hosted/browser/hosted-plugin-watcher.js.map +1 -0
  129. package/lib/hosted/browser/hosted-plugin.d.ts +101 -0
  130. package/lib/hosted/browser/hosted-plugin.d.ts.map +1 -0
  131. package/lib/hosted/browser/hosted-plugin.js +605 -0
  132. package/lib/hosted/browser/hosted-plugin.js.map +1 -0
  133. package/lib/hosted/browser/plugin-worker.d.ts +7 -0
  134. package/lib/hosted/browser/plugin-worker.d.ts.map +1 -0
  135. package/lib/hosted/browser/plugin-worker.js +50 -0
  136. package/lib/hosted/browser/plugin-worker.js.map +1 -0
  137. package/lib/hosted/browser/worker/debug-stub.d.ts +4 -0
  138. package/lib/hosted/browser/worker/debug-stub.d.ts.map +1 -0
  139. package/lib/hosted/browser/worker/debug-stub.js +30 -0
  140. package/lib/hosted/browser/worker/debug-stub.js.map +1 -0
  141. package/lib/hosted/browser/worker/plugin-manifest-loader.d.ts +3 -0
  142. package/lib/hosted/browser/worker/plugin-manifest-loader.d.ts.map +1 -0
  143. package/lib/hosted/browser/worker/plugin-manifest-loader.js +108 -0
  144. package/lib/hosted/browser/worker/plugin-manifest-loader.js.map +1 -0
  145. package/lib/hosted/browser/worker/worker-env-ext.d.ts +11 -0
  146. package/lib/hosted/browser/worker/worker-env-ext.d.ts.map +1 -0
  147. package/lib/hosted/browser/worker/worker-env-ext.js +43 -0
  148. package/lib/hosted/browser/worker/worker-env-ext.js.map +1 -0
  149. package/lib/hosted/browser/worker/worker-main.d.ts +2 -0
  150. package/lib/hosted/browser/worker/worker-main.d.ts.map +1 -0
  151. package/lib/hosted/browser/worker/worker-main.js +183 -0
  152. package/lib/hosted/browser/worker/worker-main.js.map +1 -0
  153. package/lib/hosted/browser/worker/worker-plugin-module.d.ts +5 -0
  154. package/lib/hosted/browser/worker/worker-plugin-module.d.ts.map +1 -0
  155. package/lib/hosted/browser/worker/worker-plugin-module.js +80 -0
  156. package/lib/hosted/browser/worker/worker-plugin-module.js.map +1 -0
  157. package/lib/hosted/common/hosted-plugin.d.ts +97 -0
  158. package/lib/hosted/common/hosted-plugin.d.ts.map +1 -0
  159. package/lib/hosted/common/hosted-plugin.js +408 -0
  160. package/lib/hosted/common/hosted-plugin.js.map +1 -0
  161. package/lib/hosted/node/hosted-plugin-cli-contribution.d.ts +17 -0
  162. package/lib/hosted/node/hosted-plugin-cli-contribution.d.ts.map +1 -0
  163. package/lib/hosted/node/hosted-plugin-cli-contribution.js +72 -0
  164. package/lib/hosted/node/hosted-plugin-cli-contribution.js.map +1 -0
  165. package/lib/hosted/node/hosted-plugin-localization-service.d.ts +47 -0
  166. package/lib/hosted/node/hosted-plugin-localization-service.d.ts.map +1 -0
  167. package/lib/hosted/node/hosted-plugin-localization-service.js +380 -0
  168. package/lib/hosted/node/hosted-plugin-localization-service.js.map +1 -0
  169. package/lib/hosted/node/hosted-plugin-process.d.ts +42 -0
  170. package/lib/hosted/node/hosted-plugin-process.d.ts.map +1 -0
  171. package/lib/hosted/node/hosted-plugin-process.js +205 -0
  172. package/lib/hosted/node/hosted-plugin-process.js.map +1 -0
  173. package/lib/hosted/node/hosted-plugin-protocol.d.ts +22 -0
  174. package/lib/hosted/node/hosted-plugin-protocol.d.ts.map +1 -0
  175. package/lib/hosted/node/hosted-plugin-protocol.js +37 -0
  176. package/lib/hosted/node/hosted-plugin-protocol.js.map +1 -0
  177. package/lib/hosted/node/hosted-plugin.d.ts +29 -0
  178. package/lib/hosted/node/hosted-plugin.d.ts.map +1 -0
  179. package/lib/hosted/node/hosted-plugin.js +99 -0
  180. package/lib/hosted/node/hosted-plugin.js.map +1 -0
  181. package/lib/hosted/node/metadata-scanner.d.ts +18 -0
  182. package/lib/hosted/node/metadata-scanner.d.ts.map +1 -0
  183. package/lib/hosted/node/metadata-scanner.js +73 -0
  184. package/lib/hosted/node/metadata-scanner.js.map +1 -0
  185. package/lib/hosted/node/plugin-activation-events.d.ts +7 -0
  186. package/lib/hosted/node/plugin-activation-events.d.ts.map +1 -0
  187. package/lib/hosted/node/plugin-activation-events.js +96 -0
  188. package/lib/hosted/node/plugin-activation-events.js.map +1 -0
  189. package/lib/hosted/node/plugin-deployer-handler-impl.d.ts +48 -0
  190. package/lib/hosted/node/plugin-deployer-handler-impl.d.ts.map +1 -0
  191. package/lib/hosted/node/plugin-deployer-handler-impl.js +277 -0
  192. package/lib/hosted/node/plugin-deployer-handler-impl.js.map +1 -0
  193. package/lib/hosted/node/plugin-ext-hosted-backend-module.d.ts +4 -0
  194. package/lib/hosted/node/plugin-ext-hosted-backend-module.d.ts.map +1 -0
  195. package/lib/hosted/node/plugin-ext-hosted-backend-module.js +83 -0
  196. package/lib/hosted/node/plugin-ext-hosted-backend-module.js.map +1 -0
  197. package/lib/hosted/node/plugin-host-logger.d.ts +3 -0
  198. package/lib/hosted/node/plugin-host-logger.d.ts.map +1 -0
  199. package/lib/hosted/node/plugin-host-logger.js +39 -0
  200. package/lib/hosted/node/plugin-host-logger.js.map +1 -0
  201. package/lib/hosted/node/plugin-host-module.d.ts +5 -0
  202. package/lib/hosted/node/plugin-host-module.d.ts.map +1 -0
  203. package/lib/hosted/node/plugin-host-module.js +75 -0
  204. package/lib/hosted/node/plugin-host-module.js.map +1 -0
  205. package/lib/hosted/node/plugin-host-proxy.d.ts +19 -0
  206. package/lib/hosted/node/plugin-host-proxy.d.ts.map +1 -0
  207. package/lib/hosted/node/plugin-host-proxy.js +71 -0
  208. package/lib/hosted/node/plugin-host-proxy.js.map +1 -0
  209. package/lib/hosted/node/plugin-host-rpc.d.ts +108 -0
  210. package/lib/hosted/node/plugin-host-rpc.d.ts.map +1 -0
  211. package/lib/hosted/node/plugin-host-rpc.js +333 -0
  212. package/lib/hosted/node/plugin-host-rpc.js.map +1 -0
  213. package/lib/hosted/node/plugin-host.d.ts +2 -0
  214. package/lib/hosted/node/plugin-host.d.ts.map +1 -0
  215. package/lib/hosted/node/plugin-host.js +114 -0
  216. package/lib/hosted/node/plugin-host.js.map +1 -0
  217. package/lib/hosted/node/plugin-language-pack-service.d.ts +8 -0
  218. package/lib/hosted/node/plugin-language-pack-service.d.ts.map +1 -0
  219. package/lib/hosted/node/plugin-language-pack-service.js +49 -0
  220. package/lib/hosted/node/plugin-language-pack-service.js.map +1 -0
  221. package/lib/hosted/node/plugin-manifest-loader.d.ts +3 -0
  222. package/lib/hosted/node/plugin-manifest-loader.d.ts.map +1 -0
  223. package/lib/hosted/node/plugin-manifest-loader.js +36 -0
  224. package/lib/hosted/node/plugin-manifest-loader.js.map +1 -0
  225. package/lib/hosted/node/plugin-reader.d.ts +26 -0
  226. package/lib/hosted/node/plugin-reader.d.ts.map +1 -0
  227. package/lib/hosted/node/plugin-reader.js +140 -0
  228. package/lib/hosted/node/plugin-reader.js.map +1 -0
  229. package/lib/hosted/node/plugin-require-override.d.ts +25 -0
  230. package/lib/hosted/node/plugin-require-override.d.ts.map +1 -0
  231. package/lib/hosted/node/plugin-require-override.js +56 -0
  232. package/lib/hosted/node/plugin-require-override.js.map +1 -0
  233. package/lib/hosted/node/plugin-service.d.ts +56 -0
  234. package/lib/hosted/node/plugin-service.d.ts.map +1 -0
  235. package/lib/hosted/node/plugin-service.js +203 -0
  236. package/lib/hosted/node/plugin-service.js.map +1 -0
  237. package/lib/hosted/node/scanners/backend-init-theia.d.ts +3 -0
  238. package/lib/hosted/node/scanners/backend-init-theia.d.ts.map +1 -0
  239. package/lib/hosted/node/scanners/backend-init-theia.js +61 -0
  240. package/lib/hosted/node/scanners/backend-init-theia.js.map +1 -0
  241. package/lib/hosted/node/scanners/file-plugin-uri-factory.d.ts +11 -0
  242. package/lib/hosted/node/scanners/file-plugin-uri-factory.d.ts.map +1 -0
  243. package/lib/hosted/node/scanners/file-plugin-uri-factory.js +36 -0
  244. package/lib/hosted/node/scanners/file-plugin-uri-factory.js.map +1 -0
  245. package/lib/hosted/node/scanners/grammars-reader.d.ts +6 -0
  246. package/lib/hosted/node/scanners/grammars-reader.d.ts.map +1 -0
  247. package/lib/hosted/node/scanners/grammars-reader.js +59 -0
  248. package/lib/hosted/node/scanners/grammars-reader.js.map +1 -0
  249. package/lib/hosted/node/scanners/plugin-uri-factory.d.ts +17 -0
  250. package/lib/hosted/node/scanners/plugin-uri-factory.d.ts.map +1 -0
  251. package/lib/hosted/node/scanners/plugin-uri-factory.js +20 -0
  252. package/lib/hosted/node/scanners/plugin-uri-factory.js.map +1 -0
  253. package/lib/hosted/node/scanners/scanner-theia.d.ts +113 -0
  254. package/lib/hosted/node/scanners/scanner-theia.d.ts.map +1 -0
  255. package/lib/hosted/node/scanners/scanner-theia.js +923 -0
  256. package/lib/hosted/node/scanners/scanner-theia.js.map +1 -0
  257. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.d.ts +3 -0
  258. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.d.ts.map +1 -0
  259. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.js +27 -0
  260. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.js.map +1 -0
  261. package/lib/hosted/node-electron/scanner-theia-electron.d.ts +6 -0
  262. package/lib/hosted/node-electron/scanner-theia-electron.d.ts.map +1 -0
  263. package/lib/hosted/node-electron/scanner-theia-electron.js +36 -0
  264. package/lib/hosted/node-electron/scanner-theia-electron.js.map +1 -0
  265. package/lib/main/browser/authentication-main.d.ts +52 -0
  266. package/lib/main/browser/authentication-main.d.ts.map +1 -0
  267. package/lib/main/browser/authentication-main.js +324 -0
  268. package/lib/main/browser/authentication-main.js.map +1 -0
  269. package/lib/main/browser/clipboard-main.d.ts +10 -0
  270. package/lib/main/browser/clipboard-main.d.ts.map +1 -0
  271. package/lib/main/browser/clipboard-main.js +33 -0
  272. package/lib/main/browser/clipboard-main.js.map +1 -0
  273. package/lib/main/browser/command-registry-main.d.ts +28 -0
  274. package/lib/main/browser/command-registry-main.d.ts.map +1 -0
  275. package/lib/main/browser/command-registry-main.js +113 -0
  276. package/lib/main/browser/command-registry-main.js.map +1 -0
  277. package/lib/main/browser/commands.d.ts +13 -0
  278. package/lib/main/browser/commands.d.ts.map +1 -0
  279. package/lib/main/browser/commands.js +92 -0
  280. package/lib/main/browser/commands.js.map +1 -0
  281. package/lib/main/browser/comments/comment-glyph-widget.d.ts +13 -0
  282. package/lib/main/browser/comments/comment-glyph-widget.d.ts.map +1 -0
  283. package/lib/main/browser/comments/comment-glyph-widget.js +43 -0
  284. package/lib/main/browser/comments/comment-glyph-widget.js.map +1 -0
  285. package/lib/main/browser/comments/comment-thread-widget.d.ts +178 -0
  286. package/lib/main/browser/comments/comment-thread-widget.d.ts.map +1 -0
  287. package/lib/main/browser/comments/comment-thread-widget.js +523 -0
  288. package/lib/main/browser/comments/comment-thread-widget.js.map +1 -0
  289. package/lib/main/browser/comments/comments-context.d.ts +13 -0
  290. package/lib/main/browser/comments/comments-context.d.ts.map +1 -0
  291. package/lib/main/browser/comments/comments-context.js +56 -0
  292. package/lib/main/browser/comments/comments-context.js.map +1 -0
  293. package/lib/main/browser/comments/comments-contribution.d.ts +32 -0
  294. package/lib/main/browser/comments/comments-contribution.d.ts.map +1 -0
  295. package/lib/main/browser/comments/comments-contribution.js +258 -0
  296. package/lib/main/browser/comments/comments-contribution.js.map +1 -0
  297. package/lib/main/browser/comments/comments-decorator.d.ts +16 -0
  298. package/lib/main/browser/comments/comments-decorator.d.ts.map +1 -0
  299. package/lib/main/browser/comments/comments-decorator.js +100 -0
  300. package/lib/main/browser/comments/comments-decorator.js.map +1 -0
  301. package/lib/main/browser/comments/comments-main.d.ts +116 -0
  302. package/lib/main/browser/comments/comments-main.d.ts.map +1 -0
  303. package/lib/main/browser/comments/comments-main.js +358 -0
  304. package/lib/main/browser/comments/comments-main.js.map +1 -0
  305. package/lib/main/browser/comments/comments-service.d.ts +76 -0
  306. package/lib/main/browser/comments/comments-service.d.ts.map +1 -0
  307. package/lib/main/browser/comments/comments-service.js +118 -0
  308. package/lib/main/browser/comments/comments-service.js.map +1 -0
  309. package/lib/main/browser/custom-editors/custom-editor-opener.d.ts +29 -0
  310. package/lib/main/browser/custom-editors/custom-editor-opener.d.ts.map +1 -0
  311. package/lib/main/browser/custom-editors/custom-editor-opener.js +196 -0
  312. package/lib/main/browser/custom-editors/custom-editor-opener.js.map +1 -0
  313. package/lib/main/browser/custom-editors/custom-editor-service.d.ts +17 -0
  314. package/lib/main/browser/custom-editors/custom-editor-service.d.ts.map +1 -0
  315. package/lib/main/browser/custom-editors/custom-editor-service.js +98 -0
  316. package/lib/main/browser/custom-editors/custom-editor-service.js.map +1 -0
  317. package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.d.ts +10 -0
  318. package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.d.ts.map +1 -0
  319. package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.js +49 -0
  320. package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.js.map +1 -0
  321. package/lib/main/browser/custom-editors/custom-editor-widget-factory.d.ts +10 -0
  322. package/lib/main/browser/custom-editors/custom-editor-widget-factory.d.ts.map +1 -0
  323. package/lib/main/browser/custom-editors/custom-editor-widget-factory.js +40 -0
  324. package/lib/main/browser/custom-editors/custom-editor-widget-factory.js.map +1 -0
  325. package/lib/main/browser/custom-editors/custom-editor-widget.d.ts +35 -0
  326. package/lib/main/browser/custom-editors/custom-editor-widget.d.ts.map +1 -0
  327. package/lib/main/browser/custom-editors/custom-editor-widget.js +108 -0
  328. package/lib/main/browser/custom-editors/custom-editor-widget.js.map +1 -0
  329. package/lib/main/browser/custom-editors/custom-editors-main.d.ts +123 -0
  330. package/lib/main/browser/custom-editors/custom-editors-main.d.ts.map +1 -0
  331. package/lib/main/browser/custom-editors/custom-editors-main.js +380 -0
  332. package/lib/main/browser/custom-editors/custom-editors-main.js.map +1 -0
  333. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.d.ts +22 -0
  334. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.d.ts.map +1 -0
  335. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.js +128 -0
  336. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.js.map +1 -0
  337. package/lib/main/browser/data-transfer/data-transfer-type-converters.d.ts +9 -0
  338. package/lib/main/browser/data-transfer/data-transfer-type-converters.d.ts.map +1 -0
  339. package/lib/main/browser/data-transfer/data-transfer-type-converters.js +63 -0
  340. package/lib/main/browser/data-transfer/data-transfer-type-converters.js.map +1 -0
  341. package/lib/main/browser/debug/debug-main.d.ts +52 -0
  342. package/lib/main/browser/debug/debug-main.d.ts.map +1 -0
  343. package/lib/main/browser/debug/debug-main.js +314 -0
  344. package/lib/main/browser/debug/debug-main.js.map +1 -0
  345. package/lib/main/browser/debug/plugin-debug-adapter-contribution.d.ts +19 -0
  346. package/lib/main/browser/debug/plugin-debug-adapter-contribution.d.ts.map +1 -0
  347. package/lib/main/browser/debug/plugin-debug-adapter-contribution.js +43 -0
  348. package/lib/main/browser/debug/plugin-debug-adapter-contribution.js.map +1 -0
  349. package/lib/main/browser/debug/plugin-debug-configuration-provider.d.ts +18 -0
  350. package/lib/main/browser/debug/plugin-debug-configuration-provider.d.ts.map +1 -0
  351. package/lib/main/browser/debug/plugin-debug-configuration-provider.js +40 -0
  352. package/lib/main/browser/debug/plugin-debug-configuration-provider.js.map +1 -0
  353. package/lib/main/browser/debug/plugin-debug-service.d.ts +56 -0
  354. package/lib/main/browser/debug/plugin-debug-service.d.ts.map +1 -0
  355. package/lib/main/browser/debug/plugin-debug-service.js +365 -0
  356. package/lib/main/browser/debug/plugin-debug-service.js.map +1 -0
  357. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.d.ts +31 -0
  358. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.d.ts.map +1 -0
  359. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.js +68 -0
  360. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.js.map +1 -0
  361. package/lib/main/browser/debug/plugin-debug-session-factory.d.ts +59 -0
  362. package/lib/main/browser/debug/plugin-debug-session-factory.d.ts.map +1 -0
  363. package/lib/main/browser/debug/plugin-debug-session-factory.js +72 -0
  364. package/lib/main/browser/debug/plugin-debug-session-factory.js.map +1 -0
  365. package/lib/main/browser/decorations/decorations-main.d.ts +16 -0
  366. package/lib/main/browser/decorations/decorations-main.d.ts.map +1 -0
  367. package/lib/main/browser/decorations/decorations-main.js +120 -0
  368. package/lib/main/browser/decorations/decorations-main.js.map +1 -0
  369. package/lib/main/browser/dialogs/modal-notification.d.ts +19 -0
  370. package/lib/main/browser/dialogs/modal-notification.d.ts.map +1 -0
  371. package/lib/main/browser/dialogs/modal-notification.js +102 -0
  372. package/lib/main/browser/dialogs/modal-notification.js.map +1 -0
  373. package/lib/main/browser/dialogs-main.d.ts +17 -0
  374. package/lib/main/browser/dialogs-main.d.ts.map +1 -0
  375. package/lib/main/browser/dialogs-main.js +163 -0
  376. package/lib/main/browser/dialogs-main.js.map +1 -0
  377. package/lib/main/browser/documents-main.d.ts +51 -0
  378. package/lib/main/browser/documents-main.d.ts.map +1 -0
  379. package/lib/main/browser/documents-main.js +252 -0
  380. package/lib/main/browser/documents-main.js.map +1 -0
  381. package/lib/main/browser/editors-and-documents-main.d.ts +41 -0
  382. package/lib/main/browser/editors-and-documents-main.d.ts.map +1 -0
  383. package/lib/main/browser/editors-and-documents-main.js +357 -0
  384. package/lib/main/browser/editors-and-documents-main.js.map +1 -0
  385. package/lib/main/browser/env-main.d.ts +7 -0
  386. package/lib/main/browser/env-main.d.ts.map +1 -0
  387. package/lib/main/browser/env-main.js +64 -0
  388. package/lib/main/browser/env-main.js.map +1 -0
  389. package/lib/main/browser/file-system-main-impl.d.ts +29 -0
  390. package/lib/main/browser/file-system-main-impl.d.ts.map +1 -0
  391. package/lib/main/browser/file-system-main-impl.js +208 -0
  392. package/lib/main/browser/file-system-main-impl.js.map +1 -0
  393. package/lib/main/browser/hierarchy/hierarchy-types-converters.d.ts +25 -0
  394. package/lib/main/browser/hierarchy/hierarchy-types-converters.d.ts.map +1 -0
  395. package/lib/main/browser/hierarchy/hierarchy-types-converters.js +185 -0
  396. package/lib/main/browser/hierarchy/hierarchy-types-converters.js.map +1 -0
  397. package/lib/main/browser/keybindings/keybindings-contribution-handler.d.ts +10 -0
  398. package/lib/main/browser/keybindings/keybindings-contribution-handler.d.ts.map +1 -0
  399. package/lib/main/browser/keybindings/keybindings-contribution-handler.js +70 -0
  400. package/lib/main/browser/keybindings/keybindings-contribution-handler.js.map +1 -0
  401. package/lib/main/browser/label-service-main.d.ts +11 -0
  402. package/lib/main/browser/label-service-main.d.ts.map +1 -0
  403. package/lib/main/browser/label-service-main.js +47 -0
  404. package/lib/main/browser/label-service-main.js.map +1 -0
  405. package/lib/main/browser/languages-main.d.ts +144 -0
  406. package/lib/main/browser/languages-main.d.ts.map +1 -0
  407. package/lib/main/browser/languages-main.js +1179 -0
  408. package/lib/main/browser/languages-main.js.map +1 -0
  409. package/lib/main/browser/lm-main.d.ts +17 -0
  410. package/lib/main/browser/lm-main.d.ts.map +1 -0
  411. package/lib/main/browser/lm-main.js +154 -0
  412. package/lib/main/browser/lm-main.js.map +1 -0
  413. package/lib/main/browser/localization-main.d.ts +9 -0
  414. package/lib/main/browser/localization-main.d.ts.map +1 -0
  415. package/lib/main/browser/localization-main.js +32 -0
  416. package/lib/main/browser/localization-main.js.map +1 -0
  417. package/lib/main/browser/logger-main.d.ts +8 -0
  418. package/lib/main/browser/logger-main.d.ts.map +1 -0
  419. package/lib/main/browser/logger-main.js +53 -0
  420. package/lib/main/browser/logger-main.js.map +1 -0
  421. package/lib/main/browser/main-context.d.ts +4 -0
  422. package/lib/main/browser/main-context.d.ts.map +1 -0
  423. package/lib/main/browser/main-context.js +161 -0
  424. package/lib/main/browser/main-context.js.map +1 -0
  425. package/lib/main/browser/main-file-system-event-service.d.ts +8 -0
  426. package/lib/main/browser/main-file-system-event-service.d.ts.map +1 -0
  427. package/lib/main/browser/main-file-system-event-service.js +66 -0
  428. package/lib/main/browser/main-file-system-event-service.js.map +1 -0
  429. package/lib/main/browser/menus/menus-contribution-handler.d.ts +24 -0
  430. package/lib/main/browser/menus/menus-contribution-handler.d.ts.map +1 -0
  431. package/lib/main/browser/menus/menus-contribution-handler.js +208 -0
  432. package/lib/main/browser/menus/menus-contribution-handler.js.map +1 -0
  433. package/lib/main/browser/menus/plugin-menu-command-adapter.d.ts +24 -0
  434. package/lib/main/browser/menus/plugin-menu-command-adapter.d.ts.map +1 -0
  435. package/lib/main/browser/menus/plugin-menu-command-adapter.js +281 -0
  436. package/lib/main/browser/menus/plugin-menu-command-adapter.js.map +1 -0
  437. package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts +19 -0
  438. package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts.map +1 -0
  439. package/lib/main/browser/menus/vscode-theia-menu-mappings.js +115 -0
  440. package/lib/main/browser/menus/vscode-theia-menu-mappings.js.map +1 -0
  441. package/lib/main/browser/message-registry-main.d.ts +11 -0
  442. package/lib/main/browser/message-registry-main.d.ts.map +1 -0
  443. package/lib/main/browser/message-registry-main.js +41 -0
  444. package/lib/main/browser/message-registry-main.js.map +1 -0
  445. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts +52 -0
  446. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts.map +1 -0
  447. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js +208 -0
  448. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js.map +1 -0
  449. package/lib/main/browser/notebooks/notebook-documents-main.d.ts +30 -0
  450. package/lib/main/browser/notebooks/notebook-documents-main.d.ts.map +1 -0
  451. package/lib/main/browser/notebooks/notebook-documents-main.js +164 -0
  452. package/lib/main/browser/notebooks/notebook-documents-main.js.map +1 -0
  453. package/lib/main/browser/notebooks/notebook-dto.d.ts +18 -0
  454. package/lib/main/browser/notebooks/notebook-dto.d.ts.map +1 -0
  455. package/lib/main/browser/notebooks/notebook-dto.js +131 -0
  456. package/lib/main/browser/notebooks/notebook-dto.js.map +1 -0
  457. package/lib/main/browser/notebooks/notebook-editors-main.d.ts +21 -0
  458. package/lib/main/browser/notebooks/notebook-editors-main.d.ts.map +1 -0
  459. package/lib/main/browser/notebooks/notebook-editors-main.js +76 -0
  460. package/lib/main/browser/notebooks/notebook-editors-main.js.map +1 -0
  461. package/lib/main/browser/notebooks/notebook-kernels-main.d.ts +43 -0
  462. package/lib/main/browser/notebooks/notebook-kernels-main.d.ts.map +1 -0
  463. package/lib/main/browser/notebooks/notebook-kernels-main.js +274 -0
  464. package/lib/main/browser/notebooks/notebook-kernels-main.js.map +1 -0
  465. package/lib/main/browser/notebooks/notebook-renderers-main.d.ts +12 -0
  466. package/lib/main/browser/notebooks/notebook-renderers-main.d.ts.map +1 -0
  467. package/lib/main/browser/notebooks/notebook-renderers-main.js +39 -0
  468. package/lib/main/browser/notebooks/notebook-renderers-main.js.map +1 -0
  469. package/lib/main/browser/notebooks/notebooks-main.d.ts +25 -0
  470. package/lib/main/browser/notebooks/notebooks-main.d.ts.map +1 -0
  471. package/lib/main/browser/notebooks/notebooks-main.js +134 -0
  472. package/lib/main/browser/notebooks/notebooks-main.js.map +1 -0
  473. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +75 -0
  474. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -0
  475. package/lib/main/browser/notebooks/renderers/cell-output-webview.js +571 -0
  476. package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -0
  477. package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts +14 -0
  478. package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts.map +1 -0
  479. package/lib/main/browser/notebooks/renderers/output-webview-internal.js +660 -0
  480. package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -0
  481. package/lib/main/browser/notebooks/renderers/webview-communication.d.ts +127 -0
  482. package/lib/main/browser/notebooks/renderers/webview-communication.d.ts.map +1 -0
  483. package/lib/main/browser/notebooks/renderers/webview-communication.js +22 -0
  484. package/lib/main/browser/notebooks/renderers/webview-communication.js.map +1 -0
  485. package/lib/main/browser/notification-main.d.ts +7 -0
  486. package/lib/main/browser/notification-main.d.ts.map +1 -0
  487. package/lib/main/browser/notification-main.js +27 -0
  488. package/lib/main/browser/notification-main.js.map +1 -0
  489. package/lib/main/browser/output-channel-registry-main.d.ts +11 -0
  490. package/lib/main/browser/output-channel-registry-main.d.ts.map +1 -0
  491. package/lib/main/browser/output-channel-registry-main.js +53 -0
  492. package/lib/main/browser/output-channel-registry-main.js.map +1 -0
  493. package/lib/main/browser/plugin-authentication-service.d.ts +14 -0
  494. package/lib/main/browser/plugin-authentication-service.d.ts.map +1 -0
  495. package/lib/main/browser/plugin-authentication-service.js +73 -0
  496. package/lib/main/browser/plugin-authentication-service.js.map +1 -0
  497. package/lib/main/browser/plugin-contribution-handler.d.ts +75 -0
  498. package/lib/main/browser/plugin-contribution-handler.d.ts.map +1 -0
  499. package/lib/main/browser/plugin-contribution-handler.js +640 -0
  500. package/lib/main/browser/plugin-contribution-handler.js.map +1 -0
  501. package/lib/main/browser/plugin-ext-argument-processor.d.ts +12 -0
  502. package/lib/main/browser/plugin-ext-argument-processor.d.ts.map +1 -0
  503. package/lib/main/browser/plugin-ext-argument-processor.js +41 -0
  504. package/lib/main/browser/plugin-ext-argument-processor.js.map +1 -0
  505. package/lib/main/browser/plugin-ext-frontend-module.d.ts +8 -0
  506. package/lib/main/browser/plugin-ext-frontend-module.d.ts.map +1 -0
  507. package/lib/main/browser/plugin-ext-frontend-module.js +257 -0
  508. package/lib/main/browser/plugin-ext-frontend-module.js.map +1 -0
  509. package/lib/main/browser/plugin-ext-widget.d.ts +29 -0
  510. package/lib/main/browser/plugin-ext-widget.d.ts.map +1 -0
  511. package/lib/main/browser/plugin-ext-widget.js +122 -0
  512. package/lib/main/browser/plugin-ext-widget.js.map +1 -0
  513. package/lib/main/browser/plugin-frontend-contribution.d.ts +10 -0
  514. package/lib/main/browser/plugin-frontend-contribution.d.ts.map +1 -0
  515. package/lib/main/browser/plugin-frontend-contribution.js +72 -0
  516. package/lib/main/browser/plugin-frontend-contribution.js.map +1 -0
  517. package/lib/main/browser/plugin-frontend-view-contribution.d.ts +7 -0
  518. package/lib/main/browser/plugin-frontend-view-contribution.d.ts.map +1 -0
  519. package/lib/main/browser/plugin-frontend-view-contribution.js +43 -0
  520. package/lib/main/browser/plugin-frontend-view-contribution.js.map +1 -0
  521. package/lib/main/browser/plugin-icon-service.d.ts +17 -0
  522. package/lib/main/browser/plugin-icon-service.d.ts.map +1 -0
  523. package/lib/main/browser/plugin-icon-service.js +89 -0
  524. package/lib/main/browser/plugin-icon-service.js.map +1 -0
  525. package/lib/main/browser/plugin-icon-theme-service.d.ts +147 -0
  526. package/lib/main/browser/plugin-icon-theme-service.d.ts.map +1 -0
  527. package/lib/main/browser/plugin-icon-theme-service.js +554 -0
  528. package/lib/main/browser/plugin-icon-theme-service.js.map +1 -0
  529. package/lib/main/browser/plugin-shared-style.d.ts +41 -0
  530. package/lib/main/browser/plugin-shared-style.d.ts.map +1 -0
  531. package/lib/main/browser/plugin-shared-style.js +137 -0
  532. package/lib/main/browser/plugin-shared-style.js.map +1 -0
  533. package/lib/main/browser/plugin-storage.d.ts +14 -0
  534. package/lib/main/browser/plugin-storage.d.ts.map +1 -0
  535. package/lib/main/browser/plugin-storage.js +47 -0
  536. package/lib/main/browser/plugin-storage.js.map +1 -0
  537. package/lib/main/browser/plugin-terminal-registry.d.ts +5 -0
  538. package/lib/main/browser/plugin-terminal-registry.d.ts.map +1 -0
  539. package/lib/main/browser/plugin-terminal-registry.js +30 -0
  540. package/lib/main/browser/plugin-terminal-registry.js.map +1 -0
  541. package/lib/main/browser/preference-registry-main.d.ts +20 -0
  542. package/lib/main/browser/preference-registry-main.d.ts.map +1 -0
  543. package/lib/main/browser/preference-registry-main.js +107 -0
  544. package/lib/main/browser/preference-registry-main.js.map +1 -0
  545. package/lib/main/browser/quick-open-main.d.ts +36 -0
  546. package/lib/main/browser/quick-open-main.d.ts.map +1 -0
  547. package/lib/main/browser/quick-open-main.js +314 -0
  548. package/lib/main/browser/quick-open-main.js.map +1 -0
  549. package/lib/main/browser/scm-main.d.ts +108 -0
  550. package/lib/main/browser/scm-main.d.ts.map +1 -0
  551. package/lib/main/browser/scm-main.js +348 -0
  552. package/lib/main/browser/scm-main.js.map +1 -0
  553. package/lib/main/browser/secrets-main.d.ts +16 -0
  554. package/lib/main/browser/secrets-main.d.ts.map +1 -0
  555. package/lib/main/browser/secrets-main.js +91 -0
  556. package/lib/main/browser/secrets-main.js.map +1 -0
  557. package/lib/main/browser/selection-provider-command.d.ts +13 -0
  558. package/lib/main/browser/selection-provider-command.d.ts.map +1 -0
  559. package/lib/main/browser/selection-provider-command.js +49 -0
  560. package/lib/main/browser/selection-provider-command.js.map +1 -0
  561. package/lib/main/browser/status-bar-message-registry-main.d.ts +19 -0
  562. package/lib/main/browser/status-bar-message-registry-main.d.ts.map +1 -0
  563. package/lib/main/browser/status-bar-message-registry-main.js +60 -0
  564. package/lib/main/browser/status-bar-message-registry-main.js.map +1 -0
  565. package/lib/main/browser/tabs/tabs-main.d.ts +54 -0
  566. package/lib/main/browser/tabs/tabs-main.d.ts.map +1 -0
  567. package/lib/main/browser/tabs/tabs-main.js +368 -0
  568. package/lib/main/browser/tabs/tabs-main.js.map +1 -0
  569. package/lib/main/browser/tasks-main.d.ts +34 -0
  570. package/lib/main/browser/tasks-main.d.ts.map +1 -0
  571. package/lib/main/browser/tasks-main.js +209 -0
  572. package/lib/main/browser/tasks-main.js.map +1 -0
  573. package/lib/main/browser/terminal-main.d.ts +64 -0
  574. package/lib/main/browser/terminal-main.d.ts.map +1 -0
  575. package/lib/main/browser/terminal-main.js +331 -0
  576. package/lib/main/browser/terminal-main.js.map +1 -0
  577. package/lib/main/browser/test-main.d.ts +144 -0
  578. package/lib/main/browser/test-main.d.ts.map +1 -0
  579. package/lib/main/browser/test-main.js +563 -0
  580. package/lib/main/browser/test-main.js.map +1 -0
  581. package/lib/main/browser/text-editor-main.d.ts +53 -0
  582. package/lib/main/browser/text-editor-main.d.ts.map +1 -0
  583. package/lib/main/browser/text-editor-main.js +443 -0
  584. package/lib/main/browser/text-editor-main.js.map +1 -0
  585. package/lib/main/browser/text-editor-model-service.d.ts +35 -0
  586. package/lib/main/browser/text-editor-model-service.d.ts.map +1 -0
  587. package/lib/main/browser/text-editor-model-service.js +111 -0
  588. package/lib/main/browser/text-editor-model-service.js.map +1 -0
  589. package/lib/main/browser/text-editors-main.d.ts +41 -0
  590. package/lib/main/browser/text-editors-main.d.ts.map +1 -0
  591. package/lib/main/browser/text-editors-main.js +180 -0
  592. package/lib/main/browser/text-editors-main.js.map +1 -0
  593. package/lib/main/browser/theme-icon-override.d.ts +2 -0
  594. package/lib/main/browser/theme-icon-override.d.ts.map +1 -0
  595. package/lib/main/browser/theme-icon-override.js +245 -0
  596. package/lib/main/browser/theme-icon-override.js.map +1 -0
  597. package/lib/main/browser/theming-main.d.ts +10 -0
  598. package/lib/main/browser/theming-main.d.ts.map +1 -0
  599. package/lib/main/browser/theming-main.js +36 -0
  600. package/lib/main/browser/theming-main.js.map +1 -0
  601. package/lib/main/browser/timeline-main.d.ts +14 -0
  602. package/lib/main/browser/timeline-main.d.ts.map +1 -0
  603. package/lib/main/browser/timeline-main.js +51 -0
  604. package/lib/main/browser/timeline-main.js.map +1 -0
  605. package/lib/main/browser/uri-main.d.ts +16 -0
  606. package/lib/main/browser/uri-main.d.ts.map +1 -0
  607. package/lib/main/browser/uri-main.js +64 -0
  608. package/lib/main/browser/uri-main.js.map +1 -0
  609. package/lib/main/browser/view/dnd-file-content-store.d.ts +8 -0
  610. package/lib/main/browser/view/dnd-file-content-store.d.ts.map +1 -0
  611. package/lib/main/browser/view/dnd-file-content-store.js +47 -0
  612. package/lib/main/browser/view/dnd-file-content-store.js.map +1 -0
  613. package/lib/main/browser/view/plugin-tree-view-node-label-provider.d.ts +12 -0
  614. package/lib/main/browser/view/plugin-tree-view-node-label-provider.d.ts.map +1 -0
  615. package/lib/main/browser/view/plugin-tree-view-node-label-provider.js +83 -0
  616. package/lib/main/browser/view/plugin-tree-view-node-label-provider.js.map +1 -0
  617. package/lib/main/browser/view/plugin-view-registry.d.ts +112 -0
  618. package/lib/main/browser/view/plugin-view-registry.d.ts.map +1 -0
  619. package/lib/main/browser/view/plugin-view-registry.js +901 -0
  620. package/lib/main/browser/view/plugin-view-registry.js.map +1 -0
  621. package/lib/main/browser/view/plugin-view-widget.d.ts +53 -0
  622. package/lib/main/browser/view/plugin-view-widget.d.ts.map +1 -0
  623. package/lib/main/browser/view/plugin-view-widget.js +164 -0
  624. package/lib/main/browser/view/plugin-view-widget.js.map +1 -0
  625. package/lib/main/browser/view/tree-view-decorator-service.d.ts +31 -0
  626. package/lib/main/browser/view/tree-view-decorator-service.d.ts.map +1 -0
  627. package/lib/main/browser/view/tree-view-decorator-service.js +58 -0
  628. package/lib/main/browser/view/tree-view-decorator-service.js.map +1 -0
  629. package/lib/main/browser/view/tree-view-widget.d.ts +166 -0
  630. package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -0
  631. package/lib/main/browser/view/tree-view-widget.js +848 -0
  632. package/lib/main/browser/view/tree-view-widget.js.map +1 -0
  633. package/lib/main/browser/view/tree-views-main.d.ts +35 -0
  634. package/lib/main/browser/view/tree-views-main.d.ts.map +1 -0
  635. package/lib/main/browser/view/tree-views-main.js +179 -0
  636. package/lib/main/browser/view/tree-views-main.js.map +1 -0
  637. package/lib/main/browser/view/view-context-key-service.d.ts +17 -0
  638. package/lib/main/browser/view/view-context-key-service.d.ts.map +1 -0
  639. package/lib/main/browser/view/view-context-key-service.js +63 -0
  640. package/lib/main/browser/view/view-context-key-service.js.map +1 -0
  641. package/lib/main/browser/webview/webview-context-keys.d.ts +17 -0
  642. package/lib/main/browser/webview/webview-context-keys.d.ts.map +1 -0
  643. package/lib/main/browser/webview/webview-context-keys.js +65 -0
  644. package/lib/main/browser/webview/webview-context-keys.js.map +1 -0
  645. package/lib/main/browser/webview/webview-environment.d.ts +17 -0
  646. package/lib/main/browser/webview/webview-environment.d.ts.map +1 -0
  647. package/lib/main/browser/webview/webview-environment.js +89 -0
  648. package/lib/main/browser/webview/webview-environment.js.map +1 -0
  649. package/lib/main/browser/webview/webview-frontend-preference-contribution.d.ts +5 -0
  650. package/lib/main/browser/webview/webview-frontend-preference-contribution.d.ts.map +1 -0
  651. package/lib/main/browser/webview/webview-frontend-preference-contribution.js +40 -0
  652. package/lib/main/browser/webview/webview-frontend-preference-contribution.js.map +1 -0
  653. package/lib/main/browser/webview/webview-frontend-security-warnings.d.ts +12 -0
  654. package/lib/main/browser/webview/webview-frontend-security-warnings.d.ts.map +1 -0
  655. package/lib/main/browser/webview/webview-frontend-security-warnings.js +66 -0
  656. package/lib/main/browser/webview/webview-frontend-security-warnings.js.map +1 -0
  657. package/lib/main/browser/webview/webview-resource-cache.d.ts +18 -0
  658. package/lib/main/browser/webview/webview-resource-cache.d.ts.map +1 -0
  659. package/lib/main/browser/webview/webview-resource-cache.js +83 -0
  660. package/lib/main/browser/webview/webview-resource-cache.js.map +1 -0
  661. package/lib/main/browser/webview/webview-secondary-window-support.d.ts +8 -0
  662. package/lib/main/browser/webview/webview-secondary-window-support.d.ts.map +1 -0
  663. package/lib/main/browser/webview/webview-secondary-window-support.js +52 -0
  664. package/lib/main/browser/webview/webview-secondary-window-support.js.map +1 -0
  665. package/lib/main/browser/webview/webview-theme-data-provider.d.ts +31 -0
  666. package/lib/main/browser/webview/webview-theme-data-provider.d.ts.map +1 -0
  667. package/lib/main/browser/webview/webview-theme-data-provider.js +125 -0
  668. package/lib/main/browser/webview/webview-theme-data-provider.js.map +1 -0
  669. package/lib/main/browser/webview/webview-widget-factory.d.ts +9 -0
  670. package/lib/main/browser/webview/webview-widget-factory.d.ts.map +1 -0
  671. package/lib/main/browser/webview/webview-widget-factory.js +40 -0
  672. package/lib/main/browser/webview/webview-widget-factory.js.map +1 -0
  673. package/lib/main/browser/webview/webview.d.ts +150 -0
  674. package/lib/main/browser/webview/webview.d.ts.map +1 -0
  675. package/lib/main/browser/webview/webview.js +591 -0
  676. package/lib/main/browser/webview/webview.js.map +1 -0
  677. package/lib/main/browser/webview-views/webview-views-main.d.ts +34 -0
  678. package/lib/main/browser/webview-views/webview-views-main.d.ts.map +1 -0
  679. package/lib/main/browser/webview-views/webview-views-main.js +133 -0
  680. package/lib/main/browser/webview-views/webview-views-main.js.map +1 -0
  681. package/lib/main/browser/webview-views/webview-views.d.ts +16 -0
  682. package/lib/main/browser/webview-views/webview-views.d.ts.map +1 -0
  683. package/lib/main/browser/webview-views/webview-views.js +23 -0
  684. package/lib/main/browser/webview-views/webview-views.js.map +1 -0
  685. package/lib/main/browser/webviews-main.d.ts +40 -0
  686. package/lib/main/browser/webviews-main.d.ts.map +1 -0
  687. package/lib/main/browser/webviews-main.js +247 -0
  688. package/lib/main/browser/webviews-main.js.map +1 -0
  689. package/lib/main/browser/window-activity-tracker.d.ts +20 -0
  690. package/lib/main/browser/window-activity-tracker.d.ts.map +1 -0
  691. package/lib/main/browser/window-activity-tracker.js +86 -0
  692. package/lib/main/browser/window-activity-tracker.js.map +1 -0
  693. package/lib/main/browser/window-state-main.d.ts +18 -0
  694. package/lib/main/browser/window-state-main.d.ts.map +1 -0
  695. package/lib/main/browser/window-state-main.js +69 -0
  696. package/lib/main/browser/window-state-main.js.map +1 -0
  697. package/lib/main/browser/workspace-main.d.ts +98 -0
  698. package/lib/main/browser/workspace-main.d.ts.map +1 -0
  699. package/lib/main/browser/workspace-main.js +384 -0
  700. package/lib/main/browser/workspace-main.js.map +1 -0
  701. package/lib/main/common/basic-message-registry-main.d.ts +14 -0
  702. package/lib/main/common/basic-message-registry-main.d.ts.map +1 -0
  703. package/lib/main/common/basic-message-registry-main.js +50 -0
  704. package/lib/main/common/basic-message-registry-main.js.map +1 -0
  705. package/lib/main/common/basic-notification-main.d.ts +19 -0
  706. package/lib/main/common/basic-notification-main.d.ts.map +1 -0
  707. package/lib/main/common/basic-notification-main.js +75 -0
  708. package/lib/main/common/basic-notification-main.js.map +1 -0
  709. package/lib/main/common/env-main.d.ts +11 -0
  710. package/lib/main/common/env-main.d.ts.map +1 -0
  711. package/lib/main/common/env-main.js +40 -0
  712. package/lib/main/common/env-main.js.map +1 -0
  713. package/lib/main/common/plugin-paths-protocol.d.ts +9 -0
  714. package/lib/main/common/plugin-paths-protocol.d.ts.map +1 -0
  715. package/lib/main/common/plugin-paths-protocol.js +22 -0
  716. package/lib/main/common/plugin-paths-protocol.js.map +1 -0
  717. package/lib/main/common/plugin-theia-environment.d.ts +8 -0
  718. package/lib/main/common/plugin-theia-environment.d.ts.map +1 -0
  719. package/lib/main/common/plugin-theia-environment.js +40 -0
  720. package/lib/main/common/plugin-theia-environment.js.map +1 -0
  721. package/lib/main/common/webview-preferences.d.ts +13 -0
  722. package/lib/main/common/webview-preferences.d.ts.map +1 -0
  723. package/lib/main/common/webview-preferences.js +47 -0
  724. package/lib/main/common/webview-preferences.js.map +1 -0
  725. package/lib/main/common/webview-protocol.d.ts +13 -0
  726. package/lib/main/common/webview-protocol.d.ts.map +1 -0
  727. package/lib/main/common/webview-protocol.js +32 -0
  728. package/lib/main/common/webview-protocol.js.map +1 -0
  729. package/lib/main/electron-browser/plugin-ext-frontend-electron-module.d.ts +4 -0
  730. package/lib/main/electron-browser/plugin-ext-frontend-electron-module.d.ts.map +1 -0
  731. package/lib/main/electron-browser/plugin-ext-frontend-electron-module.js +26 -0
  732. package/lib/main/electron-browser/plugin-ext-frontend-electron-module.js.map +1 -0
  733. package/lib/main/electron-browser/webview/electron-webview-widget-factory.d.ts +24 -0
  734. package/lib/main/electron-browser/webview/electron-webview-widget-factory.d.ts.map +1 -0
  735. package/lib/main/electron-browser/webview/electron-webview-widget-factory.js +54 -0
  736. package/lib/main/electron-browser/webview/electron-webview-widget-factory.js.map +1 -0
  737. package/lib/main/node/errors.spec.d.ts +2 -0
  738. package/lib/main/node/errors.spec.d.ts.map +1 -0
  739. package/lib/main/node/errors.spec.js +36 -0
  740. package/lib/main/node/errors.spec.js.map +1 -0
  741. package/lib/main/node/handlers/plugin-theia-directory-handler.d.ts +19 -0
  742. package/lib/main/node/handlers/plugin-theia-directory-handler.d.ts.map +1 -0
  743. package/lib/main/node/handlers/plugin-theia-directory-handler.js +130 -0
  744. package/lib/main/node/handlers/plugin-theia-directory-handler.js.map +1 -0
  745. package/lib/main/node/handlers/plugin-theia-file-handler.d.ts +11 -0
  746. package/lib/main/node/handlers/plugin-theia-file-handler.d.ts.map +1 -0
  747. package/lib/main/node/handlers/plugin-theia-file-handler.js +67 -0
  748. package/lib/main/node/handlers/plugin-theia-file-handler.js.map +1 -0
  749. package/lib/main/node/paths/const.d.ts +6 -0
  750. package/lib/main/node/paths/const.d.ts.map +1 -0
  751. package/lib/main/node/paths/const.js +25 -0
  752. package/lib/main/node/paths/const.js.map +1 -0
  753. package/lib/main/node/paths/plugin-paths-service.d.ts +26 -0
  754. package/lib/main/node/paths/plugin-paths-service.d.ts.map +1 -0
  755. package/lib/main/node/paths/plugin-paths-service.js +153 -0
  756. package/lib/main/node/paths/plugin-paths-service.js.map +1 -0
  757. package/lib/main/node/plugin-cli-contribution.d.ts +22 -0
  758. package/lib/main/node/plugin-cli-contribution.d.ts.map +1 -0
  759. package/lib/main/node/plugin-cli-contribution.js +80 -0
  760. package/lib/main/node/plugin-cli-contribution.js.map +1 -0
  761. package/lib/main/node/plugin-deployer-contribution.d.ts +9 -0
  762. package/lib/main/node/plugin-deployer-contribution.d.ts.map +1 -0
  763. package/lib/main/node/plugin-deployer-contribution.js +41 -0
  764. package/lib/main/node/plugin-deployer-contribution.js.map +1 -0
  765. package/lib/main/node/plugin-deployer-directory-handler-context-impl.d.ts +8 -0
  766. package/lib/main/node/plugin-deployer-directory-handler-context-impl.d.ts.map +1 -0
  767. package/lib/main/node/plugin-deployer-directory-handler-context-impl.js +45 -0
  768. package/lib/main/node/plugin-deployer-directory-handler-context-impl.js.map +1 -0
  769. package/lib/main/node/plugin-deployer-entry-impl.d.ts +35 -0
  770. package/lib/main/node/plugin-deployer-entry-impl.d.ts.map +1 -0
  771. package/lib/main/node/plugin-deployer-entry-impl.js +112 -0
  772. package/lib/main/node/plugin-deployer-entry-impl.js.map +1 -0
  773. package/lib/main/node/plugin-deployer-file-handler-context-impl.d.ts +8 -0
  774. package/lib/main/node/plugin-deployer-file-handler-context-impl.d.ts.map +1 -0
  775. package/lib/main/node/plugin-deployer-file-handler-context-impl.js +32 -0
  776. package/lib/main/node/plugin-deployer-file-handler-context-impl.js.map +1 -0
  777. package/lib/main/node/plugin-deployer-impl.d.ts +64 -0
  778. package/lib/main/node/plugin-deployer-impl.d.ts.map +1 -0
  779. package/lib/main/node/plugin-deployer-impl.js +350 -0
  780. package/lib/main/node/plugin-deployer-impl.js.map +1 -0
  781. package/lib/main/node/plugin-deployer-proxy-entry-impl.d.ts +30 -0
  782. package/lib/main/node/plugin-deployer-proxy-entry-impl.d.ts.map +1 -0
  783. package/lib/main/node/plugin-deployer-proxy-entry-impl.js +93 -0
  784. package/lib/main/node/plugin-deployer-proxy-entry-impl.js.map +1 -0
  785. package/lib/main/node/plugin-deployer-resolver-context-impl.d.ts +16 -0
  786. package/lib/main/node/plugin-deployer-resolver-context-impl.d.ts.map +1 -0
  787. package/lib/main/node/plugin-deployer-resolver-context-impl.js +43 -0
  788. package/lib/main/node/plugin-deployer-resolver-context-impl.js.map +1 -0
  789. package/lib/main/node/plugin-ext-backend-module.d.ts +3 -0
  790. package/lib/main/node/plugin-ext-backend-module.d.ts.map +1 -0
  791. package/lib/main/node/plugin-ext-backend-module.js +84 -0
  792. package/lib/main/node/plugin-ext-backend-module.js.map +1 -0
  793. package/lib/main/node/plugin-github-resolver.d.ts +24 -0
  794. package/lib/main/node/plugin-github-resolver.d.ts.map +1 -0
  795. package/lib/main/node/plugin-github-resolver.js +136 -0
  796. package/lib/main/node/plugin-github-resolver.js.map +1 -0
  797. package/lib/main/node/plugin-http-resolver.d.ts +21 -0
  798. package/lib/main/node/plugin-http-resolver.d.ts.map +1 -0
  799. package/lib/main/node/plugin-http-resolver.js +92 -0
  800. package/lib/main/node/plugin-http-resolver.js.map +1 -0
  801. package/lib/main/node/plugin-localization-server.d.ts +10 -0
  802. package/lib/main/node/plugin-localization-server.d.ts.map +1 -0
  803. package/lib/main/node/plugin-localization-server.js +51 -0
  804. package/lib/main/node/plugin-localization-server.js.map +1 -0
  805. package/lib/main/node/plugin-mgmt-cli-contribution.d.ts +13 -0
  806. package/lib/main/node/plugin-mgmt-cli-contribution.d.ts.map +1 -0
  807. package/lib/main/node/plugin-mgmt-cli-contribution.js +63 -0
  808. package/lib/main/node/plugin-mgmt-cli-contribution.js.map +1 -0
  809. package/lib/main/node/plugin-remote-cli-contribution.d.ts +8 -0
  810. package/lib/main/node/plugin-remote-cli-contribution.d.ts.map +1 -0
  811. package/lib/main/node/plugin-remote-cli-contribution.js +40 -0
  812. package/lib/main/node/plugin-remote-cli-contribution.js.map +1 -0
  813. package/lib/main/node/plugin-remote-copy-contribution.d.ts +7 -0
  814. package/lib/main/node/plugin-remote-copy-contribution.d.ts.map +1 -0
  815. package/lib/main/node/plugin-remote-copy-contribution.js +44 -0
  816. package/lib/main/node/plugin-remote-copy-contribution.js.map +1 -0
  817. package/lib/main/node/plugin-server-impl.d.ts +24 -0
  818. package/lib/main/node/plugin-server-impl.d.ts.map +1 -0
  819. package/lib/main/node/plugin-server-impl.js +88 -0
  820. package/lib/main/node/plugin-server-impl.js.map +1 -0
  821. package/lib/main/node/plugin-service.d.ts +24 -0
  822. package/lib/main/node/plugin-service.d.ts.map +1 -0
  823. package/lib/main/node/plugin-service.js +102 -0
  824. package/lib/main/node/plugin-service.js.map +1 -0
  825. package/lib/main/node/plugin-theia-deployer-participant.d.ts +7 -0
  826. package/lib/main/node/plugin-theia-deployer-participant.d.ts.map +1 -0
  827. package/lib/main/node/plugin-theia-deployer-participant.js +36 -0
  828. package/lib/main/node/plugin-theia-deployer-participant.js.map +1 -0
  829. package/lib/main/node/plugin-uninstallation-manager.d.ts +27 -0
  830. package/lib/main/node/plugin-uninstallation-manager.d.ts.map +1 -0
  831. package/lib/main/node/plugin-uninstallation-manager.js +133 -0
  832. package/lib/main/node/plugin-uninstallation-manager.js.map +1 -0
  833. package/lib/main/node/plugins-key-value-storage.d.ts +29 -0
  834. package/lib/main/node/plugins-key-value-storage.d.ts.map +1 -0
  835. package/lib/main/node/plugins-key-value-storage.js +160 -0
  836. package/lib/main/node/plugins-key-value-storage.js.map +1 -0
  837. package/lib/main/node/plugins-key-value-storage.spec.d.ts +17 -0
  838. package/lib/main/node/plugins-key-value-storage.spec.d.ts.map +1 -0
  839. package/lib/main/node/plugins-key-value-storage.spec.js +101 -0
  840. package/lib/main/node/plugins-key-value-storage.spec.js.map +1 -0
  841. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.d.ts +8 -0
  842. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.d.ts.map +1 -0
  843. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js +39 -0
  844. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js.map +1 -0
  845. package/lib/main/node/resolvers/local-plugin-deployer-resolver.d.ts +9 -0
  846. package/lib/main/node/resolvers/local-plugin-deployer-resolver.d.ts.map +1 -0
  847. package/lib/main/node/resolvers/local-plugin-deployer-resolver.js +55 -0
  848. package/lib/main/node/resolvers/local-plugin-deployer-resolver.js.map +1 -0
  849. package/lib/main/node/temp-dir-util.d.ts +3 -0
  850. package/lib/main/node/temp-dir-util.d.ts.map +1 -0
  851. package/lib/main/node/temp-dir-util.js +40 -0
  852. package/lib/main/node/temp-dir-util.js.map +1 -0
  853. package/lib/main/node/webview-backend-security-warnings.d.ts +6 -0
  854. package/lib/main/node/webview-backend-security-warnings.d.ts.map +1 -0
  855. package/lib/main/node/webview-backend-security-warnings.js +47 -0
  856. package/lib/main/node/webview-backend-security-warnings.js.map +1 -0
  857. package/lib/plugin/authentication-ext.d.ts +32 -0
  858. package/lib/plugin/authentication-ext.d.ts.map +1 -0
  859. package/lib/plugin/authentication-ext.js +108 -0
  860. package/lib/plugin/authentication-ext.js.map +1 -0
  861. package/lib/plugin/clipboard-ext.d.ts +11 -0
  862. package/lib/plugin/clipboard-ext.d.ts.map +1 -0
  863. package/lib/plugin/clipboard-ext.js +48 -0
  864. package/lib/plugin/clipboard-ext.js.map +1 -0
  865. package/lib/plugin/command-registry.d.ts +42 -0
  866. package/lib/plugin/command-registry.d.ts.map +1 -0
  867. package/lib/plugin/command-registry.js +183 -0
  868. package/lib/plugin/command-registry.js.map +1 -0
  869. package/lib/plugin/comments.d.ts +96 -0
  870. package/lib/plugin/comments.d.ts.map +1 -0
  871. package/lib/plugin/comments.js +406 -0
  872. package/lib/plugin/comments.js.map +1 -0
  873. package/lib/plugin/custom-editors.d.ts +46 -0
  874. package/lib/plugin/custom-editors.d.ts.map +1 -0
  875. package/lib/plugin/custom-editors.js +254 -0
  876. package/lib/plugin/custom-editors.js.map +1 -0
  877. package/lib/plugin/debug/debug-ext.d.ts +97 -0
  878. package/lib/plugin/debug/debug-ext.d.ts.map +1 -0
  879. package/lib/plugin/debug/debug-ext.js +459 -0
  880. package/lib/plugin/debug/debug-ext.js.map +1 -0
  881. package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts +11 -0
  882. package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts.map +1 -0
  883. package/lib/plugin/debug/plugin-debug-adapter-creator.js +42 -0
  884. package/lib/plugin/debug/plugin-debug-adapter-creator.js.map +1 -0
  885. package/lib/plugin/debug/plugin-debug-adapter-session.d.ts +27 -0
  886. package/lib/plugin/debug/plugin-debug-adapter-session.d.ts.map +1 -0
  887. package/lib/plugin/debug/plugin-debug-adapter-session.js +97 -0
  888. package/lib/plugin/debug/plugin-debug-adapter-session.js.map +1 -0
  889. package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts +13 -0
  890. package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts.map +1 -0
  891. package/lib/plugin/debug/plugin-debug-adapter-tracker.js +78 -0
  892. package/lib/plugin/debug/plugin-debug-adapter-tracker.js.map +1 -0
  893. package/lib/plugin/decorations.d.ts +16 -0
  894. package/lib/plugin/decorations.d.ts.map +1 -0
  895. package/lib/plugin/decorations.js +115 -0
  896. package/lib/plugin/decorations.js.map +1 -0
  897. package/lib/plugin/dialogs.d.ts +11 -0
  898. package/lib/plugin/dialogs.d.ts.map +1 -0
  899. package/lib/plugin/dialogs.js +92 -0
  900. package/lib/plugin/dialogs.js.map +1 -0
  901. package/lib/plugin/document-data.d.ts +41 -0
  902. package/lib/plugin/document-data.d.ts.map +1 -0
  903. package/lib/plugin/document-data.js +316 -0
  904. package/lib/plugin/document-data.js.map +1 -0
  905. package/lib/plugin/documents.d.ts +63 -0
  906. package/lib/plugin/documents.d.ts.map +1 -0
  907. package/lib/plugin/documents.js +272 -0
  908. package/lib/plugin/documents.js.map +1 -0
  909. package/lib/plugin/editors-and-documents.d.ts +27 -0
  910. package/lib/plugin/editors-and-documents.d.ts.map +1 -0
  911. package/lib/plugin/editors-and-documents.js +150 -0
  912. package/lib/plugin/editors-and-documents.js.map +1 -0
  913. package/lib/plugin/env.d.ts +41 -0
  914. package/lib/plugin/env.d.ts.map +1 -0
  915. package/lib/plugin/env.js +114 -0
  916. package/lib/plugin/env.js.map +1 -0
  917. package/lib/plugin/file-system-event-service-ext-impl.d.ts +56 -0
  918. package/lib/plugin/file-system-event-service-ext-impl.d.ts.map +1 -0
  919. package/lib/plugin/file-system-event-service-ext-impl.js +206 -0
  920. package/lib/plugin/file-system-event-service-ext-impl.js.map +1 -0
  921. package/lib/plugin/file-system-ext-impl.d.ts +82 -0
  922. package/lib/plugin/file-system-ext-impl.d.ts.map +1 -0
  923. package/lib/plugin/file-system-ext-impl.js +361 -0
  924. package/lib/plugin/file-system-ext-impl.js.map +1 -0
  925. package/lib/plugin/file-system-watcher.spec.d.ts +2 -0
  926. package/lib/plugin/file-system-watcher.spec.d.ts.map +1 -0
  927. package/lib/plugin/file-system-watcher.spec.js +108 -0
  928. package/lib/plugin/file-system-watcher.spec.js.map +1 -0
  929. package/lib/plugin/known-commands.d.ts +6 -0
  930. package/lib/plugin/known-commands.d.ts.map +1 -0
  931. package/lib/plugin/known-commands.js +402 -0
  932. package/lib/plugin/known-commands.js.map +1 -0
  933. package/lib/plugin/known-commands.spec.d.ts +2 -0
  934. package/lib/plugin/known-commands.spec.d.ts.map +1 -0
  935. package/lib/plugin/known-commands.spec.js +43 -0
  936. package/lib/plugin/known-commands.spec.js.map +1 -0
  937. package/lib/plugin/label-service.d.ts +12 -0
  938. package/lib/plugin/label-service.d.ts.map +1 -0
  939. package/lib/plugin/label-service.js +36 -0
  940. package/lib/plugin/label-service.js.map +1 -0
  941. package/lib/plugin/languages/call-hierarchy.d.ts +21 -0
  942. package/lib/plugin/languages/call-hierarchy.d.ts.map +1 -0
  943. package/lib/plugin/languages/call-hierarchy.js +102 -0
  944. package/lib/plugin/languages/call-hierarchy.js.map +1 -0
  945. package/lib/plugin/languages/code-action.d.ts +25 -0
  946. package/lib/plugin/languages/code-action.d.ts.map +1 -0
  947. package/lib/plugin/languages/code-action.js +138 -0
  948. package/lib/plugin/languages/code-action.js.map +1 -0
  949. package/lib/plugin/languages/color.d.ts +13 -0
  950. package/lib/plugin/languages/color.d.ts.map +1 -0
  951. package/lib/plugin/languages/color.js +59 -0
  952. package/lib/plugin/languages/color.js.map +1 -0
  953. package/lib/plugin/languages/completion.d.ts +21 -0
  954. package/lib/plugin/languages/completion.d.ts.map +1 -0
  955. package/lib/plugin/languages/completion.js +165 -0
  956. package/lib/plugin/languages/completion.js.map +1 -0
  957. package/lib/plugin/languages/declaration.d.ts +12 -0
  958. package/lib/plugin/languages/declaration.d.ts.map +1 -0
  959. package/lib/plugin/languages/declaration.js +59 -0
  960. package/lib/plugin/languages/declaration.js.map +1 -0
  961. package/lib/plugin/languages/definition.d.ts +12 -0
  962. package/lib/plugin/languages/definition.d.ts.map +1 -0
  963. package/lib/plugin/languages/definition.js +59 -0
  964. package/lib/plugin/languages/definition.js.map +1 -0
  965. package/lib/plugin/languages/diagnostics.d.ts +51 -0
  966. package/lib/plugin/languages/diagnostics.d.ts.map +1 -0
  967. package/lib/plugin/languages/diagnostics.js +288 -0
  968. package/lib/plugin/languages/diagnostics.js.map +1 -0
  969. package/lib/plugin/languages/document-drop-edit.d.ts +16 -0
  970. package/lib/plugin/languages/document-drop-edit.d.ts.map +1 -0
  971. package/lib/plugin/languages/document-drop-edit.js +23 -0
  972. package/lib/plugin/languages/document-drop-edit.js.map +1 -0
  973. package/lib/plugin/languages/document-formatting.d.ts +11 -0
  974. package/lib/plugin/languages/document-formatting.d.ts.map +1 -0
  975. package/lib/plugin/languages/document-formatting.js +41 -0
  976. package/lib/plugin/languages/document-formatting.js.map +1 -0
  977. package/lib/plugin/languages/document-highlight.d.ts +13 -0
  978. package/lib/plugin/languages/document-highlight.d.ts.map +1 -0
  979. package/lib/plugin/languages/document-highlight.js +51 -0
  980. package/lib/plugin/languages/document-highlight.js.map +1 -0
  981. package/lib/plugin/languages/evaluatable-expression.d.ts +12 -0
  982. package/lib/plugin/languages/evaluatable-expression.d.ts.map +1 -0
  983. package/lib/plugin/languages/evaluatable-expression.js +41 -0
  984. package/lib/plugin/languages/evaluatable-expression.js.map +1 -0
  985. package/lib/plugin/languages/folding.d.ts +11 -0
  986. package/lib/plugin/languages/folding.d.ts.map +1 -0
  987. package/lib/plugin/languages/folding.js +40 -0
  988. package/lib/plugin/languages/folding.js.map +1 -0
  989. package/lib/plugin/languages/hover.d.ts +12 -0
  990. package/lib/plugin/languages/hover.d.ts.map +1 -0
  991. package/lib/plugin/languages/hover.js +49 -0
  992. package/lib/plugin/languages/hover.js.map +1 -0
  993. package/lib/plugin/languages/implementation.d.ts +12 -0
  994. package/lib/plugin/languages/implementation.d.ts.map +1 -0
  995. package/lib/plugin/languages/implementation.js +59 -0
  996. package/lib/plugin/languages/implementation.js.map +1 -0
  997. package/lib/plugin/languages/inlay-hints.d.ts +20 -0
  998. package/lib/plugin/languages/inlay-hints.d.ts.map +1 -0
  999. package/lib/plugin/languages/inlay-hints.js +128 -0
  1000. package/lib/plugin/languages/inlay-hints.js.map +1 -0
  1001. package/lib/plugin/languages/inline-completion.d.ts +21 -0
  1002. package/lib/plugin/languages/inline-completion.d.ts.map +1 -0
  1003. package/lib/plugin/languages/inline-completion.js +94 -0
  1004. package/lib/plugin/languages/inline-completion.js.map +1 -0
  1005. package/lib/plugin/languages/inline-values.d.ts +11 -0
  1006. package/lib/plugin/languages/inline-values.d.ts.map +1 -0
  1007. package/lib/plugin/languages/inline-values.js +45 -0
  1008. package/lib/plugin/languages/inline-values.js.map +1 -0
  1009. package/lib/plugin/languages/lens.d.ts +20 -0
  1010. package/lib/plugin/languages/lens.d.ts.map +1 -0
  1011. package/lib/plugin/languages/lens.js +90 -0
  1012. package/lib/plugin/languages/lens.js.map +1 -0
  1013. package/lib/plugin/languages/link-provider.d.ts +15 -0
  1014. package/lib/plugin/languages/link-provider.d.ts.map +1 -0
  1015. package/lib/plugin/languages/link-provider.js +74 -0
  1016. package/lib/plugin/languages/link-provider.js.map +1 -0
  1017. package/lib/plugin/languages/linked-editing-range.d.ts +12 -0
  1018. package/lib/plugin/languages/linked-editing-range.d.ts.map +1 -0
  1019. package/lib/plugin/languages/linked-editing-range.js +41 -0
  1020. package/lib/plugin/languages/linked-editing-range.js.map +1 -0
  1021. package/lib/plugin/languages/on-type-formatting.d.ts +12 -0
  1022. package/lib/plugin/languages/on-type-formatting.d.ts.map +1 -0
  1023. package/lib/plugin/languages/on-type-formatting.js +42 -0
  1024. package/lib/plugin/languages/on-type-formatting.js.map +1 -0
  1025. package/lib/plugin/languages/outline.d.ts +21 -0
  1026. package/lib/plugin/languages/outline.d.ts.map +1 -0
  1027. package/lib/plugin/languages/outline.js +116 -0
  1028. package/lib/plugin/languages/outline.js.map +1 -0
  1029. package/lib/plugin/languages/range-formatting.d.ts +11 -0
  1030. package/lib/plugin/languages/range-formatting.d.ts.map +1 -0
  1031. package/lib/plugin/languages/range-formatting.js +42 -0
  1032. package/lib/plugin/languages/range-formatting.js.map +1 -0
  1033. package/lib/plugin/languages/reference.d.ts +12 -0
  1034. package/lib/plugin/languages/reference.d.ts.map +1 -0
  1035. package/lib/plugin/languages/reference.js +48 -0
  1036. package/lib/plugin/languages/reference.js.map +1 -0
  1037. package/lib/plugin/languages/rename.d.ts +15 -0
  1038. package/lib/plugin/languages/rename.d.ts.map +1 -0
  1039. package/lib/plugin/languages/rename.js +115 -0
  1040. package/lib/plugin/languages/rename.js.map +1 -0
  1041. package/lib/plugin/languages/selection-range.d.ts +12 -0
  1042. package/lib/plugin/languages/selection-range.d.ts.map +1 -0
  1043. package/lib/plugin/languages/selection-range.js +66 -0
  1044. package/lib/plugin/languages/selection-range.js.map +1 -0
  1045. package/lib/plugin/languages/semantic-highlighting.d.ts +29 -0
  1046. package/lib/plugin/languages/semantic-highlighting.d.ts.map +1 -0
  1047. package/lib/plugin/languages/semantic-highlighting.js +176 -0
  1048. package/lib/plugin/languages/semantic-highlighting.js.map +1 -0
  1049. package/lib/plugin/languages/signature.d.ts +16 -0
  1050. package/lib/plugin/languages/signature.d.ts.map +1 -0
  1051. package/lib/plugin/languages/signature.js +72 -0
  1052. package/lib/plugin/languages/signature.js.map +1 -0
  1053. package/lib/plugin/languages/type-definition.d.ts +12 -0
  1054. package/lib/plugin/languages/type-definition.d.ts.map +1 -0
  1055. package/lib/plugin/languages/type-definition.js +59 -0
  1056. package/lib/plugin/languages/type-definition.js.map +1 -0
  1057. package/lib/plugin/languages/type-hierarchy.d.ts +19 -0
  1058. package/lib/plugin/languages/type-hierarchy.d.ts.map +1 -0
  1059. package/lib/plugin/languages/type-hierarchy.js +96 -0
  1060. package/lib/plugin/languages/type-hierarchy.js.map +1 -0
  1061. package/lib/plugin/languages/util.d.ts +5 -0
  1062. package/lib/plugin/languages/util.d.ts.map +1 -0
  1063. package/lib/plugin/languages/util.js +28 -0
  1064. package/lib/plugin/languages/util.js.map +1 -0
  1065. package/lib/plugin/languages/workspace-symbol.d.ts +9 -0
  1066. package/lib/plugin/languages/workspace-symbol.d.ts.map +1 -0
  1067. package/lib/plugin/languages/workspace-symbol.js +62 -0
  1068. package/lib/plugin/languages/workspace-symbol.js.map +1 -0
  1069. package/lib/plugin/languages-utils.d.ts +7 -0
  1070. package/lib/plugin/languages-utils.d.ts.map +1 -0
  1071. package/lib/plugin/languages-utils.js +66 -0
  1072. package/lib/plugin/languages-utils.js.map +1 -0
  1073. package/lib/plugin/languages.d.ts +128 -0
  1074. package/lib/plugin/languages.d.ts.map +1 -0
  1075. package/lib/plugin/languages.js +720 -0
  1076. package/lib/plugin/languages.js.map +1 -0
  1077. package/lib/plugin/lm-ext.d.ts +28 -0
  1078. package/lib/plugin/lm-ext.d.ts.map +1 -0
  1079. package/lib/plugin/lm-ext.js +131 -0
  1080. package/lib/plugin/lm-ext.js.map +1 -0
  1081. package/lib/plugin/localization-ext.d.ts +19 -0
  1082. package/lib/plugin/localization-ext.d.ts.map +1 -0
  1083. package/lib/plugin/localization-ext.js +94 -0
  1084. package/lib/plugin/localization-ext.js.map +1 -0
  1085. package/lib/plugin/logger.d.ts +16 -0
  1086. package/lib/plugin/logger.d.ts.map +1 -0
  1087. package/lib/plugin/logger.js +56 -0
  1088. package/lib/plugin/logger.js.map +1 -0
  1089. package/lib/plugin/markdown-string.d.ts +25 -0
  1090. package/lib/plugin/markdown-string.d.ts.map +1 -0
  1091. package/lib/plugin/markdown-string.js +106 -0
  1092. package/lib/plugin/markdown-string.js.map +1 -0
  1093. package/lib/plugin/message-registry.d.ts +10 -0
  1094. package/lib/plugin/message-registry.d.ts.map +1 -0
  1095. package/lib/plugin/message-registry.js +77 -0
  1096. package/lib/plugin/message-registry.js.map +1 -0
  1097. package/lib/plugin/node/debug/debug.spec.d.ts +2 -0
  1098. package/lib/plugin/node/debug/debug.spec.d.ts.map +1 -0
  1099. package/lib/plugin/node/debug/debug.spec.js +88 -0
  1100. package/lib/plugin/node/debug/debug.spec.js.map +1 -0
  1101. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts +18 -0
  1102. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts.map +1 -0
  1103. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.js +155 -0
  1104. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.js.map +1 -0
  1105. package/lib/plugin/node/env-node-ext.d.ts +17 -0
  1106. package/lib/plugin/node/env-node-ext.d.ts.map +1 -0
  1107. package/lib/plugin/node/env-node-ext.js +64 -0
  1108. package/lib/plugin/node/env-node-ext.js.map +1 -0
  1109. package/lib/plugin/node/plugin-container-module.d.ts +75 -0
  1110. package/lib/plugin/node/plugin-container-module.d.ts.map +1 -0
  1111. package/lib/plugin/node/plugin-container-module.js +115 -0
  1112. package/lib/plugin/node/plugin-container-module.js.map +1 -0
  1113. package/lib/plugin/notebook/notebook-document.d.ts +60 -0
  1114. package/lib/plugin/notebook/notebook-document.d.ts.map +1 -0
  1115. package/lib/plugin/notebook/notebook-document.js +383 -0
  1116. package/lib/plugin/notebook/notebook-document.js.map +1 -0
  1117. package/lib/plugin/notebook/notebook-documents.d.ts +17 -0
  1118. package/lib/plugin/notebook/notebook-documents.d.ts.map +1 -0
  1119. package/lib/plugin/notebook/notebook-documents.js +48 -0
  1120. package/lib/plugin/notebook/notebook-documents.js.map +1 -0
  1121. package/lib/plugin/notebook/notebook-editor.d.ts +21 -0
  1122. package/lib/plugin/notebook/notebook-editor.d.ts.map +1 -0
  1123. package/lib/plugin/notebook/notebook-editor.js +99 -0
  1124. package/lib/plugin/notebook/notebook-editor.js.map +1 -0
  1125. package/lib/plugin/notebook/notebook-editors.d.ts +14 -0
  1126. package/lib/plugin/notebook/notebook-editors.d.ts.map +1 -0
  1127. package/lib/plugin/notebook/notebook-editors.js +65 -0
  1128. package/lib/plugin/notebook/notebook-editors.js.map +1 -0
  1129. package/lib/plugin/notebook/notebook-kernels.d.ts +40 -0
  1130. package/lib/plugin/notebook/notebook-kernels.d.ts.map +1 -0
  1131. package/lib/plugin/notebook/notebook-kernels.js +536 -0
  1132. package/lib/plugin/notebook/notebook-kernels.js.map +1 -0
  1133. package/lib/plugin/notebook/notebook-renderers.d.ts +14 -0
  1134. package/lib/plugin/notebook/notebook-renderers.d.ts.map +1 -0
  1135. package/lib/plugin/notebook/notebook-renderers.js +63 -0
  1136. package/lib/plugin/notebook/notebook-renderers.js.map +1 -0
  1137. package/lib/plugin/notebook/notebooks.d.ts +62 -0
  1138. package/lib/plugin/notebook/notebooks.d.ts.map +1 -0
  1139. package/lib/plugin/notebook/notebooks.js +381 -0
  1140. package/lib/plugin/notebook/notebooks.js.map +1 -0
  1141. package/lib/plugin/notification.d.ts +18 -0
  1142. package/lib/plugin/notification.d.ts.map +1 -0
  1143. package/lib/plugin/notification.js +68 -0
  1144. package/lib/plugin/notification.js.map +1 -0
  1145. package/lib/plugin/output-channel/log-output-channel.d.ts +24 -0
  1146. package/lib/plugin/output-channel/log-output-channel.d.ts.map +1 -0
  1147. package/lib/plugin/output-channel/log-output-channel.js +101 -0
  1148. package/lib/plugin/output-channel/log-output-channel.js.map +1 -0
  1149. package/lib/plugin/output-channel/output-channel-item.d.ts +18 -0
  1150. package/lib/plugin/output-channel/output-channel-item.d.ts.map +1 -0
  1151. package/lib/plugin/output-channel/output-channel-item.js +60 -0
  1152. package/lib/plugin/output-channel/output-channel-item.js.map +1 -0
  1153. package/lib/plugin/output-channel-registry.d.ts +14 -0
  1154. package/lib/plugin/output-channel-registry.d.ts.map +1 -0
  1155. package/lib/plugin/output-channel-registry.js +45 -0
  1156. package/lib/plugin/output-channel-registry.js.map +1 -0
  1157. package/lib/plugin/path.d.ts +3 -0
  1158. package/lib/plugin/path.d.ts.map +1 -0
  1159. package/lib/plugin/path.js +60 -0
  1160. package/lib/plugin/path.js.map +1 -0
  1161. package/lib/plugin/path.spec.d.ts +2 -0
  1162. package/lib/plugin/path.spec.d.ts.map +1 -0
  1163. package/lib/plugin/path.spec.js +35 -0
  1164. package/lib/plugin/path.spec.js.map +1 -0
  1165. package/lib/plugin/plugin-context.d.ts +60 -0
  1166. package/lib/plugin/plugin-context.d.ts.map +1 -0
  1167. package/lib/plugin/plugin-context.js +1351 -0
  1168. package/lib/plugin/plugin-context.js.map +1 -0
  1169. package/lib/plugin/plugin-icon-path.d.ts +13 -0
  1170. package/lib/plugin/plugin-icon-path.d.ts.map +1 -0
  1171. package/lib/plugin/plugin-icon-path.js +54 -0
  1172. package/lib/plugin/plugin-icon-path.js.map +1 -0
  1173. package/lib/plugin/plugin-manager.d.ts +96 -0
  1174. package/lib/plugin/plugin-manager.d.ts.map +1 -0
  1175. package/lib/plugin/plugin-manager.js +434 -0
  1176. package/lib/plugin/plugin-manager.js.map +1 -0
  1177. package/lib/plugin/plugin-storage.d.ts +45 -0
  1178. package/lib/plugin/plugin-storage.d.ts.map +1 -0
  1179. package/lib/plugin/plugin-storage.js +109 -0
  1180. package/lib/plugin/plugin-storage.js.map +1 -0
  1181. package/lib/plugin/preference-registry.d.ts +41 -0
  1182. package/lib/plugin/preference-registry.d.ts.map +1 -0
  1183. package/lib/plugin/preference-registry.js +337 -0
  1184. package/lib/plugin/preference-registry.js.map +1 -0
  1185. package/lib/plugin/preference-registry.spec.d.ts +2 -0
  1186. package/lib/plugin/preference-registry.spec.d.ts.map +1 -0
  1187. package/lib/plugin/preference-registry.spec.js +247 -0
  1188. package/lib/plugin/preference-registry.spec.js.map +1 -0
  1189. package/lib/plugin/prefix-sum-computer.d.ts +31 -0
  1190. package/lib/plugin/prefix-sum-computer.d.ts.map +1 -0
  1191. package/lib/plugin/prefix-sum-computer.js +173 -0
  1192. package/lib/plugin/prefix-sum-computer.js.map +1 -0
  1193. package/lib/plugin/quick-open.d.ts +182 -0
  1194. package/lib/plugin/quick-open.d.ts.map +1 -0
  1195. package/lib/plugin/quick-open.js +605 -0
  1196. package/lib/plugin/quick-open.js.map +1 -0
  1197. package/lib/plugin/scm.d.ts +55 -0
  1198. package/lib/plugin/scm.d.ts.map +1 -0
  1199. package/lib/plugin/scm.js +740 -0
  1200. package/lib/plugin/scm.js.map +1 -0
  1201. package/lib/plugin/secrets-ext.d.ts +43 -0
  1202. package/lib/plugin/secrets-ext.d.ts.map +1 -0
  1203. package/lib/plugin/secrets-ext.js +84 -0
  1204. package/lib/plugin/secrets-ext.js.map +1 -0
  1205. package/lib/plugin/status-bar/status-bar-item.d.ts +52 -0
  1206. package/lib/plugin/status-bar/status-bar-item.d.ts.map +1 -0
  1207. package/lib/plugin/status-bar/status-bar-item.js +190 -0
  1208. package/lib/plugin/status-bar/status-bar-item.js.map +1 -0
  1209. package/lib/plugin/status-bar-message-registry.d.ts +26 -0
  1210. package/lib/plugin/status-bar-message-registry.d.ts.map +1 -0
  1211. package/lib/plugin/status-bar-message-registry.js +100 -0
  1212. package/lib/plugin/status-bar-message-registry.js.map +1 -0
  1213. package/lib/plugin/tabs.d.ts +23 -0
  1214. package/lib/plugin/tabs.d.ts.map +1 -0
  1215. package/lib/plugin/tabs.js +363 -0
  1216. package/lib/plugin/tabs.js.map +1 -0
  1217. package/lib/plugin/tasks/task-provider.d.ts +9 -0
  1218. package/lib/plugin/tasks/task-provider.d.ts.map +1 -0
  1219. package/lib/plugin/tasks/task-provider.js +54 -0
  1220. package/lib/plugin/tasks/task-provider.js.map +1 -0
  1221. package/lib/plugin/tasks/tasks.d.ts +47 -0
  1222. package/lib/plugin/tasks/tasks.d.ts.map +1 -0
  1223. package/lib/plugin/tasks/tasks.js +216 -0
  1224. package/lib/plugin/tasks/tasks.js.map +1 -0
  1225. package/lib/plugin/telemetry-ext.d.ts +44 -0
  1226. package/lib/plugin/telemetry-ext.d.ts.map +1 -0
  1227. package/lib/plugin/telemetry-ext.js +252 -0
  1228. package/lib/plugin/telemetry-ext.js.map +1 -0
  1229. package/lib/plugin/terminal-ext.d.ts +115 -0
  1230. package/lib/plugin/terminal-ext.d.ts.map +1 -0
  1231. package/lib/plugin/terminal-ext.js +502 -0
  1232. package/lib/plugin/terminal-ext.js.map +1 -0
  1233. package/lib/plugin/test-item.d.ts +47 -0
  1234. package/lib/plugin/test-item.d.ts.map +1 -0
  1235. package/lib/plugin/test-item.js +188 -0
  1236. package/lib/plugin/test-item.js.map +1 -0
  1237. package/lib/plugin/tests.d.ts +141 -0
  1238. package/lib/plugin/tests.d.ts.map +1 -0
  1239. package/lib/plugin/tests.js +469 -0
  1240. package/lib/plugin/tests.js.map +1 -0
  1241. package/lib/plugin/text-editor.d.ts +109 -0
  1242. package/lib/plugin/text-editor.d.ts.map +1 -0
  1243. package/lib/plugin/text-editor.js +474 -0
  1244. package/lib/plugin/text-editor.js.map +1 -0
  1245. package/lib/plugin/text-editors.d.ts +44 -0
  1246. package/lib/plugin/text-editors.d.ts.map +1 -0
  1247. package/lib/plugin/text-editors.js +203 -0
  1248. package/lib/plugin/text-editors.js.map +1 -0
  1249. package/lib/plugin/theming.d.ts +16 -0
  1250. package/lib/plugin/theming.d.ts.map +1 -0
  1251. package/lib/plugin/theming.js +62 -0
  1252. package/lib/plugin/theming.js.map +1 -0
  1253. package/lib/plugin/timeline.d.ts +21 -0
  1254. package/lib/plugin/timeline.d.ts.map +1 -0
  1255. package/lib/plugin/timeline.js +161 -0
  1256. package/lib/plugin/timeline.js.map +1 -0
  1257. package/lib/plugin/tree/tree-views.d.ts +108 -0
  1258. package/lib/plugin/tree/tree-views.d.ts.map +1 -0
  1259. package/lib/plugin/tree/tree-views.js +610 -0
  1260. package/lib/plugin/tree/tree-views.js.map +1 -0
  1261. package/lib/plugin/type-converters.d.ts +216 -0
  1262. package/lib/plugin/type-converters.d.ts.map +1 -0
  1263. package/lib/plugin/type-converters.js +1737 -0
  1264. package/lib/plugin/type-converters.js.map +1 -0
  1265. package/lib/plugin/type-converters.spec.d.ts +2 -0
  1266. package/lib/plugin/type-converters.spec.d.ts.map +1 -0
  1267. package/lib/plugin/type-converters.spec.js +396 -0
  1268. package/lib/plugin/type-converters.spec.js.map +1 -0
  1269. package/lib/plugin/types-impl.d.ts +2132 -0
  1270. package/lib/plugin/types-impl.d.ts.map +1 -0
  1271. package/lib/plugin/types-impl.js +3633 -0
  1272. package/lib/plugin/types-impl.js.map +1 -0
  1273. package/lib/plugin/types-impl.spec.d.ts +2 -0
  1274. package/lib/plugin/types-impl.spec.d.ts.map +1 -0
  1275. package/lib/plugin/types-impl.spec.js +79 -0
  1276. package/lib/plugin/types-impl.spec.js.map +1 -0
  1277. package/lib/plugin/uri-ext.d.ts +13 -0
  1278. package/lib/plugin/uri-ext.d.ts.map +1 -0
  1279. package/lib/plugin/uri-ext.js +49 -0
  1280. package/lib/plugin/uri-ext.js.map +1 -0
  1281. package/lib/plugin/webview-views.d.ts +56 -0
  1282. package/lib/plugin/webview-views.d.ts.map +1 -0
  1283. package/lib/plugin/webview-views.js +157 -0
  1284. package/lib/plugin/webview-views.js.map +1 -0
  1285. package/lib/plugin/webviews.d.ts +113 -0
  1286. package/lib/plugin/webviews.d.ts.map +1 -0
  1287. package/lib/plugin/webviews.js +393 -0
  1288. package/lib/plugin/webviews.js.map +1 -0
  1289. package/lib/plugin/window-state.d.ts +19 -0
  1290. package/lib/plugin/window-state.d.ts.map +1 -0
  1291. package/lib/plugin/window-state.js +67 -0
  1292. package/lib/plugin/window-state.js.map +1 -0
  1293. package/lib/plugin/word-helper.d.ts +22 -0
  1294. package/lib/plugin/word-helper.d.ts.map +1 -0
  1295. package/lib/plugin/word-helper.js +126 -0
  1296. package/lib/plugin/word-helper.js.map +1 -0
  1297. package/lib/plugin/workspace.d.ts +75 -0
  1298. package/lib/plugin/workspace.d.ts.map +1 -0
  1299. package/lib/plugin/workspace.js +476 -0
  1300. package/lib/plugin/workspace.js.map +1 -0
  1301. package/lib/plugin-ext-backend-electron-module.d.ts +4 -0
  1302. package/lib/plugin-ext-backend-electron-module.d.ts.map +1 -0
  1303. package/lib/plugin-ext-backend-electron-module.js +25 -0
  1304. package/lib/plugin-ext-backend-electron-module.js.map +1 -0
  1305. package/lib/plugin-ext-backend-module.d.ts +4 -0
  1306. package/lib/plugin-ext-backend-module.d.ts.map +1 -0
  1307. package/lib/plugin-ext-backend-module.js +25 -0
  1308. package/lib/plugin-ext-backend-module.js.map +1 -0
  1309. package/lib/plugin-ext-frontend-electron-module.d.ts +3 -0
  1310. package/lib/plugin-ext-frontend-electron-module.d.ts.map +1 -0
  1311. package/lib/plugin-ext-frontend-electron-module.js +20 -0
  1312. package/lib/plugin-ext-frontend-electron-module.js.map +1 -0
  1313. package/lib/plugin-ext-frontend-module.d.ts +3 -0
  1314. package/lib/plugin-ext-frontend-module.d.ts.map +1 -0
  1315. package/lib/plugin-ext-frontend-module.js +20 -0
  1316. package/lib/plugin-ext-frontend-module.js.map +1 -0
  1317. package/package.json +29 -29
@@ -0,0 +1,1737 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2018 Red Hat, Inc. and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.isModelCallHierarchyOutgoingCall = exports.isModelCallHierarchyIncomingCall = exports.isModelCallHierarchyItem = exports.isUriComponents = exports.isModelRange = exports.isModelLocation = exports.toMergedSymbol = exports.toSymbolTag = exports.fromSymbolTag = exports.toDocumentSymbol = exports.fromDocumentSymbol = exports.toCodeActionTriggerKind = exports.SymbolKind = exports.fromWorkspaceEdit = exports.SignatureHelp = exports.SignatureInformation = exports.ParameterInformation = exports.fromDocumentHighlight = exports.fromDocumentHighlightKind = exports.DocumentLink = exports.fromDefinitionLink = exports.fromTextDocumentShowOptions = exports.fromLocationToLanguageServerLocation = exports.fromLocation = exports.toInlineValueContext = exports.fromInlineValue = exports.fromEvaluatableExpression = exports.fromHover = exports.convertCode = exports.convertDiagnosticToMarkerData = exports.fromTextEdit = exports.toCompletionItemKind = exports.fromCompletionItemKind = exports.fromGlobPattern = exports.fromDocumentSelector = exports.toMarkdown = exports.fromMarkdownOrString = exports.fromMarkdown = exports.fromManyMarkdown = exports.fromRangeOrRangeWithMessage = exports.isDecorationOptionsArr = exports.toPosition = exports.fromPosition = exports.fromRange = exports.toRange = exports.fromSelection = exports.toSelection = exports.toWebviewPanelShowOptions = exports.fromViewColumn = exports.toViewColumn = void 0;
19
+ exports.NotebookCellExecutionSummary = exports.NotebookCellOutputConverter = exports.NotebookCellOutputItem = exports.NotebookCellOutput = exports.NotebookCellKind = exports.NotebookCellData = exports.NotebookData = exports.NotebookStatusBarItem = exports.NotebookDocumentContentOptions = exports.DataTransfer = exports.DataTransferItem = exports.InlayHintKind = exports.pluginToPluginInfo = exports.pathOrURIToURI = exports.ViewColumn = exports.ThemableDecorationAttachmentRenderOptions = exports.ThemableDecorationRenderOptions = exports.DecorationRangeBehavior = exports.DecorationRenderOptions = exports.convertToTransferQuickPickItems = exports.convertQuickInputButton = exports.convertIconPath = exports.fromColorPresentation = exports.toColor = exports.fromColor = exports.fromFoldingRangeKind = exports.fromFoldingRange = exports.fromSelectionRange = exports.toSymbolInformation = exports.fromSymbolInformation = exports.getShellExecutionOptions = exports.getShellArgs = exports.getCustomExecution = exports.getShellExecution = exports.getProcessExecution = exports.fromCustomExecution = exports.fromShellExecution = exports.fromProcessExecution = exports.toTask = exports.fromTask = exports.toWorkspaceFolder = exports.toTypeHierarchyItem = exports.fromTypeHierarchyItem = exports.isModelTypeHierarchyItem = exports.toCallHierarchyOutgoingCall = exports.toCallHierarchyIncomingCall = exports.toCallHierarchyItem = exports.fromCallHierarchyItem = exports.fromHierarchyItem = exports.toLocation = void 0;
20
+ exports.TestItem = exports.TestMessageStackFrame = exports.TestMessage = exports.NotebookKernelSourceAction = exports.NotebookRange = void 0;
21
+ const lstypes = require("@theia/core/shared/vscode-languageserver-protocol");
22
+ const types_impl_1 = require("./types-impl");
23
+ const rpc = require("../common/plugin-api-rpc");
24
+ const plugin_api_rpc_1 = require("../common/plugin-api-rpc");
25
+ const model = require("../common/plugin-api-rpc-model");
26
+ const markdown_string_1 = require("./markdown-string");
27
+ const types = require("./types-impl");
28
+ const arrays_1 = require("../common/arrays");
29
+ const common_1 = require("@theia/core/lib/common");
30
+ const notebooks = require("@theia/notebook/lib/common");
31
+ const buffer_1 = require("@theia/core/lib/common/buffer");
32
+ const common_2 = require("@theia/notebook/lib/common");
33
+ const markdown_rendering_1 = require("@theia/core/lib/common/markdown-rendering");
34
+ const plugin_icon_path_1 = require("./plugin-icon-path");
35
+ const SIDE_GROUP = -2;
36
+ const ACTIVE_GROUP = -1;
37
+ function toViewColumn(ep) {
38
+ if (typeof ep !== 'number') {
39
+ return undefined;
40
+ }
41
+ if (ep === plugin_api_rpc_1.EditorPosition.ONE) {
42
+ return types.ViewColumn.One;
43
+ }
44
+ else if (ep === plugin_api_rpc_1.EditorPosition.TWO) {
45
+ return types.ViewColumn.Two;
46
+ }
47
+ else if (ep === plugin_api_rpc_1.EditorPosition.THREE) {
48
+ return types.ViewColumn.Three;
49
+ }
50
+ else if (ep === plugin_api_rpc_1.EditorPosition.FOUR) {
51
+ return types.ViewColumn.Four;
52
+ }
53
+ else if (ep === plugin_api_rpc_1.EditorPosition.FIVE) {
54
+ return types.ViewColumn.Five;
55
+ }
56
+ else if (ep === plugin_api_rpc_1.EditorPosition.SIX) {
57
+ return types.ViewColumn.Six;
58
+ }
59
+ else if (ep === plugin_api_rpc_1.EditorPosition.SEVEN) {
60
+ return types.ViewColumn.Seven;
61
+ }
62
+ else if (ep === plugin_api_rpc_1.EditorPosition.EIGHT) {
63
+ return types.ViewColumn.Eight;
64
+ }
65
+ else if (ep === plugin_api_rpc_1.EditorPosition.NINE) {
66
+ return types.ViewColumn.Nine;
67
+ }
68
+ return undefined;
69
+ }
70
+ exports.toViewColumn = toViewColumn;
71
+ function fromViewColumn(column) {
72
+ if (typeof column === 'number' && column >= types.ViewColumn.One) {
73
+ return column - 1;
74
+ }
75
+ if (column === types.ViewColumn.Beside) {
76
+ return SIDE_GROUP;
77
+ }
78
+ return ACTIVE_GROUP;
79
+ }
80
+ exports.fromViewColumn = fromViewColumn;
81
+ function toWebviewPanelShowOptions(options) {
82
+ if (typeof options === 'object') {
83
+ const showOptions = options;
84
+ return {
85
+ area: showOptions.area ? showOptions.area : types.WebviewPanelTargetArea.Main,
86
+ viewColumn: showOptions.viewColumn ? fromViewColumn(showOptions.viewColumn) : undefined,
87
+ preserveFocus: showOptions.preserveFocus ? showOptions.preserveFocus : false
88
+ };
89
+ }
90
+ return {
91
+ area: types.WebviewPanelTargetArea.Main,
92
+ viewColumn: fromViewColumn(options),
93
+ preserveFocus: false
94
+ };
95
+ }
96
+ exports.toWebviewPanelShowOptions = toWebviewPanelShowOptions;
97
+ function toSelection(selection) {
98
+ const { selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn } = selection;
99
+ const start = new types.Position(selectionStartLineNumber - 1, selectionStartColumn - 1);
100
+ const end = new types.Position(positionLineNumber - 1, positionColumn - 1);
101
+ return new types.Selection(start, end);
102
+ }
103
+ exports.toSelection = toSelection;
104
+ function fromSelection(selection) {
105
+ const { active, anchor } = selection;
106
+ return {
107
+ selectionStartLineNumber: anchor.line + 1,
108
+ selectionStartColumn: anchor.character + 1,
109
+ positionLineNumber: active.line + 1,
110
+ positionColumn: active.character + 1
111
+ };
112
+ }
113
+ exports.fromSelection = fromSelection;
114
+ function toRange(range) {
115
+ const { startLineNumber, startColumn, endLineNumber, endColumn } = range;
116
+ return new types.Range(startLineNumber - 1, startColumn - 1, endLineNumber - 1, endColumn - 1);
117
+ }
118
+ exports.toRange = toRange;
119
+ function fromRange(range) {
120
+ if (!range) {
121
+ return undefined;
122
+ }
123
+ const { start, end } = range;
124
+ return {
125
+ startLineNumber: start.line + 1,
126
+ startColumn: start.character + 1,
127
+ endLineNumber: end.line + 1,
128
+ endColumn: end.character + 1
129
+ };
130
+ }
131
+ exports.fromRange = fromRange;
132
+ function fromPosition(position) {
133
+ if (!position) {
134
+ return undefined;
135
+ }
136
+ return { lineNumber: position.line + 1, column: position.character + 1 };
137
+ }
138
+ exports.fromPosition = fromPosition;
139
+ function toPosition(position) {
140
+ if (!position) {
141
+ return undefined;
142
+ }
143
+ return new types.Position(position.lineNumber - 1, position.column - 1);
144
+ }
145
+ exports.toPosition = toPosition;
146
+ function isDecorationOptions(arg) {
147
+ return (0, common_1.isObject)(arg) && typeof arg.range !== 'undefined';
148
+ }
149
+ function isDecorationOptionsArr(something) {
150
+ if (something.length === 0) {
151
+ return true;
152
+ }
153
+ return isDecorationOptions(something[0]) ? true : false;
154
+ }
155
+ exports.isDecorationOptionsArr = isDecorationOptionsArr;
156
+ function fromRangeOrRangeWithMessage(ranges) {
157
+ if (isDecorationOptionsArr(ranges)) {
158
+ return ranges.map(r => {
159
+ let hoverMessage;
160
+ if (Array.isArray(r.hoverMessage)) {
161
+ hoverMessage = fromManyMarkdown(r.hoverMessage);
162
+ }
163
+ else if (r.hoverMessage) {
164
+ hoverMessage = fromMarkdown(r.hoverMessage);
165
+ }
166
+ else {
167
+ hoverMessage = undefined;
168
+ }
169
+ return {
170
+ range: fromRange(r.range),
171
+ hoverMessage: hoverMessage,
172
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
173
+ renderOptions: /* URI vs Uri */ r.renderOptions
174
+ };
175
+ });
176
+ }
177
+ else {
178
+ return ranges.map(r => ({ range: fromRange(r) }));
179
+ }
180
+ }
181
+ exports.fromRangeOrRangeWithMessage = fromRangeOrRangeWithMessage;
182
+ function fromManyMarkdown(markup) {
183
+ return markup.map(fromMarkdown);
184
+ }
185
+ exports.fromManyMarkdown = fromManyMarkdown;
186
+ function isCodeblock(arg) {
187
+ return (0, common_1.isObject)(arg)
188
+ && typeof arg.language === 'string'
189
+ && typeof arg.value === 'string';
190
+ }
191
+ function fromMarkdown(markup) {
192
+ if (isCodeblock(markup)) {
193
+ const { language, value } = markup;
194
+ return { value: '```' + language + '\n' + value + '\n```\n' };
195
+ }
196
+ else if (markup instanceof markdown_string_1.MarkdownString) {
197
+ return markup.toJSON();
198
+ }
199
+ else if (markdown_rendering_1.MarkdownString.is(markup)) {
200
+ return markup;
201
+ }
202
+ else if (typeof markup === 'string') {
203
+ return { value: markup };
204
+ }
205
+ else {
206
+ return { value: '' };
207
+ }
208
+ }
209
+ exports.fromMarkdown = fromMarkdown;
210
+ function fromMarkdownOrString(value) {
211
+ if (value === undefined) {
212
+ return undefined;
213
+ }
214
+ else if (typeof value === 'string') {
215
+ return value;
216
+ }
217
+ else {
218
+ return fromMarkdown(value);
219
+ }
220
+ }
221
+ exports.fromMarkdownOrString = fromMarkdownOrString;
222
+ function toMarkdown(value) {
223
+ const implemented = new markdown_string_1.MarkdownString(value.value, value.supportThemeIcons);
224
+ implemented.isTrusted = value.isTrusted;
225
+ implemented.supportHtml = value.supportHtml;
226
+ implemented.baseUri = value.baseUri && types_impl_1.URI.revive(implemented.baseUri);
227
+ return implemented;
228
+ }
229
+ exports.toMarkdown = toMarkdown;
230
+ function fromDocumentSelector(selector) {
231
+ if (!selector) {
232
+ return undefined;
233
+ }
234
+ else if ((0, arrays_1.isReadonlyArray)(selector)) {
235
+ return selector.map(fromDocumentSelector);
236
+ }
237
+ else if (typeof selector === 'string') {
238
+ return selector;
239
+ }
240
+ else {
241
+ return {
242
+ language: selector.language,
243
+ scheme: selector.scheme,
244
+ pattern: fromGlobPattern(selector.pattern)
245
+ };
246
+ }
247
+ }
248
+ exports.fromDocumentSelector = fromDocumentSelector;
249
+ function fromGlobPattern(pattern) {
250
+ if (typeof pattern === 'string') {
251
+ return pattern;
252
+ }
253
+ if (isRelativePattern(pattern)) {
254
+ return new types.RelativePattern(pattern.baseUri, pattern.pattern);
255
+ }
256
+ return pattern;
257
+ }
258
+ exports.fromGlobPattern = fromGlobPattern;
259
+ function isRelativePattern(obj) {
260
+ const rp = obj;
261
+ return rp && typeof rp.baseUri === 'string' && typeof rp.pattern === 'string';
262
+ }
263
+ function fromCompletionItemKind(kind) {
264
+ switch (kind) {
265
+ case types.CompletionItemKind.Method: return model.CompletionItemKind.Method;
266
+ case types.CompletionItemKind.Function: return model.CompletionItemKind.Function;
267
+ case types.CompletionItemKind.Constructor: return model.CompletionItemKind.Constructor;
268
+ case types.CompletionItemKind.Field: return model.CompletionItemKind.Field;
269
+ case types.CompletionItemKind.Variable: return model.CompletionItemKind.Variable;
270
+ case types.CompletionItemKind.Class: return model.CompletionItemKind.Class;
271
+ case types.CompletionItemKind.Interface: return model.CompletionItemKind.Interface;
272
+ case types.CompletionItemKind.Struct: return model.CompletionItemKind.Struct;
273
+ case types.CompletionItemKind.Module: return model.CompletionItemKind.Module;
274
+ case types.CompletionItemKind.Property: return model.CompletionItemKind.Property;
275
+ case types.CompletionItemKind.Unit: return model.CompletionItemKind.Unit;
276
+ case types.CompletionItemKind.Value: return model.CompletionItemKind.Value;
277
+ case types.CompletionItemKind.Constant: return model.CompletionItemKind.Constant;
278
+ case types.CompletionItemKind.Enum: return model.CompletionItemKind.Enum;
279
+ case types.CompletionItemKind.EnumMember: return model.CompletionItemKind.EnumMember;
280
+ case types.CompletionItemKind.Keyword: return model.CompletionItemKind.Keyword;
281
+ case types.CompletionItemKind.Snippet: return model.CompletionItemKind.Snippet;
282
+ case types.CompletionItemKind.Text: return model.CompletionItemKind.Text;
283
+ case types.CompletionItemKind.Color: return model.CompletionItemKind.Color;
284
+ case types.CompletionItemKind.File: return model.CompletionItemKind.File;
285
+ case types.CompletionItemKind.Reference: return model.CompletionItemKind.Reference;
286
+ case types.CompletionItemKind.Folder: return model.CompletionItemKind.Folder;
287
+ case types.CompletionItemKind.Event: return model.CompletionItemKind.Event;
288
+ case types.CompletionItemKind.Operator: return model.CompletionItemKind.Operator;
289
+ case types.CompletionItemKind.TypeParameter: return model.CompletionItemKind.TypeParameter;
290
+ case types.CompletionItemKind.User: return model.CompletionItemKind.User;
291
+ case types.CompletionItemKind.Issue: return model.CompletionItemKind.Issue;
292
+ }
293
+ return model.CompletionItemKind.Property;
294
+ }
295
+ exports.fromCompletionItemKind = fromCompletionItemKind;
296
+ function toCompletionItemKind(kind) {
297
+ switch (kind) {
298
+ case model.CompletionItemKind.Method: return types.CompletionItemKind.Method;
299
+ case model.CompletionItemKind.Function: return types.CompletionItemKind.Function;
300
+ case model.CompletionItemKind.Constructor: return types.CompletionItemKind.Constructor;
301
+ case model.CompletionItemKind.Field: return types.CompletionItemKind.Field;
302
+ case model.CompletionItemKind.Variable: return types.CompletionItemKind.Variable;
303
+ case model.CompletionItemKind.Class: return types.CompletionItemKind.Class;
304
+ case model.CompletionItemKind.Interface: return types.CompletionItemKind.Interface;
305
+ case model.CompletionItemKind.Struct: return types.CompletionItemKind.Struct;
306
+ case model.CompletionItemKind.Module: return types.CompletionItemKind.Module;
307
+ case model.CompletionItemKind.Property: return types.CompletionItemKind.Property;
308
+ case model.CompletionItemKind.Unit: return types.CompletionItemKind.Unit;
309
+ case model.CompletionItemKind.Value: return types.CompletionItemKind.Value;
310
+ case model.CompletionItemKind.Constant: return types.CompletionItemKind.Constant;
311
+ case model.CompletionItemKind.Enum: return types.CompletionItemKind.Enum;
312
+ case model.CompletionItemKind.EnumMember: return types.CompletionItemKind.EnumMember;
313
+ case model.CompletionItemKind.Keyword: return types.CompletionItemKind.Keyword;
314
+ case model.CompletionItemKind.Snippet: return types.CompletionItemKind.Snippet;
315
+ case model.CompletionItemKind.Text: return types.CompletionItemKind.Text;
316
+ case model.CompletionItemKind.Color: return types.CompletionItemKind.Color;
317
+ case model.CompletionItemKind.File: return types.CompletionItemKind.File;
318
+ case model.CompletionItemKind.Reference: return types.CompletionItemKind.Reference;
319
+ case model.CompletionItemKind.Folder: return types.CompletionItemKind.Folder;
320
+ case model.CompletionItemKind.Event: return types.CompletionItemKind.Event;
321
+ case model.CompletionItemKind.Operator: return types.CompletionItemKind.Operator;
322
+ case model.CompletionItemKind.TypeParameter: return types.CompletionItemKind.TypeParameter;
323
+ case model.CompletionItemKind.User: return types.CompletionItemKind.User;
324
+ case model.CompletionItemKind.Issue: return types.CompletionItemKind.Issue;
325
+ }
326
+ return types.CompletionItemKind.Property;
327
+ }
328
+ exports.toCompletionItemKind = toCompletionItemKind;
329
+ function fromTextEdit(edit) {
330
+ return {
331
+ text: edit.newText,
332
+ range: fromRange(edit.range)
333
+ };
334
+ }
335
+ exports.fromTextEdit = fromTextEdit;
336
+ function fromSnippetTextEdit(edit) {
337
+ return {
338
+ text: edit.snippet.value,
339
+ range: fromRange(edit.range),
340
+ insertAsSnippet: true,
341
+ keepWhitespace: edit.keepWhitespace
342
+ };
343
+ }
344
+ function convertDiagnosticToMarkerData(diagnostic) {
345
+ return {
346
+ code: convertCode(diagnostic.code),
347
+ severity: convertSeverity(diagnostic.severity),
348
+ message: diagnostic.message,
349
+ source: diagnostic.source,
350
+ startLineNumber: diagnostic.range.start.line + 1,
351
+ startColumn: diagnostic.range.start.character + 1,
352
+ endLineNumber: diagnostic.range.end.line + 1,
353
+ endColumn: diagnostic.range.end.character + 1,
354
+ relatedInformation: convertRelatedInformation(diagnostic.relatedInformation),
355
+ tags: convertTags(diagnostic.tags)
356
+ };
357
+ }
358
+ exports.convertDiagnosticToMarkerData = convertDiagnosticToMarkerData;
359
+ function convertCode(code) {
360
+ if (typeof code === 'number') {
361
+ return String(code);
362
+ }
363
+ if (typeof code === 'string' || typeof code === 'undefined') {
364
+ return code;
365
+ }
366
+ else {
367
+ return String(code.value);
368
+ }
369
+ ;
370
+ }
371
+ exports.convertCode = convertCode;
372
+ function convertSeverity(severity) {
373
+ switch (severity) {
374
+ case types.DiagnosticSeverity.Error: return types.MarkerSeverity.Error;
375
+ case types.DiagnosticSeverity.Warning: return types.MarkerSeverity.Warning;
376
+ case types.DiagnosticSeverity.Information: return types.MarkerSeverity.Info;
377
+ case types.DiagnosticSeverity.Hint: return types.MarkerSeverity.Hint;
378
+ }
379
+ }
380
+ function convertRelatedInformation(diagnosticsRelatedInformation) {
381
+ if (!diagnosticsRelatedInformation) {
382
+ return undefined;
383
+ }
384
+ const relatedInformation = [];
385
+ for (const item of diagnosticsRelatedInformation) {
386
+ relatedInformation.push({
387
+ resource: item.location.uri.toString(),
388
+ message: item.message,
389
+ startLineNumber: item.location.range.start.line + 1,
390
+ startColumn: item.location.range.start.character + 1,
391
+ endLineNumber: item.location.range.end.line + 1,
392
+ endColumn: item.location.range.end.character + 1
393
+ });
394
+ }
395
+ return relatedInformation;
396
+ }
397
+ function convertTags(tags) {
398
+ if (!tags) {
399
+ return undefined;
400
+ }
401
+ const markerTags = [];
402
+ for (const tag of tags) {
403
+ switch (tag) {
404
+ case types.DiagnosticTag.Unnecessary:
405
+ markerTags.push(types.MarkerTag.Unnecessary);
406
+ break;
407
+ case types.DiagnosticTag.Deprecated:
408
+ markerTags.push(types.MarkerTag.Deprecated);
409
+ break;
410
+ }
411
+ }
412
+ return markerTags;
413
+ }
414
+ function fromHover(hover) {
415
+ return {
416
+ range: fromRange(hover.range),
417
+ contents: fromManyMarkdown(hover.contents)
418
+ };
419
+ }
420
+ exports.fromHover = fromHover;
421
+ function fromEvaluatableExpression(evaluatableExpression) {
422
+ return {
423
+ range: fromRange(evaluatableExpression.range),
424
+ expression: evaluatableExpression.expression
425
+ };
426
+ }
427
+ exports.fromEvaluatableExpression = fromEvaluatableExpression;
428
+ function fromInlineValue(inlineValue) {
429
+ if (inlineValue instanceof types_impl_1.InlineValueText) {
430
+ return {
431
+ type: 'text',
432
+ range: fromRange(inlineValue.range),
433
+ text: inlineValue.text
434
+ };
435
+ }
436
+ else if (inlineValue instanceof types_impl_1.InlineValueVariableLookup) {
437
+ return {
438
+ type: 'variable',
439
+ range: fromRange(inlineValue.range),
440
+ variableName: inlineValue.variableName,
441
+ caseSensitiveLookup: inlineValue.caseSensitiveLookup
442
+ };
443
+ }
444
+ else if (inlineValue instanceof types_impl_1.InlineValueEvaluatableExpression) {
445
+ return {
446
+ type: 'expression',
447
+ range: fromRange(inlineValue.range),
448
+ expression: inlineValue.expression
449
+ };
450
+ }
451
+ else {
452
+ throw new Error('Unknown InlineValue type');
453
+ }
454
+ }
455
+ exports.fromInlineValue = fromInlineValue;
456
+ function toInlineValueContext(inlineValueContext) {
457
+ const ivLocation = inlineValueContext.stoppedLocation;
458
+ return {
459
+ frameId: inlineValueContext.frameId,
460
+ stoppedLocation: new types.Range(ivLocation.startLineNumber, ivLocation.startColumn, ivLocation.endLineNumber, ivLocation.endColumn)
461
+ };
462
+ }
463
+ exports.toInlineValueContext = toInlineValueContext;
464
+ function fromLocation(location) {
465
+ if (!location) {
466
+ return undefined;
467
+ }
468
+ return {
469
+ uri: location.uri,
470
+ range: fromRange(location.range)
471
+ };
472
+ }
473
+ exports.fromLocation = fromLocation;
474
+ function fromLocationToLanguageServerLocation(location) {
475
+ if (!location) {
476
+ return undefined;
477
+ }
478
+ return {
479
+ uri: location.uri.toString(),
480
+ range: location.range
481
+ };
482
+ }
483
+ exports.fromLocationToLanguageServerLocation = fromLocationToLanguageServerLocation;
484
+ function fromTextDocumentShowOptions(options) {
485
+ if (options.selection) {
486
+ return {
487
+ ...options,
488
+ selection: fromRange(options.selection),
489
+ };
490
+ }
491
+ return options;
492
+ }
493
+ exports.fromTextDocumentShowOptions = fromTextDocumentShowOptions;
494
+ function fromDefinitionLink(definitionLink) {
495
+ return {
496
+ uri: definitionLink.targetUri,
497
+ range: fromRange(definitionLink.targetRange),
498
+ originSelectionRange: definitionLink.originSelectionRange ? fromRange(definitionLink.originSelectionRange) : undefined,
499
+ targetSelectionRange: definitionLink.targetSelectionRange ? fromRange(definitionLink.targetSelectionRange) : undefined
500
+ };
501
+ }
502
+ exports.fromDefinitionLink = fromDefinitionLink;
503
+ var DocumentLink;
504
+ (function (DocumentLink) {
505
+ function from(link) {
506
+ return {
507
+ range: fromRange(link.range),
508
+ url: link.target,
509
+ tooltip: link.tooltip
510
+ };
511
+ }
512
+ DocumentLink.from = from;
513
+ function to(link) {
514
+ let target = undefined;
515
+ if (link.url) {
516
+ try {
517
+ target = typeof link.url === 'string' ? types_impl_1.URI.parse(link.url, true) : types_impl_1.URI.revive(link.url);
518
+ }
519
+ catch (err) {
520
+ // ignore
521
+ }
522
+ }
523
+ return new types.DocumentLink(toRange(link.range), target);
524
+ }
525
+ DocumentLink.to = to;
526
+ })(DocumentLink || (exports.DocumentLink = DocumentLink = {}));
527
+ function fromDocumentHighlightKind(kind) {
528
+ switch (kind) {
529
+ case types.DocumentHighlightKind.Text: return model.DocumentHighlightKind.Text;
530
+ case types.DocumentHighlightKind.Read: return model.DocumentHighlightKind.Read;
531
+ case types.DocumentHighlightKind.Write: return model.DocumentHighlightKind.Write;
532
+ }
533
+ return model.DocumentHighlightKind.Text;
534
+ }
535
+ exports.fromDocumentHighlightKind = fromDocumentHighlightKind;
536
+ function fromDocumentHighlight(documentHighlight) {
537
+ return {
538
+ range: fromRange(documentHighlight.range),
539
+ kind: fromDocumentHighlightKind(documentHighlight.kind)
540
+ };
541
+ }
542
+ exports.fromDocumentHighlight = fromDocumentHighlight;
543
+ var ParameterInformation;
544
+ (function (ParameterInformation) {
545
+ function from(info) {
546
+ return {
547
+ label: info.label,
548
+ documentation: info.documentation ? fromMarkdown(info.documentation) : undefined
549
+ };
550
+ }
551
+ ParameterInformation.from = from;
552
+ function to(info) {
553
+ return {
554
+ label: info.label,
555
+ documentation: markdown_rendering_1.MarkdownString.is(info.documentation) ? toMarkdown(info.documentation) : info.documentation
556
+ };
557
+ }
558
+ ParameterInformation.to = to;
559
+ })(ParameterInformation || (exports.ParameterInformation = ParameterInformation = {}));
560
+ var SignatureInformation;
561
+ (function (SignatureInformation) {
562
+ function from(info) {
563
+ return {
564
+ label: info.label,
565
+ documentation: info.documentation ? fromMarkdown(info.documentation) : undefined,
566
+ parameters: info.parameters && info.parameters.map(ParameterInformation.from),
567
+ activeParameter: info.activeParameter
568
+ };
569
+ }
570
+ SignatureInformation.from = from;
571
+ function to(info) {
572
+ return {
573
+ label: info.label,
574
+ documentation: markdown_rendering_1.MarkdownString.is(info.documentation) ? toMarkdown(info.documentation) : info.documentation,
575
+ parameters: info.parameters && info.parameters.map(ParameterInformation.to),
576
+ activeParameter: info.activeParameter
577
+ };
578
+ }
579
+ SignatureInformation.to = to;
580
+ })(SignatureInformation || (exports.SignatureInformation = SignatureInformation = {}));
581
+ var SignatureHelp;
582
+ (function (SignatureHelp) {
583
+ function from(id, help) {
584
+ return {
585
+ id,
586
+ activeSignature: help.activeSignature,
587
+ activeParameter: help.activeParameter,
588
+ signatures: help.signatures && help.signatures.map(SignatureInformation.from)
589
+ };
590
+ }
591
+ SignatureHelp.from = from;
592
+ function to(help) {
593
+ return {
594
+ activeSignature: help.activeSignature,
595
+ activeParameter: help.activeParameter,
596
+ signatures: help.signatures && help.signatures.map(SignatureInformation.to)
597
+ };
598
+ }
599
+ SignatureHelp.to = to;
600
+ })(SignatureHelp || (exports.SignatureHelp = SignatureHelp = {}));
601
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
602
+ function fromWorkspaceEdit(value, documents) {
603
+ const result = {
604
+ edits: []
605
+ };
606
+ for (const entry of value._allEntries()) {
607
+ if ((entry === null || entry === void 0 ? void 0 : entry._type) === 2 /* types.FileEditType.Text */) {
608
+ const doc = documents ? documents.getDocument(entry.uri.toString()) : undefined;
609
+ const workspaceTextEditDto = {
610
+ resource: entry.uri,
611
+ modelVersionId: doc === null || doc === void 0 ? void 0 : doc.version,
612
+ textEdit: fromTextEdit(entry.edit),
613
+ metadata: entry.metadata
614
+ };
615
+ result.edits.push(workspaceTextEditDto);
616
+ }
617
+ else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 6 /* types.FileEditType.Snippet */) {
618
+ const doc = documents ? documents.getDocument(entry.uri.toString()) : undefined;
619
+ const workspaceTextEditDto = {
620
+ resource: entry.uri,
621
+ modelVersionId: doc === null || doc === void 0 ? void 0 : doc.version,
622
+ textEdit: fromSnippetTextEdit(entry.edit),
623
+ metadata: entry.metadata
624
+ };
625
+ result.edits.push(workspaceTextEditDto);
626
+ }
627
+ else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 1 /* types.FileEditType.File */) {
628
+ const workspaceFileEditDto = {
629
+ oldResource: entry.from,
630
+ newResource: entry.to,
631
+ options: entry.options,
632
+ metadata: entry.metadata
633
+ };
634
+ result.edits.push(workspaceFileEditDto);
635
+ }
636
+ else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 3 /* types.FileEditType.Cell */) {
637
+ if (entry.edit) {
638
+ result.edits.push({
639
+ metadata: entry.metadata,
640
+ resource: entry.uri,
641
+ cellEdit: entry.edit,
642
+ });
643
+ }
644
+ }
645
+ else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 5 /* types.FileEditType.CellReplace */) {
646
+ result.edits.push({
647
+ metadata: entry.metadata,
648
+ resource: entry.uri,
649
+ cellEdit: {
650
+ editType: 1 /* notebooks.CellEditType.Replace */,
651
+ index: entry.index,
652
+ count: entry.count,
653
+ cells: entry.cells.map(NotebookCellData.from)
654
+ }
655
+ });
656
+ }
657
+ }
658
+ return result;
659
+ }
660
+ exports.fromWorkspaceEdit = fromWorkspaceEdit;
661
+ var SymbolKind;
662
+ (function (SymbolKind) {
663
+ const fromMapping = Object.create(null);
664
+ fromMapping[model.SymbolKind.File] = model.SymbolKind.File;
665
+ fromMapping[model.SymbolKind.Module] = model.SymbolKind.Module;
666
+ fromMapping[model.SymbolKind.Namespace] = model.SymbolKind.Namespace;
667
+ fromMapping[model.SymbolKind.Package] = model.SymbolKind.Package;
668
+ fromMapping[model.SymbolKind.Class] = model.SymbolKind.Class;
669
+ fromMapping[model.SymbolKind.Method] = model.SymbolKind.Method;
670
+ fromMapping[model.SymbolKind.Property] = model.SymbolKind.Property;
671
+ fromMapping[model.SymbolKind.Field] = model.SymbolKind.Field;
672
+ fromMapping[model.SymbolKind.Constructor] = model.SymbolKind.Constructor;
673
+ fromMapping[model.SymbolKind.Enum] = model.SymbolKind.Enum;
674
+ fromMapping[model.SymbolKind.Interface] = model.SymbolKind.Interface;
675
+ fromMapping[model.SymbolKind.Function] = model.SymbolKind.Function;
676
+ fromMapping[model.SymbolKind.Variable] = model.SymbolKind.Variable;
677
+ fromMapping[model.SymbolKind.Constant] = model.SymbolKind.Constant;
678
+ fromMapping[model.SymbolKind.String] = model.SymbolKind.String;
679
+ fromMapping[model.SymbolKind.Number] = model.SymbolKind.Number;
680
+ fromMapping[model.SymbolKind.Boolean] = model.SymbolKind.Boolean;
681
+ fromMapping[model.SymbolKind.Array] = model.SymbolKind.Array;
682
+ fromMapping[model.SymbolKind.Object] = model.SymbolKind.Object;
683
+ fromMapping[model.SymbolKind.Key] = model.SymbolKind.Key;
684
+ fromMapping[model.SymbolKind.Null] = model.SymbolKind.Null;
685
+ fromMapping[model.SymbolKind.EnumMember] = model.SymbolKind.EnumMember;
686
+ fromMapping[model.SymbolKind.Struct] = model.SymbolKind.Struct;
687
+ fromMapping[model.SymbolKind.Event] = model.SymbolKind.Event;
688
+ fromMapping[model.SymbolKind.Operator] = model.SymbolKind.Operator;
689
+ fromMapping[model.SymbolKind.TypeParameter] = model.SymbolKind.TypeParameter;
690
+ function fromSymbolKind(kind) {
691
+ return fromMapping[kind] || model.SymbolKind.Property;
692
+ }
693
+ SymbolKind.fromSymbolKind = fromSymbolKind;
694
+ function toSymbolKind(kind) {
695
+ for (const k in fromMapping) {
696
+ if (fromMapping[k] === kind) {
697
+ return Number(k);
698
+ }
699
+ }
700
+ return model.SymbolKind.Property;
701
+ }
702
+ SymbolKind.toSymbolKind = toSymbolKind;
703
+ })(SymbolKind || (exports.SymbolKind = SymbolKind = {}));
704
+ function toCodeActionTriggerKind(triggerKind) {
705
+ switch (triggerKind) {
706
+ case model.CodeActionTriggerKind.Invoke:
707
+ return types.CodeActionTriggerKind.Invoke;
708
+ case model.CodeActionTriggerKind.Automatic:
709
+ return types.CodeActionTriggerKind.Automatic;
710
+ }
711
+ }
712
+ exports.toCodeActionTriggerKind = toCodeActionTriggerKind;
713
+ function fromDocumentSymbol(info) {
714
+ const result = {
715
+ name: info.name,
716
+ detail: info.detail,
717
+ range: fromRange(info.range),
718
+ tags: info.tags ? info.tags.map(fromSymbolTag) : [],
719
+ selectionRange: fromRange(info.selectionRange),
720
+ kind: SymbolKind.fromSymbolKind(info.kind)
721
+ };
722
+ if (info.children) {
723
+ result.children = info.children.map(fromDocumentSymbol);
724
+ }
725
+ return result;
726
+ }
727
+ exports.fromDocumentSymbol = fromDocumentSymbol;
728
+ function toDocumentSymbol(symbol) {
729
+ return {
730
+ name: symbol.name,
731
+ detail: symbol.detail,
732
+ range: toRange(symbol.range),
733
+ tags: symbol.tags && symbol.tags.length > 0 ? symbol.tags.map(toSymbolTag) : [],
734
+ selectionRange: toRange(symbol.selectionRange),
735
+ children: symbol.children ? symbol.children.map(toDocumentSymbol) : [],
736
+ kind: SymbolKind.toSymbolKind(symbol.kind)
737
+ };
738
+ }
739
+ exports.toDocumentSymbol = toDocumentSymbol;
740
+ function fromSymbolTag(kind) {
741
+ switch (kind) {
742
+ case types.SymbolTag.Deprecated: return model.SymbolTag.Deprecated;
743
+ }
744
+ }
745
+ exports.fromSymbolTag = fromSymbolTag;
746
+ function toSymbolTag(kind) {
747
+ switch (kind) {
748
+ case model.SymbolTag.Deprecated: return types.SymbolTag.Deprecated;
749
+ }
750
+ }
751
+ exports.toSymbolTag = toSymbolTag;
752
+ /**
753
+ * Creates a merged symbol of type theia.SymbolInformation & theia.DocumentSymbol.
754
+ * Is only used as the result type of the `vscode.executeDocumentSymbolProvider` command.
755
+ */
756
+ function toMergedSymbol(uri, symbol) {
757
+ var _a, _b, _c;
758
+ const uriValue = types_impl_1.URI.revive(uri);
759
+ const location = new types.Location(uriValue, toRange(symbol.range));
760
+ return {
761
+ name: symbol.name,
762
+ containerName: (_a = symbol.containerName) !== null && _a !== void 0 ? _a : '',
763
+ kind: SymbolKind.toSymbolKind(symbol.kind),
764
+ tags: [],
765
+ location,
766
+ detail: symbol.detail,
767
+ range: location.range,
768
+ selectionRange: toRange(symbol.selectionRange),
769
+ children: (_c = (_b = symbol.children) === null || _b === void 0 ? void 0 : _b.map(child => toMergedSymbol(uri, child))) !== null && _c !== void 0 ? _c : []
770
+ };
771
+ }
772
+ exports.toMergedSymbol = toMergedSymbol;
773
+ function isModelLocation(arg) {
774
+ return (0, common_1.isObject)(arg) &&
775
+ isModelRange(arg.range) &&
776
+ isUriComponents(arg.uri);
777
+ }
778
+ exports.isModelLocation = isModelLocation;
779
+ function isModelRange(arg) {
780
+ return (0, common_1.isObject)(arg) &&
781
+ typeof arg.startLineNumber === 'number' &&
782
+ typeof arg.startColumn === 'number' &&
783
+ typeof arg.endLineNumber === 'number' &&
784
+ typeof arg.endColumn === 'number';
785
+ }
786
+ exports.isModelRange = isModelRange;
787
+ function isUriComponents(arg) {
788
+ return (0, common_1.isObject)(arg) &&
789
+ typeof arg.scheme === 'string' &&
790
+ (arg['$mid'] === 1 || (typeof arg.path === 'string' &&
791
+ typeof arg.query === 'string' &&
792
+ typeof arg.fragment === 'string'));
793
+ }
794
+ exports.isUriComponents = isUriComponents;
795
+ function isModelCallHierarchyItem(arg) {
796
+ return (0, common_1.isObject)(arg)
797
+ && isModelRange(arg.range)
798
+ && isModelRange(arg.selectionRange)
799
+ && isUriComponents(arg.uri)
800
+ && !!arg.name;
801
+ }
802
+ exports.isModelCallHierarchyItem = isModelCallHierarchyItem;
803
+ function isModelCallHierarchyIncomingCall(arg) {
804
+ return (0, common_1.isObject)(arg) &&
805
+ 'from' in arg &&
806
+ 'fromRanges' in arg &&
807
+ isModelCallHierarchyItem(arg.from);
808
+ }
809
+ exports.isModelCallHierarchyIncomingCall = isModelCallHierarchyIncomingCall;
810
+ function isModelCallHierarchyOutgoingCall(arg) {
811
+ return (0, common_1.isObject)(arg) &&
812
+ 'to' in arg &&
813
+ 'fromRanges' in arg &&
814
+ isModelCallHierarchyItem(arg.to);
815
+ }
816
+ exports.isModelCallHierarchyOutgoingCall = isModelCallHierarchyOutgoingCall;
817
+ function toLocation(value) {
818
+ return new types.Location(types_impl_1.URI.revive(value.uri), toRange(value.range));
819
+ }
820
+ exports.toLocation = toLocation;
821
+ function fromHierarchyItem(item) {
822
+ return {
823
+ kind: SymbolKind.fromSymbolKind(item.kind),
824
+ name: item.name,
825
+ detail: item.detail,
826
+ uri: item.uri,
827
+ range: fromRange(item.range),
828
+ selectionRange: fromRange(item.selectionRange),
829
+ tags: item.tags,
830
+ _itemId: item._itemId,
831
+ _sessionId: item._sessionId,
832
+ };
833
+ }
834
+ exports.fromHierarchyItem = fromHierarchyItem;
835
+ function fromCallHierarchyItem(item) {
836
+ return fromHierarchyItem(item);
837
+ }
838
+ exports.fromCallHierarchyItem = fromCallHierarchyItem;
839
+ function toCallHierarchyItem(value) {
840
+ const item = new types.CallHierarchyItem(SymbolKind.toSymbolKind(value.kind), value.name, value.detail ? value.detail : '', types_impl_1.URI.revive(value.uri), toRange(value.range), toRange(value.selectionRange));
841
+ item.tags = value.tags;
842
+ item._itemId = value._itemId;
843
+ item._sessionId = value._sessionId;
844
+ return item;
845
+ }
846
+ exports.toCallHierarchyItem = toCallHierarchyItem;
847
+ function toCallHierarchyIncomingCall(value) {
848
+ return new types.CallHierarchyIncomingCall(toCallHierarchyItem(value.from), value.fromRanges && value.fromRanges.map(toRange));
849
+ }
850
+ exports.toCallHierarchyIncomingCall = toCallHierarchyIncomingCall;
851
+ function toCallHierarchyOutgoingCall(value) {
852
+ return new types.CallHierarchyOutgoingCall(toCallHierarchyItem(value.to), value.fromRanges && value.fromRanges.map(toRange));
853
+ }
854
+ exports.toCallHierarchyOutgoingCall = toCallHierarchyOutgoingCall;
855
+ function isModelTypeHierarchyItem(arg) {
856
+ return (0, common_1.isObject)(arg)
857
+ && isModelRange(arg.range)
858
+ && isModelRange(arg.selectionRange)
859
+ && isUriComponents(arg.uri)
860
+ && !!arg.name;
861
+ }
862
+ exports.isModelTypeHierarchyItem = isModelTypeHierarchyItem;
863
+ function fromTypeHierarchyItem(item) {
864
+ return fromHierarchyItem(item);
865
+ }
866
+ exports.fromTypeHierarchyItem = fromTypeHierarchyItem;
867
+ function toTypeHierarchyItem(value) {
868
+ const item = new types.TypeHierarchyItem(SymbolKind.toSymbolKind(value.kind), value.name, value.detail ? value.detail : '', types_impl_1.URI.revive(value.uri), toRange(value.selectionRange), toRange(value.range));
869
+ item.tags = value.tags;
870
+ item._itemId = value._itemId;
871
+ item._sessionId = value._sessionId;
872
+ return item;
873
+ }
874
+ exports.toTypeHierarchyItem = toTypeHierarchyItem;
875
+ function toWorkspaceFolder(folder) {
876
+ return {
877
+ uri: types_impl_1.URI.revive(folder.uri),
878
+ name: folder.name,
879
+ index: folder.index
880
+ };
881
+ }
882
+ exports.toWorkspaceFolder = toWorkspaceFolder;
883
+ function fromTask(task) {
884
+ if (!task) {
885
+ return undefined;
886
+ }
887
+ const taskDto = {};
888
+ taskDto.label = task.name;
889
+ taskDto.source = task.source;
890
+ taskDto.runOptions = { reevaluateOnRerun: task.runOptions.reevaluateOnRerun };
891
+ if (task.hasProblemMatchers) {
892
+ taskDto.problemMatcher = task.problemMatchers;
893
+ }
894
+ if ('detail' in task) {
895
+ taskDto.detail = task.detail;
896
+ }
897
+ if (typeof task.scope === 'number') {
898
+ taskDto.scope = task.scope;
899
+ }
900
+ else if (task.scope !== undefined) {
901
+ taskDto.scope = task.scope.uri.toString();
902
+ }
903
+ else {
904
+ taskDto.scope = types.TaskScope.Workspace;
905
+ }
906
+ if (task.presentationOptions) {
907
+ taskDto.presentation = task.presentationOptions;
908
+ }
909
+ if (task.group) {
910
+ taskDto.group = {
911
+ kind: task.group.id,
912
+ isDefault: !!task.group.isDefault
913
+ };
914
+ }
915
+ const taskDefinition = task.definition;
916
+ if (!taskDefinition) {
917
+ return taskDto;
918
+ }
919
+ taskDto.type = taskDefinition.type;
920
+ const { type, ...properties } = taskDefinition;
921
+ for (const key in properties) {
922
+ if (properties.hasOwnProperty(key)) {
923
+ taskDto[key] = properties[key];
924
+ }
925
+ }
926
+ const execution = task.execution;
927
+ if (!execution) {
928
+ return taskDto;
929
+ }
930
+ if (types.ShellExecution.is(execution)) {
931
+ return fromShellExecution(execution, taskDto);
932
+ }
933
+ if (types.ProcessExecution.is(execution)) {
934
+ return fromProcessExecution(execution, taskDto);
935
+ }
936
+ if (types.CustomExecution.is(execution)) {
937
+ return fromCustomExecution(execution, taskDto);
938
+ }
939
+ return taskDto;
940
+ }
941
+ exports.fromTask = fromTask;
942
+ function toTask(taskDto) {
943
+ if (!taskDto) {
944
+ throw new Error('Task should be provided for converting');
945
+ }
946
+ const { type, executionType, label, source, scope, problemMatcher, detail, command, args, options, group, presentation, runOptions, ...properties } = taskDto;
947
+ const result = {};
948
+ result.name = label;
949
+ result.source = source;
950
+ result.runOptions = runOptions !== null && runOptions !== void 0 ? runOptions : {};
951
+ if (detail) {
952
+ result.detail = detail;
953
+ }
954
+ if (typeof scope === 'string') {
955
+ const uri = types_impl_1.URI.parse(scope);
956
+ result.scope = {
957
+ uri,
958
+ name: uri.toString(),
959
+ index: 0
960
+ };
961
+ }
962
+ else {
963
+ result.scope = scope;
964
+ }
965
+ const taskDefinition = {
966
+ type: type
967
+ };
968
+ result.definition = taskDefinition;
969
+ if (executionType === 'process') {
970
+ result.execution = getProcessExecution(taskDto);
971
+ }
972
+ const execution = { command, args, options };
973
+ if (executionType === 'shell' || types.ShellExecution.is(execution)) {
974
+ result.execution = getShellExecution(taskDto);
975
+ }
976
+ if (executionType === 'customExecution' || types.CustomExecution.is(execution)) {
977
+ result.execution = getCustomExecution(taskDto);
978
+ // if taskType is customExecution, we need to put all the information into taskDefinition,
979
+ // because some parameters may be in taskDefinition.
980
+ taskDefinition.label = label;
981
+ taskDefinition.command = command;
982
+ taskDefinition.args = args;
983
+ taskDefinition.options = options;
984
+ }
985
+ if (group) {
986
+ result.group = new types.TaskGroup(group.kind, group.kind, group.isDefault);
987
+ }
988
+ if (presentation) {
989
+ result.presentationOptions = presentation;
990
+ }
991
+ if (!properties) {
992
+ return result;
993
+ }
994
+ for (const key in properties) {
995
+ if (properties.hasOwnProperty(key)) {
996
+ taskDefinition[key] = properties[key];
997
+ }
998
+ }
999
+ return result;
1000
+ }
1001
+ exports.toTask = toTask;
1002
+ function fromProcessExecution(execution, taskDto) {
1003
+ taskDto.executionType = 'process';
1004
+ taskDto.command = execution.process;
1005
+ taskDto.args = execution.args;
1006
+ const options = execution.options;
1007
+ if (options) {
1008
+ taskDto.options = options;
1009
+ }
1010
+ return taskDto;
1011
+ }
1012
+ exports.fromProcessExecution = fromProcessExecution;
1013
+ function fromShellExecution(execution, taskDto) {
1014
+ taskDto.executionType = 'shell';
1015
+ const options = execution.options;
1016
+ if (options) {
1017
+ taskDto.options = getShellExecutionOptions(options);
1018
+ }
1019
+ const commandLine = execution.commandLine;
1020
+ if (commandLine) {
1021
+ taskDto.command = commandLine;
1022
+ return taskDto;
1023
+ }
1024
+ if (execution.command) {
1025
+ taskDto.command = getCommand(execution.command);
1026
+ taskDto.args = getShellArgs(execution.args);
1027
+ return taskDto;
1028
+ }
1029
+ else {
1030
+ throw new Error('Command is undefined');
1031
+ }
1032
+ }
1033
+ exports.fromShellExecution = fromShellExecution;
1034
+ function fromCustomExecution(execution, taskDto) {
1035
+ taskDto.executionType = 'customExecution';
1036
+ const callback = execution.callback;
1037
+ if (callback) {
1038
+ taskDto.callback = callback;
1039
+ return taskDto;
1040
+ }
1041
+ else {
1042
+ throw new Error('Converting CustomExecution callback is not implemented');
1043
+ }
1044
+ }
1045
+ exports.fromCustomExecution = fromCustomExecution;
1046
+ function getProcessExecution(taskDto) {
1047
+ return new types.ProcessExecution(taskDto.command, taskDto.args || [], taskDto.options || {});
1048
+ }
1049
+ exports.getProcessExecution = getProcessExecution;
1050
+ function getShellExecution(taskDto) {
1051
+ if (taskDto.command && Array.isArray(taskDto.args) && taskDto.args.length !== 0) {
1052
+ return new types.ShellExecution(taskDto.command, taskDto.args, taskDto.options || {});
1053
+ }
1054
+ return new types.ShellExecution(taskDto.command || taskDto.commandLine, taskDto.options || {});
1055
+ }
1056
+ exports.getShellExecution = getShellExecution;
1057
+ function getCustomExecution(taskDto) {
1058
+ return new types.CustomExecution(taskDto.callback);
1059
+ }
1060
+ exports.getCustomExecution = getCustomExecution;
1061
+ function getShellArgs(args) {
1062
+ if (!args || args.length === 0) {
1063
+ return [];
1064
+ }
1065
+ const element = args[0];
1066
+ if (typeof element === 'string') {
1067
+ return args;
1068
+ }
1069
+ const result = [];
1070
+ const shellQuotedArgs = args;
1071
+ shellQuotedArgs.forEach(arg => {
1072
+ result.push(arg.value);
1073
+ });
1074
+ return result;
1075
+ }
1076
+ exports.getShellArgs = getShellArgs;
1077
+ function getCommand(command) {
1078
+ return typeof command === 'string' ? command : command.value;
1079
+ }
1080
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1081
+ function getShellExecutionOptions(options) {
1082
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1083
+ const result = {};
1084
+ const env = options.env;
1085
+ if (env) {
1086
+ result['env'] = env;
1087
+ }
1088
+ const executable = options.executable;
1089
+ if (executable) {
1090
+ result['executable'] = executable;
1091
+ }
1092
+ const shellQuoting = options.shellQuoting;
1093
+ if (shellQuoting) {
1094
+ result['shellQuoting'] = shellQuoting;
1095
+ }
1096
+ const shellArgs = options.shellArgs;
1097
+ if (shellArgs) {
1098
+ result['shellArgs'] = shellArgs;
1099
+ }
1100
+ const cwd = options.cwd;
1101
+ if (cwd) {
1102
+ Object.assign(result, { cwd });
1103
+ }
1104
+ return result;
1105
+ }
1106
+ exports.getShellExecutionOptions = getShellExecutionOptions;
1107
+ function fromSymbolInformation(symbolInformation) {
1108
+ if (!symbolInformation) {
1109
+ return undefined;
1110
+ }
1111
+ if (symbolInformation.location && symbolInformation.location.range) {
1112
+ const p1 = lstypes.Position.create(symbolInformation.location.range.start.line, symbolInformation.location.range.start.character);
1113
+ const p2 = lstypes.Position.create(symbolInformation.location.range.end.line, symbolInformation.location.range.end.character);
1114
+ return lstypes.SymbolInformation.create(symbolInformation.name, symbolInformation.kind++, lstypes.Range.create(p1, p2), symbolInformation.location.uri.toString(), symbolInformation.containerName);
1115
+ }
1116
+ return {
1117
+ name: symbolInformation.name,
1118
+ containerName: symbolInformation.containerName,
1119
+ kind: symbolInformation.kind++,
1120
+ location: {
1121
+ uri: symbolInformation.location.uri.toString(),
1122
+ range: symbolInformation.location.range,
1123
+ }
1124
+ };
1125
+ }
1126
+ exports.fromSymbolInformation = fromSymbolInformation;
1127
+ function toSymbolInformation(symbolInformation) {
1128
+ if (!symbolInformation) {
1129
+ return undefined;
1130
+ }
1131
+ return {
1132
+ name: symbolInformation.name,
1133
+ containerName: symbolInformation.containerName,
1134
+ kind: symbolInformation.kind,
1135
+ location: {
1136
+ uri: types_impl_1.URI.parse(symbolInformation.location.uri),
1137
+ range: symbolInformation.location.range
1138
+ }
1139
+ };
1140
+ }
1141
+ exports.toSymbolInformation = toSymbolInformation;
1142
+ function fromSelectionRange(selectionRange) {
1143
+ return { range: fromRange(selectionRange.range) };
1144
+ }
1145
+ exports.fromSelectionRange = fromSelectionRange;
1146
+ function fromFoldingRange(foldingRange) {
1147
+ const range = {
1148
+ start: foldingRange.start + 1,
1149
+ end: foldingRange.end + 1
1150
+ };
1151
+ if (foldingRange.kind) {
1152
+ range.kind = fromFoldingRangeKind(foldingRange.kind);
1153
+ }
1154
+ return range;
1155
+ }
1156
+ exports.fromFoldingRange = fromFoldingRange;
1157
+ function fromFoldingRangeKind(kind) {
1158
+ if (kind) {
1159
+ switch (kind) {
1160
+ case types.FoldingRangeKind.Comment:
1161
+ return model.FoldingRangeKind.Comment;
1162
+ case types.FoldingRangeKind.Imports:
1163
+ return model.FoldingRangeKind.Imports;
1164
+ case types.FoldingRangeKind.Region:
1165
+ return model.FoldingRangeKind.Region;
1166
+ }
1167
+ }
1168
+ return undefined;
1169
+ }
1170
+ exports.fromFoldingRangeKind = fromFoldingRangeKind;
1171
+ function fromColor(color) {
1172
+ return [color.red, color.green, color.blue, color.alpha];
1173
+ }
1174
+ exports.fromColor = fromColor;
1175
+ function toColor(color) {
1176
+ return new types.Color(color[0], color[1], color[2], color[3]);
1177
+ }
1178
+ exports.toColor = toColor;
1179
+ function fromColorPresentation(colorPresentation) {
1180
+ return {
1181
+ label: colorPresentation.label,
1182
+ textEdit: colorPresentation.textEdit ? fromTextEdit(colorPresentation.textEdit) : undefined,
1183
+ additionalTextEdits: colorPresentation.additionalTextEdits ? colorPresentation.additionalTextEdits.map(value => fromTextEdit(value)) : undefined
1184
+ };
1185
+ }
1186
+ exports.fromColorPresentation = fromColorPresentation;
1187
+ function convertIconPath(iconPath) {
1188
+ var _a;
1189
+ if (!iconPath) {
1190
+ return undefined;
1191
+ }
1192
+ if (iconPath instanceof types.URI) {
1193
+ return iconPath.toJSON();
1194
+ }
1195
+ else if ('dark' in iconPath) {
1196
+ return {
1197
+ dark: iconPath.dark.toJSON(),
1198
+ light: (_a = iconPath.light) === null || _a === void 0 ? void 0 : _a.toJSON()
1199
+ };
1200
+ }
1201
+ else if (types_impl_1.ThemeIcon.is(iconPath)) {
1202
+ return {
1203
+ id: iconPath.id,
1204
+ color: iconPath.color ? { id: iconPath.color.id } : undefined
1205
+ };
1206
+ }
1207
+ else {
1208
+ return undefined;
1209
+ }
1210
+ }
1211
+ exports.convertIconPath = convertIconPath;
1212
+ function convertQuickInputButton(plugin, button, index) {
1213
+ var _a;
1214
+ const iconPath = convertIconPath(button.iconPath);
1215
+ if (!iconPath) {
1216
+ throw new Error(`Could not convert icon path: '${button.iconPath}'`);
1217
+ }
1218
+ return {
1219
+ handle: index,
1220
+ iconUrl: (_a = plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin)) !== null && _a !== void 0 ? _a : types_impl_1.ThemeIcon.get(iconPath),
1221
+ tooltip: button.tooltip
1222
+ };
1223
+ }
1224
+ exports.convertQuickInputButton = convertQuickInputButton;
1225
+ function convertToTransferQuickPickItems(plugin, items) {
1226
+ return items.map((item, index) => {
1227
+ var _a;
1228
+ if (typeof item === 'string') {
1229
+ return { kind: 'item', label: item, handle: index };
1230
+ }
1231
+ else if (item.kind === types_impl_1.QuickPickItemKind.Separator) {
1232
+ return { kind: 'separator', label: item.label, handle: index };
1233
+ }
1234
+ else {
1235
+ const { label, description, iconPath, detail, picked, alwaysShow, buttons } = item;
1236
+ return {
1237
+ kind: 'item',
1238
+ label,
1239
+ description,
1240
+ iconUrl: (_a = plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin)) !== null && _a !== void 0 ? _a : types_impl_1.ThemeIcon.get(iconPath),
1241
+ detail,
1242
+ picked,
1243
+ alwaysShow,
1244
+ buttons: buttons ? buttons.map((button, i) => convertQuickInputButton(plugin, button, i)) : undefined,
1245
+ handle: index,
1246
+ };
1247
+ }
1248
+ });
1249
+ }
1250
+ exports.convertToTransferQuickPickItems = convertToTransferQuickPickItems;
1251
+ var DecorationRenderOptions;
1252
+ (function (DecorationRenderOptions) {
1253
+ function from(options) {
1254
+ return {
1255
+ isWholeLine: options.isWholeLine,
1256
+ rangeBehavior: options.rangeBehavior ? DecorationRangeBehavior.from(options.rangeBehavior) : undefined,
1257
+ overviewRulerLane: options.overviewRulerLane,
1258
+ light: options.light ? ThemableDecorationRenderOptions.from(options.light) : undefined,
1259
+ dark: options.dark ? ThemableDecorationRenderOptions.from(options.dark) : undefined,
1260
+ backgroundColor: options.backgroundColor,
1261
+ outline: options.outline,
1262
+ outlineColor: options.outlineColor,
1263
+ outlineStyle: options.outlineStyle,
1264
+ outlineWidth: options.outlineWidth,
1265
+ border: options.border,
1266
+ borderColor: options.borderColor,
1267
+ borderRadius: options.borderRadius,
1268
+ borderSpacing: options.borderSpacing,
1269
+ borderStyle: options.borderStyle,
1270
+ borderWidth: options.borderWidth,
1271
+ fontStyle: options.fontStyle,
1272
+ fontWeight: options.fontWeight,
1273
+ textDecoration: options.textDecoration,
1274
+ cursor: options.cursor,
1275
+ color: options.color,
1276
+ opacity: options.opacity,
1277
+ letterSpacing: options.letterSpacing,
1278
+ gutterIconPath: options.gutterIconPath ? pathOrURIToURI(options.gutterIconPath) : undefined,
1279
+ gutterIconSize: options.gutterIconSize,
1280
+ overviewRulerColor: options.overviewRulerColor,
1281
+ before: options.before ? ThemableDecorationAttachmentRenderOptions.from(options.before) : undefined,
1282
+ after: options.after ? ThemableDecorationAttachmentRenderOptions.from(options.after) : undefined,
1283
+ };
1284
+ }
1285
+ DecorationRenderOptions.from = from;
1286
+ })(DecorationRenderOptions || (exports.DecorationRenderOptions = DecorationRenderOptions = {}));
1287
+ var DecorationRangeBehavior;
1288
+ (function (DecorationRangeBehavior) {
1289
+ function from(value) {
1290
+ if (typeof value === 'undefined') {
1291
+ return value;
1292
+ }
1293
+ switch (value) {
1294
+ case types.DecorationRangeBehavior.OpenOpen:
1295
+ return rpc.TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges;
1296
+ case types.DecorationRangeBehavior.ClosedClosed:
1297
+ return rpc.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges;
1298
+ case types.DecorationRangeBehavior.OpenClosed:
1299
+ return rpc.TrackedRangeStickiness.GrowsOnlyWhenTypingBefore;
1300
+ case types.DecorationRangeBehavior.ClosedOpen:
1301
+ return rpc.TrackedRangeStickiness.GrowsOnlyWhenTypingAfter;
1302
+ }
1303
+ }
1304
+ DecorationRangeBehavior.from = from;
1305
+ })(DecorationRangeBehavior || (exports.DecorationRangeBehavior = DecorationRangeBehavior = {}));
1306
+ var ThemableDecorationRenderOptions;
1307
+ (function (ThemableDecorationRenderOptions) {
1308
+ function from(options) {
1309
+ if (typeof options === 'undefined') {
1310
+ return options;
1311
+ }
1312
+ return {
1313
+ backgroundColor: options.backgroundColor,
1314
+ outline: options.outline,
1315
+ outlineColor: options.outlineColor,
1316
+ outlineStyle: options.outlineStyle,
1317
+ outlineWidth: options.outlineWidth,
1318
+ border: options.border,
1319
+ borderColor: options.borderColor,
1320
+ borderRadius: options.borderRadius,
1321
+ borderSpacing: options.borderSpacing,
1322
+ borderStyle: options.borderStyle,
1323
+ borderWidth: options.borderWidth,
1324
+ fontStyle: options.fontStyle,
1325
+ fontWeight: options.fontWeight,
1326
+ textDecoration: options.textDecoration,
1327
+ cursor: options.cursor,
1328
+ color: options.color,
1329
+ opacity: options.opacity,
1330
+ letterSpacing: options.letterSpacing,
1331
+ gutterIconPath: options.gutterIconPath ? pathOrURIToURI(options.gutterIconPath) : undefined,
1332
+ gutterIconSize: options.gutterIconSize,
1333
+ overviewRulerColor: options.overviewRulerColor,
1334
+ before: options.before ? ThemableDecorationAttachmentRenderOptions.from(options.before) : undefined,
1335
+ after: options.after ? ThemableDecorationAttachmentRenderOptions.from(options.after) : undefined,
1336
+ };
1337
+ }
1338
+ ThemableDecorationRenderOptions.from = from;
1339
+ })(ThemableDecorationRenderOptions || (exports.ThemableDecorationRenderOptions = ThemableDecorationRenderOptions = {}));
1340
+ var ThemableDecorationAttachmentRenderOptions;
1341
+ (function (ThemableDecorationAttachmentRenderOptions) {
1342
+ function from(options) {
1343
+ if (typeof options === 'undefined') {
1344
+ return options;
1345
+ }
1346
+ return {
1347
+ contentText: options.contentText,
1348
+ contentIconPath: options.contentIconPath ? pathOrURIToURI(options.contentIconPath) : undefined,
1349
+ border: options.border,
1350
+ borderColor: options.borderColor,
1351
+ fontStyle: options.fontStyle,
1352
+ fontWeight: options.fontWeight,
1353
+ textDecoration: options.textDecoration,
1354
+ color: options.color,
1355
+ backgroundColor: options.backgroundColor,
1356
+ margin: options.margin,
1357
+ width: options.width,
1358
+ height: options.height,
1359
+ };
1360
+ }
1361
+ ThemableDecorationAttachmentRenderOptions.from = from;
1362
+ })(ThemableDecorationAttachmentRenderOptions || (exports.ThemableDecorationAttachmentRenderOptions = ThemableDecorationAttachmentRenderOptions = {}));
1363
+ var ViewColumn;
1364
+ (function (ViewColumn) {
1365
+ function from(column) {
1366
+ if (typeof column === 'number' && column >= types.ViewColumn.One) {
1367
+ return column - 1; // adjust zero index (ViewColumn.ONE => 0)
1368
+ }
1369
+ if (column === types.ViewColumn.Beside) {
1370
+ return SIDE_GROUP;
1371
+ }
1372
+ return ACTIVE_GROUP; // default is always the active group
1373
+ }
1374
+ ViewColumn.from = from;
1375
+ function to(position) {
1376
+ if (typeof position === 'number' && position >= 0) {
1377
+ return position + 1; // adjust to index (ViewColumn.ONE => 1)
1378
+ }
1379
+ throw new Error('invalid \'EditorGroupColumn\'');
1380
+ }
1381
+ ViewColumn.to = to;
1382
+ })(ViewColumn || (exports.ViewColumn = ViewColumn = {}));
1383
+ function pathOrURIToURI(value) {
1384
+ if (typeof value === 'undefined') {
1385
+ return value;
1386
+ }
1387
+ if (typeof value === 'string') {
1388
+ return types_impl_1.URI.file(value);
1389
+ }
1390
+ else {
1391
+ return value;
1392
+ }
1393
+ }
1394
+ exports.pathOrURIToURI = pathOrURIToURI;
1395
+ function pluginToPluginInfo(plugin) {
1396
+ return {
1397
+ id: plugin.model.id,
1398
+ name: plugin.model.name,
1399
+ displayName: plugin.model.displayName
1400
+ };
1401
+ }
1402
+ exports.pluginToPluginInfo = pluginToPluginInfo;
1403
+ var InlayHintKind;
1404
+ (function (InlayHintKind) {
1405
+ function from(kind) {
1406
+ return kind;
1407
+ }
1408
+ InlayHintKind.from = from;
1409
+ function to(kind) {
1410
+ return kind;
1411
+ }
1412
+ InlayHintKind.to = to;
1413
+ })(InlayHintKind || (exports.InlayHintKind = InlayHintKind = {}));
1414
+ var DataTransferItem;
1415
+ (function (DataTransferItem) {
1416
+ function to(mime, item, resolveFileData) {
1417
+ const file = item.fileData;
1418
+ if (file) {
1419
+ return new class extends types.DataTransferItem {
1420
+ asFile() {
1421
+ return {
1422
+ name: file.name,
1423
+ uri: types_impl_1.URI.revive(file.uri),
1424
+ data: () => resolveFileData(file.id),
1425
+ };
1426
+ }
1427
+ }('');
1428
+ }
1429
+ if (mime === 'text/uri-list' && item.uriListData) {
1430
+ return new types.DataTransferItem(reviveUriList(item.uriListData));
1431
+ }
1432
+ return new types.DataTransferItem(item.asString);
1433
+ }
1434
+ DataTransferItem.to = to;
1435
+ function reviveUriList(parts) {
1436
+ return parts.map(part => typeof part === 'string' ? part : types_impl_1.URI.revive(part).toString()).join('\r\n');
1437
+ }
1438
+ })(DataTransferItem || (exports.DataTransferItem = DataTransferItem = {}));
1439
+ var DataTransfer;
1440
+ (function (DataTransfer) {
1441
+ function toDataTransfer(value, resolveFileData) {
1442
+ const dataTransfer = new types.DataTransfer();
1443
+ for (const [mimeType, item] of value.items) {
1444
+ dataTransfer.set(mimeType, DataTransferItem.to(mimeType, item, resolveFileData));
1445
+ }
1446
+ return dataTransfer;
1447
+ }
1448
+ DataTransfer.toDataTransfer = toDataTransfer;
1449
+ })(DataTransfer || (exports.DataTransfer = DataTransfer = {}));
1450
+ var NotebookDocumentContentOptions;
1451
+ (function (NotebookDocumentContentOptions) {
1452
+ function from(options) {
1453
+ var _a, _b, _c;
1454
+ return {
1455
+ transientOutputs: (_a = options === null || options === void 0 ? void 0 : options.transientOutputs) !== null && _a !== void 0 ? _a : false,
1456
+ transientCellMetadata: (_b = options === null || options === void 0 ? void 0 : options.transientCellMetadata) !== null && _b !== void 0 ? _b : {},
1457
+ transientDocumentMetadata: (_c = options === null || options === void 0 ? void 0 : options.transientDocumentMetadata) !== null && _c !== void 0 ? _c : {},
1458
+ };
1459
+ }
1460
+ NotebookDocumentContentOptions.from = from;
1461
+ })(NotebookDocumentContentOptions || (exports.NotebookDocumentContentOptions = NotebookDocumentContentOptions = {}));
1462
+ var NotebookStatusBarItem;
1463
+ (function (NotebookStatusBarItem) {
1464
+ function from(item, commandsConverter, disposables) {
1465
+ const command = typeof item.command === 'string' ? { title: '', command: item.command } : item.command;
1466
+ return {
1467
+ alignment: item.alignment === types.NotebookCellStatusBarAlignment.Left ? 1 /* notebooks.CellStatusbarAlignment.Left */ : 2 /* notebooks.CellStatusbarAlignment.Right */,
1468
+ command: commandsConverter.toSafeCommand(command, disposables),
1469
+ text: item.text,
1470
+ tooltip: item.tooltip,
1471
+ priority: item.priority
1472
+ };
1473
+ }
1474
+ NotebookStatusBarItem.from = from;
1475
+ })(NotebookStatusBarItem || (exports.NotebookStatusBarItem = NotebookStatusBarItem = {}));
1476
+ var NotebookData;
1477
+ (function (NotebookData) {
1478
+ function from(data) {
1479
+ var _a;
1480
+ const res = {
1481
+ metadata: (_a = data.metadata) !== null && _a !== void 0 ? _a : Object.create(null),
1482
+ cells: [],
1483
+ };
1484
+ for (const cell of data.cells) {
1485
+ // types.NotebookCellData.validate(cell);
1486
+ res.cells.push(NotebookCellData.from(cell));
1487
+ }
1488
+ return res;
1489
+ }
1490
+ NotebookData.from = from;
1491
+ function to(data) {
1492
+ const res = new types.NotebookData(data.cells.map(NotebookCellData.to));
1493
+ if (!(0, common_1.isEmptyObject)(data.metadata)) {
1494
+ res.metadata = data.metadata;
1495
+ }
1496
+ return res;
1497
+ }
1498
+ NotebookData.to = to;
1499
+ })(NotebookData || (exports.NotebookData = NotebookData = {}));
1500
+ var NotebookCellData;
1501
+ (function (NotebookCellData) {
1502
+ function from(data) {
1503
+ var _a;
1504
+ return {
1505
+ cellKind: NotebookCellKind.from(data.kind),
1506
+ language: data.languageId,
1507
+ source: data.value,
1508
+ metadata: data.metadata,
1509
+ internalMetadata: NotebookCellExecutionSummary.from((_a = data.executionSummary) !== null && _a !== void 0 ? _a : {}),
1510
+ outputs: data.outputs ? data.outputs.map(NotebookCellOutputConverter.from) : []
1511
+ };
1512
+ }
1513
+ NotebookCellData.from = from;
1514
+ function to(data) {
1515
+ return new types.NotebookCellData(NotebookCellKind.to(data.cellKind), data.source, data.language, data.outputs ? data.outputs.map(NotebookCellOutput.to) : undefined, data.metadata, data.internalMetadata ? NotebookCellExecutionSummary.to(data.internalMetadata) : undefined);
1516
+ }
1517
+ NotebookCellData.to = to;
1518
+ })(NotebookCellData || (exports.NotebookCellData = NotebookCellData = {}));
1519
+ var NotebookCellKind;
1520
+ (function (NotebookCellKind) {
1521
+ function from(data) {
1522
+ switch (data) {
1523
+ case types.NotebookCellKind.Markup:
1524
+ return notebooks.CellKind.Markup;
1525
+ case types.NotebookCellKind.Code:
1526
+ default:
1527
+ return notebooks.CellKind.Code;
1528
+ }
1529
+ }
1530
+ NotebookCellKind.from = from;
1531
+ function to(data) {
1532
+ switch (data) {
1533
+ case notebooks.CellKind.Markup:
1534
+ return types.NotebookCellKind.Markup;
1535
+ case notebooks.CellKind.Code:
1536
+ default:
1537
+ return types.NotebookCellKind.Code;
1538
+ }
1539
+ }
1540
+ NotebookCellKind.to = to;
1541
+ })(NotebookCellKind || (exports.NotebookCellKind = NotebookCellKind = {}));
1542
+ var NotebookCellOutput;
1543
+ (function (NotebookCellOutput) {
1544
+ function from(output) {
1545
+ return {
1546
+ outputId: output.outputId,
1547
+ items: output.items.map(NotebookCellOutputItem.from),
1548
+ metadata: output.metadata
1549
+ };
1550
+ }
1551
+ NotebookCellOutput.from = from;
1552
+ function to(output) {
1553
+ const items = output.items.map(NotebookCellOutputItem.to);
1554
+ return new types.NotebookCellOutput(items, output.outputId, output.metadata);
1555
+ }
1556
+ NotebookCellOutput.to = to;
1557
+ })(NotebookCellOutput || (exports.NotebookCellOutput = NotebookCellOutput = {}));
1558
+ var NotebookCellOutputItem;
1559
+ (function (NotebookCellOutputItem) {
1560
+ function from(item) {
1561
+ return {
1562
+ mime: item.mime,
1563
+ valueBytes: buffer_1.BinaryBuffer.wrap(item.data),
1564
+ };
1565
+ }
1566
+ NotebookCellOutputItem.from = from;
1567
+ function to(item) {
1568
+ return new types.NotebookCellOutputItem(item.valueBytes.buffer, item.mime);
1569
+ }
1570
+ NotebookCellOutputItem.to = to;
1571
+ })(NotebookCellOutputItem || (exports.NotebookCellOutputItem = NotebookCellOutputItem = {}));
1572
+ var NotebookCellOutputConverter;
1573
+ (function (NotebookCellOutputConverter) {
1574
+ function from(output) {
1575
+ return {
1576
+ outputId: output.outputId,
1577
+ items: output.items.map(NotebookCellOutputItem.from),
1578
+ metadata: output.metadata
1579
+ };
1580
+ }
1581
+ NotebookCellOutputConverter.from = from;
1582
+ function to(output) {
1583
+ const items = output.items.map(NotebookCellOutputItem.to);
1584
+ return new types.NotebookCellOutput(items, output.outputId, output.metadata);
1585
+ }
1586
+ NotebookCellOutputConverter.to = to;
1587
+ function ensureUniqueMimeTypes(items, warn = false) {
1588
+ const seen = new Set();
1589
+ const removeIdx = new Set();
1590
+ for (let i = 0; i < items.length; i++) {
1591
+ const item = items[i];
1592
+ // We can have multiple text stream mime types in the same output.
1593
+ if (!seen.has(item.mime) || (0, common_2.isTextStreamMime)(item.mime)) {
1594
+ seen.add(item.mime);
1595
+ continue;
1596
+ }
1597
+ // duplicated mime types... first has won
1598
+ removeIdx.add(i);
1599
+ if (warn) {
1600
+ console.warn(`DUPLICATED mime type '${item.mime}' will be dropped`);
1601
+ }
1602
+ }
1603
+ if (removeIdx.size === 0) {
1604
+ return items;
1605
+ }
1606
+ return items.filter((_, index) => !removeIdx.has(index));
1607
+ }
1608
+ NotebookCellOutputConverter.ensureUniqueMimeTypes = ensureUniqueMimeTypes;
1609
+ })(NotebookCellOutputConverter || (exports.NotebookCellOutputConverter = NotebookCellOutputConverter = {}));
1610
+ var NotebookCellExecutionSummary;
1611
+ (function (NotebookCellExecutionSummary) {
1612
+ function to(data) {
1613
+ return {
1614
+ timing: typeof data.runStartTime === 'number' && typeof data.runEndTime === 'number' ? { startTime: data.runStartTime, endTime: data.runEndTime } : undefined,
1615
+ executionOrder: data.executionOrder,
1616
+ success: data.lastRunSuccess
1617
+ };
1618
+ }
1619
+ NotebookCellExecutionSummary.to = to;
1620
+ function from(data) {
1621
+ var _a, _b;
1622
+ return {
1623
+ lastRunSuccess: data.success,
1624
+ runStartTime: (_a = data.timing) === null || _a === void 0 ? void 0 : _a.startTime,
1625
+ runEndTime: (_b = data.timing) === null || _b === void 0 ? void 0 : _b.endTime,
1626
+ executionOrder: data.executionOrder
1627
+ };
1628
+ }
1629
+ NotebookCellExecutionSummary.from = from;
1630
+ })(NotebookCellExecutionSummary || (exports.NotebookCellExecutionSummary = NotebookCellExecutionSummary = {}));
1631
+ var NotebookRange;
1632
+ (function (NotebookRange) {
1633
+ function from(range) {
1634
+ return { start: range.start, end: range.end };
1635
+ }
1636
+ NotebookRange.from = from;
1637
+ function to(range) {
1638
+ return new types.NotebookRange(range.start, range.end);
1639
+ }
1640
+ NotebookRange.to = to;
1641
+ })(NotebookRange || (exports.NotebookRange = NotebookRange = {}));
1642
+ var NotebookKernelSourceAction;
1643
+ (function (NotebookKernelSourceAction) {
1644
+ function from(item, commandsConverter, disposables) {
1645
+ const command = typeof item.command === 'string' ? { title: '', command: item.command } : item.command;
1646
+ return {
1647
+ command: commandsConverter.toSafeCommand(command, disposables),
1648
+ label: item.label,
1649
+ description: item.description,
1650
+ detail: item.detail,
1651
+ documentation: item.documentation
1652
+ };
1653
+ }
1654
+ NotebookKernelSourceAction.from = from;
1655
+ })(NotebookKernelSourceAction || (exports.NotebookKernelSourceAction = NotebookKernelSourceAction = {}));
1656
+ var TestMessage;
1657
+ (function (TestMessage) {
1658
+ function from(message) {
1659
+ if ((0, arrays_1.isReadonlyArray)(message)) {
1660
+ return message.map(msg => TestMessage.from(msg)[0]);
1661
+ }
1662
+ return [{
1663
+ location: fromLocationToLanguageServerLocation(message.location),
1664
+ message: fromMarkdown(message.message),
1665
+ expected: message.expectedOutput,
1666
+ actual: message.actualOutput,
1667
+ contextValue: message.contextValue,
1668
+ stackTrace: message.stackTrace && message.stackTrace.map(frame => TestMessageStackFrame.from(frame))
1669
+ }];
1670
+ }
1671
+ TestMessage.from = from;
1672
+ })(TestMessage || (exports.TestMessage = TestMessage = {}));
1673
+ var TestMessageStackFrame;
1674
+ (function (TestMessageStackFrame) {
1675
+ function from(stackTrace) {
1676
+ var _a;
1677
+ return {
1678
+ label: stackTrace.label,
1679
+ position: stackTrace.position,
1680
+ uri: (_a = stackTrace === null || stackTrace === void 0 ? void 0 : stackTrace.uri) === null || _a === void 0 ? void 0 : _a.toString()
1681
+ };
1682
+ }
1683
+ TestMessageStackFrame.from = from;
1684
+ })(TestMessageStackFrame || (exports.TestMessageStackFrame = TestMessageStackFrame = {}));
1685
+ var TestItem;
1686
+ (function (TestItem) {
1687
+ function from(test) {
1688
+ return TestItem.fromPartial(test);
1689
+ }
1690
+ TestItem.from = from;
1691
+ function fromPartial(test) {
1692
+ const result = {};
1693
+ if ('id' in test) {
1694
+ result.id = test.id;
1695
+ }
1696
+ if ('uri' in test) {
1697
+ result.uri = test.uri;
1698
+ }
1699
+ if ('label' in test) {
1700
+ result.label = test.label;
1701
+ }
1702
+ if ('range' in test) {
1703
+ result.range = fromRange(test.range);
1704
+ }
1705
+ if ('sortKey' in test) {
1706
+ result.sortKey = test.sortText;
1707
+ }
1708
+ if ('tags' in test) {
1709
+ result.tags = test.tags ? test.tags.map(tag => tag.id) : [];
1710
+ }
1711
+ if ('busy' in test) {
1712
+ result.busy = test.busy;
1713
+ }
1714
+ if ('sortKey' in test) {
1715
+ result.sortKey = test.sortText;
1716
+ }
1717
+ if ('canResolveChildren' in test) {
1718
+ result.canResolveChildren = test.canResolveChildren;
1719
+ }
1720
+ if ('description' in test) {
1721
+ result.description = test.description;
1722
+ }
1723
+ if ('description' in test) {
1724
+ result.error = test.error;
1725
+ }
1726
+ if (test.children) {
1727
+ const children = [];
1728
+ test.children.forEach(item => {
1729
+ children.push(TestItem.from(item));
1730
+ });
1731
+ result.children = children;
1732
+ }
1733
+ return result;
1734
+ }
1735
+ TestItem.fromPartial = fromPartial;
1736
+ })(TestItem || (exports.TestItem = TestItem = {}));
1737
+ //# sourceMappingURL=type-converters.js.map