@theia/plugin-ext 1.68.0-next.9 → 1.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (413) hide show
  1. package/lib/common/arrays.js +5 -6
  2. package/lib/common/arrays.js.map +1 -1
  3. package/lib/common/assert.js +1 -2
  4. package/lib/common/assert.js.map +1 -1
  5. package/lib/common/cache.js +1 -1
  6. package/lib/common/cache.js.map +1 -1
  7. package/lib/common/collections.js +2 -3
  8. package/lib/common/collections.js.map +1 -1
  9. package/lib/common/disposable-util.js +1 -2
  10. package/lib/common/disposable-util.js.map +1 -1
  11. package/lib/common/editor-options.js +2 -2
  12. package/lib/common/editor-options.js.map +1 -1
  13. package/lib/common/errors.d.ts.map +1 -1
  14. package/lib/common/errors.js +4 -5
  15. package/lib/common/errors.js.map +1 -1
  16. package/lib/common/lm-protocol.d.ts.map +1 -1
  17. package/lib/common/objects.js +1 -2
  18. package/lib/common/objects.js.map +1 -1
  19. package/lib/common/paths-util.js +3 -4
  20. package/lib/common/paths-util.js.map +1 -1
  21. package/lib/common/plugin-api-rpc-model.d.ts +13 -0
  22. package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
  23. package/lib/common/plugin-api-rpc-model.js +9 -4
  24. package/lib/common/plugin-api-rpc-model.js.map +1 -1
  25. package/lib/common/plugin-api-rpc.d.ts +19 -3
  26. package/lib/common/plugin-api-rpc.d.ts.map +1 -1
  27. package/lib/common/plugin-api-rpc.js.map +1 -1
  28. package/lib/common/plugin-protocol.d.ts +0 -1
  29. package/lib/common/plugin-protocol.d.ts.map +1 -1
  30. package/lib/common/plugin-protocol.js +3 -3
  31. package/lib/common/plugin-protocol.js.map +1 -1
  32. package/lib/common/rpc-protocol.js +3 -3
  33. package/lib/common/rpc-protocol.js.map +1 -1
  34. package/lib/common/semantic-tokens-dto.js +2 -3
  35. package/lib/common/semantic-tokens-dto.js.map +1 -1
  36. package/lib/common/types.js +8 -8
  37. package/lib/common/types.js.map +1 -1
  38. package/lib/common/uint.js +1 -2
  39. package/lib/common/uint.js.map +1 -1
  40. package/lib/hosted/browser/hosted-plugin.d.ts.map +1 -1
  41. package/lib/hosted/browser/hosted-plugin.js +27 -28
  42. package/lib/hosted/browser/hosted-plugin.js.map +1 -1
  43. package/lib/hosted/browser/worker/debug-stub.js +1 -2
  44. package/lib/hosted/browser/worker/debug-stub.js.map +1 -1
  45. package/lib/hosted/browser/worker/plugin-manifest-loader.js +2 -4
  46. package/lib/hosted/browser/worker/plugin-manifest-loader.js.map +1 -1
  47. package/lib/hosted/common/hosted-plugin.d.ts +0 -1
  48. package/lib/hosted/common/hosted-plugin.d.ts.map +1 -1
  49. package/lib/hosted/common/hosted-plugin.js +6 -7
  50. package/lib/hosted/common/hosted-plugin.js.map +1 -1
  51. package/lib/hosted/node/hosted-plugin-cli-contribution.d.ts +0 -1
  52. package/lib/hosted/node/hosted-plugin-cli-contribution.d.ts.map +1 -1
  53. package/lib/hosted/node/hosted-plugin-cli-contribution.js +5 -4
  54. package/lib/hosted/node/hosted-plugin-cli-contribution.js.map +1 -1
  55. package/lib/hosted/node/hosted-plugin-localization-service.js +10 -15
  56. package/lib/hosted/node/hosted-plugin-localization-service.js.map +1 -1
  57. package/lib/hosted/node/hosted-plugin-process.js +1 -1
  58. package/lib/hosted/node/hosted-plugin-process.js.map +1 -1
  59. package/lib/hosted/node/plugin-activation-events.js +1 -2
  60. package/lib/hosted/node/plugin-activation-events.js.map +1 -1
  61. package/lib/hosted/node/plugin-deployer-handler-impl.js +5 -8
  62. package/lib/hosted/node/plugin-deployer-handler-impl.js.map +1 -1
  63. package/lib/hosted/node/plugin-ext-hosted-backend-module.js +2 -3
  64. package/lib/hosted/node/plugin-ext-hosted-backend-module.js.map +1 -1
  65. package/lib/hosted/node/plugin-host-logger.js +1 -2
  66. package/lib/hosted/node/plugin-host-logger.js.map +1 -1
  67. package/lib/hosted/node/plugin-host-module.js +1 -2
  68. package/lib/hosted/node/plugin-host-module.js.map +1 -1
  69. package/lib/hosted/node/plugin-host-proxy.js +3 -4
  70. package/lib/hosted/node/plugin-host-proxy.js.map +1 -1
  71. package/lib/hosted/node/plugin-host.js +1 -1
  72. package/lib/hosted/node/plugin-host.js.map +1 -1
  73. package/lib/hosted/node/plugin-language-pack-service.js +2 -4
  74. package/lib/hosted/node/plugin-language-pack-service.js.map +1 -1
  75. package/lib/hosted/node/plugin-manifest-loader.js +2 -4
  76. package/lib/hosted/node/plugin-manifest-loader.js.map +1 -1
  77. package/lib/hosted/node/plugin-reader.d.ts +0 -1
  78. package/lib/hosted/node/plugin-reader.d.ts.map +1 -1
  79. package/lib/hosted/node/plugin-require-override.js +1 -2
  80. package/lib/hosted/node/plugin-require-override.js.map +1 -1
  81. package/lib/hosted/node/plugin-service.js +3 -5
  82. package/lib/hosted/node/plugin-service.js.map +1 -1
  83. package/lib/hosted/node/scanners/scanner-theia.d.ts.map +1 -1
  84. package/lib/hosted/node/scanners/scanner-theia.js +6 -12
  85. package/lib/hosted/node/scanners/scanner-theia.js.map +1 -1
  86. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.js +1 -2
  87. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.js.map +1 -1
  88. package/lib/main/browser/authentication-main.js +6 -7
  89. package/lib/main/browser/authentication-main.js.map +1 -1
  90. package/lib/main/browser/commands.js +3 -3
  91. package/lib/main/browser/commands.js.map +1 -1
  92. package/lib/main/browser/comments/comment-thread-widget.d.ts +0 -1
  93. package/lib/main/browser/comments/comment-thread-widget.d.ts.map +1 -1
  94. package/lib/main/browser/comments/comment-thread-widget.js +14 -22
  95. package/lib/main/browser/comments/comment-thread-widget.js.map +1 -1
  96. package/lib/main/browser/comments/comments-contribution.js +1 -2
  97. package/lib/main/browser/comments/comments-contribution.js.map +1 -1
  98. package/lib/main/browser/comments/comments-main.js +2 -2
  99. package/lib/main/browser/comments/comments-main.js.map +1 -1
  100. package/lib/main/browser/custom-editors/custom-editor-opener.js +8 -9
  101. package/lib/main/browser/custom-editors/custom-editor-opener.js.map +1 -1
  102. package/lib/main/browser/custom-editors/custom-editor-service.js +3 -3
  103. package/lib/main/browser/custom-editors/custom-editor-service.js.map +1 -1
  104. package/lib/main/browser/custom-editors/custom-editor-widget.js +6 -7
  105. package/lib/main/browser/custom-editors/custom-editor-widget.js.map +1 -1
  106. package/lib/main/browser/custom-editors/custom-editors-main.js +1 -2
  107. package/lib/main/browser/custom-editors/custom-editors-main.js.map +1 -1
  108. package/lib/main/browser/debug/debug-main.js +1 -2
  109. package/lib/main/browser/debug/debug-main.js.map +1 -1
  110. package/lib/main/browser/debug/plugin-debug-service.d.ts +0 -1
  111. package/lib/main/browser/debug/plugin-debug-service.d.ts.map +1 -1
  112. package/lib/main/browser/decorations/decorations-main.js +2 -2
  113. package/lib/main/browser/decorations/decorations-main.js.map +1 -1
  114. package/lib/main/browser/dialogs-main.js +1 -2
  115. package/lib/main/browser/dialogs-main.js.map +1 -1
  116. package/lib/main/browser/documents-main.js +6 -7
  117. package/lib/main/browser/documents-main.js.map +1 -1
  118. package/lib/main/browser/editors-and-documents-main.js +3 -4
  119. package/lib/main/browser/editors-and-documents-main.js.map +1 -1
  120. package/lib/main/browser/env-main.js +2 -2
  121. package/lib/main/browser/env-main.js.map +1 -1
  122. package/lib/main/browser/file-system-main-impl.js +1 -1
  123. package/lib/main/browser/file-system-main-impl.js.map +1 -1
  124. package/lib/main/browser/hierarchy/hierarchy-types-converters.js +15 -15
  125. package/lib/main/browser/hierarchy/hierarchy-types-converters.js.map +1 -1
  126. package/lib/main/browser/languages-main.d.ts +2 -2
  127. package/lib/main/browser/languages-main.d.ts.map +1 -1
  128. package/lib/main/browser/languages-main.js +14 -10
  129. package/lib/main/browser/languages-main.js.map +1 -1
  130. package/lib/main/browser/localization-main.js +1 -2
  131. package/lib/main/browser/localization-main.js.map +1 -1
  132. package/lib/main/browser/main-context.js +1 -2
  133. package/lib/main/browser/main-context.js.map +1 -1
  134. package/lib/main/browser/main-file-system-event-service.js +2 -2
  135. package/lib/main/browser/main-file-system-event-service.js.map +1 -1
  136. package/lib/main/browser/menus/menus-contribution-handler.js +2 -3
  137. package/lib/main/browser/menus/menus-contribution-handler.js.map +1 -1
  138. package/lib/main/browser/menus/plugin-menu-command-adapter.js +2 -4
  139. package/lib/main/browser/menus/plugin-menu-command-adapter.js.map +1 -1
  140. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js +8 -9
  141. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js.map +1 -1
  142. package/lib/main/browser/notebooks/notebook-documents-main.js +1 -2
  143. package/lib/main/browser/notebooks/notebook-documents-main.js.map +1 -1
  144. package/lib/main/browser/notebooks/notebook-editors-main.js +2 -3
  145. package/lib/main/browser/notebooks/notebook-editors-main.js.map +1 -1
  146. package/lib/main/browser/notebooks/notebook-kernels-main.js +8 -11
  147. package/lib/main/browser/notebooks/notebook-kernels-main.js.map +1 -1
  148. package/lib/main/browser/notebooks/notebooks-main.js +5 -8
  149. package/lib/main/browser/notebooks/notebooks-main.js.map +1 -1
  150. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +0 -1
  151. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -1
  152. package/lib/main/browser/notebooks/renderers/cell-output-webview.js +7 -10
  153. package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -1
  154. package/lib/main/browser/notebooks/renderers/output-webview-internal.js +15 -23
  155. package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -1
  156. package/lib/main/browser/plugin-authentication-service.js +2 -2
  157. package/lib/main/browser/plugin-authentication-service.js.map +1 -1
  158. package/lib/main/browser/plugin-contribution-handler.js +6 -9
  159. package/lib/main/browser/plugin-contribution-handler.js.map +1 -1
  160. package/lib/main/browser/plugin-ext-widget.d.ts +0 -1
  161. package/lib/main/browser/plugin-ext-widget.d.ts.map +1 -1
  162. package/lib/main/browser/plugin-frontend-contribution.js +7 -6
  163. package/lib/main/browser/plugin-frontend-contribution.js.map +1 -1
  164. package/lib/main/browser/plugin-frontend-view-contribution.js +3 -2
  165. package/lib/main/browser/plugin-frontend-view-contribution.js.map +1 -1
  166. package/lib/main/browser/plugin-icon-theme-service.d.ts +0 -1
  167. package/lib/main/browser/plugin-icon-theme-service.d.ts.map +1 -1
  168. package/lib/main/browser/plugin-icon-theme-service.js +1 -2
  169. package/lib/main/browser/plugin-icon-theme-service.js.map +1 -1
  170. package/lib/main/browser/plugin-shared-style.js +2 -3
  171. package/lib/main/browser/plugin-shared-style.js.map +1 -1
  172. package/lib/main/browser/plugin-storage.js +1 -2
  173. package/lib/main/browser/plugin-storage.js.map +1 -1
  174. package/lib/main/browser/preference-registry-main.d.ts.map +1 -1
  175. package/lib/main/browser/preference-registry-main.js +5 -4
  176. package/lib/main/browser/preference-registry-main.js.map +1 -1
  177. package/lib/main/browser/quick-open-main.js +3 -5
  178. package/lib/main/browser/quick-open-main.js.map +1 -1
  179. package/lib/main/browser/scm-main.d.ts +8 -2
  180. package/lib/main/browser/scm-main.d.ts.map +1 -1
  181. package/lib/main/browser/scm-main.js +33 -1
  182. package/lib/main/browser/scm-main.js.map +1 -1
  183. package/lib/main/browser/tabs/tabs-main.js +8 -15
  184. package/lib/main/browser/tabs/tabs-main.js.map +1 -1
  185. package/lib/main/browser/tasks-main.js +1 -1
  186. package/lib/main/browser/tasks-main.js.map +1 -1
  187. package/lib/main/browser/terminal-main.js +4 -7
  188. package/lib/main/browser/terminal-main.js.map +1 -1
  189. package/lib/main/browser/test-main.js +5 -9
  190. package/lib/main/browser/test-main.js.map +1 -1
  191. package/lib/main/browser/text-editor-main.js +2 -4
  192. package/lib/main/browser/text-editor-main.js.map +1 -1
  193. package/lib/main/browser/text-editors-main.js +3 -3
  194. package/lib/main/browser/text-editors-main.js.map +1 -1
  195. package/lib/main/browser/uri-main.js +2 -4
  196. package/lib/main/browser/uri-main.js.map +1 -1
  197. package/lib/main/browser/view/dnd-file-content-store.js +3 -2
  198. package/lib/main/browser/view/dnd-file-content-store.js.map +1 -1
  199. package/lib/main/browser/view/plugin-view-registry.js +33 -38
  200. package/lib/main/browser/view/plugin-view-registry.js.map +1 -1
  201. package/lib/main/browser/view/tree-view-decorator-service.js +2 -2
  202. package/lib/main/browser/view/tree-view-decorator-service.js.map +1 -1
  203. package/lib/main/browser/view/tree-view-widget.d.ts +0 -1
  204. package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
  205. package/lib/main/browser/view/tree-view-widget.js +11 -16
  206. package/lib/main/browser/view/tree-view-widget.js.map +1 -1
  207. package/lib/main/browser/view/tree-views-main.js +4 -7
  208. package/lib/main/browser/view/tree-views-main.js.map +1 -1
  209. package/lib/main/browser/webview/webview-environment.js +1 -1
  210. package/lib/main/browser/webview/webview-environment.js.map +1 -1
  211. package/lib/main/browser/webview/webview-resource-cache.js +1 -1
  212. package/lib/main/browser/webview/webview-resource-cache.js.map +1 -1
  213. package/lib/main/browser/webview/webview.d.ts +4 -4
  214. package/lib/main/browser/webview/webview.d.ts.map +1 -1
  215. package/lib/main/browser/webview/webview.js +17 -12
  216. package/lib/main/browser/webview/webview.js.map +1 -1
  217. package/lib/main/browser/webviews-main.d.ts +2 -3
  218. package/lib/main/browser/webviews-main.d.ts.map +1 -1
  219. package/lib/main/browser/webviews-main.js +1 -2
  220. package/lib/main/browser/webviews-main.js.map +1 -1
  221. package/lib/main/browser/workspace-main.d.ts.map +1 -1
  222. package/lib/main/browser/workspace-main.js +10 -8
  223. package/lib/main/browser/workspace-main.js.map +1 -1
  224. package/lib/main/common/webview-preferences.js +3 -3
  225. package/lib/main/common/webview-preferences.js.map +1 -1
  226. package/lib/main/node/handlers/plugin-theia-directory-handler.js +2 -4
  227. package/lib/main/node/handlers/plugin-theia-directory-handler.js.map +1 -1
  228. package/lib/main/node/plugin-cli-contribution.d.ts +0 -1
  229. package/lib/main/node/plugin-cli-contribution.d.ts.map +1 -1
  230. package/lib/main/node/plugin-cli-contribution.js +10 -9
  231. package/lib/main/node/plugin-cli-contribution.js.map +1 -1
  232. package/lib/main/node/plugin-deployer-impl.js +4 -6
  233. package/lib/main/node/plugin-deployer-impl.js.map +1 -1
  234. package/lib/main/node/plugin-ext-backend-module.js +1 -2
  235. package/lib/main/node/plugin-ext-backend-module.js.map +1 -1
  236. package/lib/main/node/plugin-github-resolver.js +4 -3
  237. package/lib/main/node/plugin-github-resolver.js.map +1 -1
  238. package/lib/main/node/plugin-mgmt-cli-contribution.d.ts +0 -1
  239. package/lib/main/node/plugin-mgmt-cli-contribution.d.ts.map +1 -1
  240. package/lib/main/node/plugin-mgmt-cli-contribution.js +5 -4
  241. package/lib/main/node/plugin-mgmt-cli-contribution.js.map +1 -1
  242. package/lib/main/node/plugin-remote-copy-contribution.js +1 -2
  243. package/lib/main/node/plugin-remote-copy-contribution.js.map +1 -1
  244. package/lib/main/node/plugin-server-impl.js +1 -1
  245. package/lib/main/node/plugin-server-impl.js.map +1 -1
  246. package/lib/main/node/plugin-service.d.ts +0 -2
  247. package/lib/main/node/plugin-service.d.ts.map +1 -1
  248. package/lib/main/node/plugin-uninstallation-manager.js +3 -2
  249. package/lib/main/node/plugin-uninstallation-manager.js.map +1 -1
  250. package/lib/main/node/plugins-key-value-storage.js +4 -8
  251. package/lib/main/node/plugins-key-value-storage.js.map +1 -1
  252. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js +3 -2
  253. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js.map +1 -1
  254. package/lib/main/node/temp-dir-util.js +2 -3
  255. package/lib/main/node/temp-dir-util.js.map +1 -1
  256. package/lib/plugin/authentication-ext.js +1 -1
  257. package/lib/plugin/authentication-ext.js.map +1 -1
  258. package/lib/plugin/command-registry.js +1 -2
  259. package/lib/plugin/command-registry.js.map +1 -1
  260. package/lib/plugin/comments.js +2 -3
  261. package/lib/plugin/comments.js.map +1 -1
  262. package/lib/plugin/custom-editors.js +1 -1
  263. package/lib/plugin/custom-editors.js.map +1 -1
  264. package/lib/plugin/debug/debug-ext.js +8 -14
  265. package/lib/plugin/debug/debug-ext.js.map +1 -1
  266. package/lib/plugin/decorations.js +3 -3
  267. package/lib/plugin/decorations.js.map +1 -1
  268. package/lib/plugin/document-data.js +4 -4
  269. package/lib/plugin/document-data.js.map +1 -1
  270. package/lib/plugin/documents.js +3 -3
  271. package/lib/plugin/documents.js.map +1 -1
  272. package/lib/plugin/file-system-event-service-ext-impl.js +2 -3
  273. package/lib/plugin/file-system-event-service-ext-impl.js.map +1 -1
  274. package/lib/plugin/file-system-watcher.spec.js +6 -8
  275. package/lib/plugin/file-system-watcher.spec.js.map +1 -1
  276. package/lib/plugin/languages/call-hierarchy.js +1 -2
  277. package/lib/plugin/languages/call-hierarchy.js.map +1 -1
  278. package/lib/plugin/languages/code-action.js +1 -1
  279. package/lib/plugin/languages/code-action.js.map +1 -1
  280. package/lib/plugin/languages/completion.js +4 -6
  281. package/lib/plugin/languages/completion.js.map +1 -1
  282. package/lib/plugin/languages/diagnostics.js +5 -5
  283. package/lib/plugin/languages/diagnostics.js.map +1 -1
  284. package/lib/plugin/languages/hover.d.ts +9 -3
  285. package/lib/plugin/languages/hover.d.ts.map +1 -1
  286. package/lib/plugin/languages/hover.js +42 -13
  287. package/lib/plugin/languages/hover.js.map +1 -1
  288. package/lib/plugin/languages/inlay-hints.js +1 -2
  289. package/lib/plugin/languages/inlay-hints.js.map +1 -1
  290. package/lib/plugin/languages/inline-completion.js +2 -2
  291. package/lib/plugin/languages/inline-completion.js.map +1 -1
  292. package/lib/plugin/languages/lens.js +1 -1
  293. package/lib/plugin/languages/lens.js.map +1 -1
  294. package/lib/plugin/languages/signature.js +2 -4
  295. package/lib/plugin/languages/signature.js.map +1 -1
  296. package/lib/plugin/languages/type-hierarchy.js +1 -2
  297. package/lib/plugin/languages/type-hierarchy.js.map +1 -1
  298. package/lib/plugin/languages/util.js +2 -3
  299. package/lib/plugin/languages/util.js.map +1 -1
  300. package/lib/plugin/languages-utils.js +4 -5
  301. package/lib/plugin/languages-utils.js.map +1 -1
  302. package/lib/plugin/languages.d.ts +6 -3
  303. package/lib/plugin/languages.d.ts.map +1 -1
  304. package/lib/plugin/languages.js +13 -12
  305. package/lib/plugin/languages.js.map +1 -1
  306. package/lib/plugin/localization-ext.js +6 -10
  307. package/lib/plugin/localization-ext.js.map +1 -1
  308. package/lib/plugin/logger.js +1 -2
  309. package/lib/plugin/logger.js.map +1 -1
  310. package/lib/plugin/markdown-string.js +15 -17
  311. package/lib/plugin/markdown-string.js.map +1 -1
  312. package/lib/plugin/notebook/notebook-document.js +5 -8
  313. package/lib/plugin/notebook/notebook-document.js.map +1 -1
  314. package/lib/plugin/notebook/notebook-editor.js +1 -1
  315. package/lib/plugin/notebook/notebook-editor.js.map +1 -1
  316. package/lib/plugin/notebook/notebook-kernels.js +15 -21
  317. package/lib/plugin/notebook/notebook-kernels.js.map +1 -1
  318. package/lib/plugin/notebook/notebook-renderers.js +3 -4
  319. package/lib/plugin/notebook/notebook-renderers.js.map +1 -1
  320. package/lib/plugin/notebook/notebooks.js +14 -18
  321. package/lib/plugin/notebook/notebooks.js.map +1 -1
  322. package/lib/plugin/path.js +2 -3
  323. package/lib/plugin/path.js.map +1 -1
  324. package/lib/plugin/plugin-context.d.ts.map +1 -1
  325. package/lib/plugin/plugin-context.js +20 -20
  326. package/lib/plugin/plugin-context.js.map +1 -1
  327. package/lib/plugin/plugin-manager.d.ts.map +1 -1
  328. package/lib/plugin/plugin-manager.js +1 -2
  329. package/lib/plugin/plugin-manager.js.map +1 -1
  330. package/lib/plugin/preference-registry.js +11 -15
  331. package/lib/plugin/preference-registry.js.map +1 -1
  332. package/lib/plugin/preference-registry.spec.js +2 -2
  333. package/lib/plugin/preference-registry.spec.js.map +1 -1
  334. package/lib/plugin/prefix-sum-computer.js +2 -2
  335. package/lib/plugin/prefix-sum-computer.js.map +1 -1
  336. package/lib/plugin/quick-open.d.ts +3 -3
  337. package/lib/plugin/quick-open.d.ts.map +1 -1
  338. package/lib/plugin/quick-open.js +23 -29
  339. package/lib/plugin/quick-open.js.map +1 -1
  340. package/lib/plugin/scm.d.ts.map +1 -1
  341. package/lib/plugin/scm.js +35 -10
  342. package/lib/plugin/scm.js.map +1 -1
  343. package/lib/plugin/status-bar/status-bar-item.d.ts.map +1 -1
  344. package/lib/plugin/status-bar/status-bar-item.js +13 -12
  345. package/lib/plugin/status-bar/status-bar-item.js.map +1 -1
  346. package/lib/plugin/status-bar-message-registry.js +1 -2
  347. package/lib/plugin/status-bar-message-registry.js.map +1 -1
  348. package/lib/plugin/tabs.js +3 -6
  349. package/lib/plugin/tabs.js.map +1 -1
  350. package/lib/plugin/tasks/task-provider.js +1 -1
  351. package/lib/plugin/tasks/task-provider.js.map +1 -1
  352. package/lib/plugin/tasks/tasks.js +1 -2
  353. package/lib/plugin/tasks/tasks.js.map +1 -1
  354. package/lib/plugin/telemetry-ext.js +6 -9
  355. package/lib/plugin/telemetry-ext.js.map +1 -1
  356. package/lib/plugin/terminal-ext.js +11 -12
  357. package/lib/plugin/terminal-ext.js.map +1 -1
  358. package/lib/plugin/test-item.js +1 -2
  359. package/lib/plugin/test-item.js.map +1 -1
  360. package/lib/plugin/tests.js +9 -15
  361. package/lib/plugin/tests.js.map +1 -1
  362. package/lib/plugin/text-editors.js +2 -2
  363. package/lib/plugin/text-editors.js.map +1 -1
  364. package/lib/plugin/timeline.js +8 -10
  365. package/lib/plugin/timeline.js.map +1 -1
  366. package/lib/plugin/tree/tree-views.js +19 -28
  367. package/lib/plugin/tree/tree-views.js.map +1 -1
  368. package/lib/plugin/type-converters.d.ts +1 -1
  369. package/lib/plugin/type-converters.d.ts.map +1 -1
  370. package/lib/plugin/type-converters.js +107 -114
  371. package/lib/plugin/type-converters.js.map +1 -1
  372. package/lib/plugin/types-impl.d.ts +11 -2
  373. package/lib/plugin/types-impl.d.ts.map +1 -1
  374. package/lib/plugin/types-impl.js +70 -51
  375. package/lib/plugin/types-impl.js.map +1 -1
  376. package/lib/plugin/webview-views.js +1 -1
  377. package/lib/plugin/webview-views.js.map +1 -1
  378. package/lib/plugin/webviews.d.ts +2 -8
  379. package/lib/plugin/webviews.d.ts.map +1 -1
  380. package/lib/plugin/webviews.js +9 -7
  381. package/lib/plugin/webviews.js.map +1 -1
  382. package/lib/plugin/word-helper.js +3 -3
  383. package/lib/plugin/word-helper.js.map +1 -1
  384. package/lib/plugin/workspace.d.ts +2 -0
  385. package/lib/plugin/workspace.d.ts.map +1 -1
  386. package/lib/plugin/workspace.js +12 -4
  387. package/lib/plugin/workspace.js.map +1 -1
  388. package/lib/plugin/workspace.spec.d.ts +2 -0
  389. package/lib/plugin/workspace.spec.d.ts.map +1 -0
  390. package/lib/plugin/workspace.spec.js +127 -0
  391. package/lib/plugin/workspace.spec.js.map +1 -0
  392. package/package.json +30 -30
  393. package/src/common/plugin-api-rpc-model.ts +16 -0
  394. package/src/common/plugin-api-rpc.ts +21 -3
  395. package/src/main/browser/languages-main.ts +10 -3
  396. package/src/main/browser/notebooks/renderers/output-webview-internal.ts +1 -1
  397. package/src/main/browser/preference-registry-main.ts +2 -1
  398. package/src/main/browser/scm-main.ts +46 -2
  399. package/src/main/browser/webview/webview-resource-cache.ts +1 -1
  400. package/src/main/browser/webview/webview.ts +10 -7
  401. package/src/main/browser/webviews-main.ts +2 -2
  402. package/src/main/browser/workspace-main.ts +7 -0
  403. package/src/plugin/languages/hover.ts +53 -15
  404. package/src/plugin/languages.ts +10 -4
  405. package/src/plugin/plugin-context.ts +7 -0
  406. package/src/plugin/quick-open.ts +11 -10
  407. package/src/plugin/scm.ts +37 -1
  408. package/src/plugin/status-bar/status-bar-item.ts +4 -1
  409. package/src/plugin/type-converters.ts +8 -4
  410. package/src/plugin/types-impl.ts +23 -0
  411. package/src/plugin/webviews.ts +9 -5
  412. package/src/plugin/workspace.spec.ts +154 -0
  413. package/src/plugin/workspace.ts +12 -2
@@ -15,9 +15,85 @@
15
15
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
16
  // *****************************************************************************
17
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;
18
+ exports.TestItem = exports.TestMessageStackFrame = exports.TestMessage = exports.NotebookKernelSourceAction = exports.NotebookRange = 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.ViewColumn = exports.ThemableDecorationAttachmentRenderOptions = exports.ThemableDecorationRenderOptions = exports.DecorationRangeBehavior = exports.DecorationRenderOptions = exports.SymbolKind = exports.SignatureHelp = exports.SignatureInformation = exports.ParameterInformation = exports.DocumentLink = void 0;
19
+ exports.toViewColumn = toViewColumn;
20
+ exports.fromViewColumn = fromViewColumn;
21
+ exports.toWebviewPanelShowOptions = toWebviewPanelShowOptions;
22
+ exports.toSelection = toSelection;
23
+ exports.fromSelection = fromSelection;
24
+ exports.toRange = toRange;
25
+ exports.fromRange = fromRange;
26
+ exports.fromPosition = fromPosition;
27
+ exports.toPosition = toPosition;
28
+ exports.isDecorationOptionsArr = isDecorationOptionsArr;
29
+ exports.fromRangeOrRangeWithMessage = fromRangeOrRangeWithMessage;
30
+ exports.fromManyMarkdown = fromManyMarkdown;
31
+ exports.fromMarkdown = fromMarkdown;
32
+ exports.fromMarkdownOrString = fromMarkdownOrString;
33
+ exports.toMarkdown = toMarkdown;
34
+ exports.fromDocumentSelector = fromDocumentSelector;
35
+ exports.fromGlobPattern = fromGlobPattern;
36
+ exports.fromCompletionItemKind = fromCompletionItemKind;
37
+ exports.toCompletionItemKind = toCompletionItemKind;
38
+ exports.fromTextEdit = fromTextEdit;
39
+ exports.convertDiagnosticToMarkerData = convertDiagnosticToMarkerData;
40
+ exports.convertCode = convertCode;
41
+ exports.fromHover = fromHover;
42
+ exports.fromEvaluatableExpression = fromEvaluatableExpression;
43
+ exports.fromInlineValue = fromInlineValue;
44
+ exports.toInlineValueContext = toInlineValueContext;
45
+ exports.fromLocation = fromLocation;
46
+ exports.fromLocationToLanguageServerLocation = fromLocationToLanguageServerLocation;
47
+ exports.fromTextDocumentShowOptions = fromTextDocumentShowOptions;
48
+ exports.fromDefinitionLink = fromDefinitionLink;
49
+ exports.fromDocumentHighlightKind = fromDocumentHighlightKind;
50
+ exports.fromDocumentHighlight = fromDocumentHighlight;
51
+ exports.fromWorkspaceEdit = fromWorkspaceEdit;
52
+ exports.toCodeActionTriggerKind = toCodeActionTriggerKind;
53
+ exports.fromDocumentSymbol = fromDocumentSymbol;
54
+ exports.toDocumentSymbol = toDocumentSymbol;
55
+ exports.fromSymbolTag = fromSymbolTag;
56
+ exports.toSymbolTag = toSymbolTag;
57
+ exports.toMergedSymbol = toMergedSymbol;
58
+ exports.isModelLocation = isModelLocation;
59
+ exports.isModelRange = isModelRange;
60
+ exports.isUriComponents = isUriComponents;
61
+ exports.isModelCallHierarchyItem = isModelCallHierarchyItem;
62
+ exports.isModelCallHierarchyIncomingCall = isModelCallHierarchyIncomingCall;
63
+ exports.isModelCallHierarchyOutgoingCall = isModelCallHierarchyOutgoingCall;
64
+ exports.toLocation = toLocation;
65
+ exports.fromHierarchyItem = fromHierarchyItem;
66
+ exports.fromCallHierarchyItem = fromCallHierarchyItem;
67
+ exports.toCallHierarchyItem = toCallHierarchyItem;
68
+ exports.toCallHierarchyIncomingCall = toCallHierarchyIncomingCall;
69
+ exports.toCallHierarchyOutgoingCall = toCallHierarchyOutgoingCall;
70
+ exports.isModelTypeHierarchyItem = isModelTypeHierarchyItem;
71
+ exports.fromTypeHierarchyItem = fromTypeHierarchyItem;
72
+ exports.toTypeHierarchyItem = toTypeHierarchyItem;
73
+ exports.toWorkspaceFolder = toWorkspaceFolder;
74
+ exports.fromTask = fromTask;
75
+ exports.toTask = toTask;
76
+ exports.fromProcessExecution = fromProcessExecution;
77
+ exports.fromShellExecution = fromShellExecution;
78
+ exports.fromCustomExecution = fromCustomExecution;
79
+ exports.getProcessExecution = getProcessExecution;
80
+ exports.getShellExecution = getShellExecution;
81
+ exports.getCustomExecution = getCustomExecution;
82
+ exports.getShellArgs = getShellArgs;
83
+ exports.getShellExecutionOptions = getShellExecutionOptions;
84
+ exports.fromSymbolInformation = fromSymbolInformation;
85
+ exports.toSymbolInformation = toSymbolInformation;
86
+ exports.fromSelectionRange = fromSelectionRange;
87
+ exports.fromFoldingRange = fromFoldingRange;
88
+ exports.fromFoldingRangeKind = fromFoldingRangeKind;
89
+ exports.fromColor = fromColor;
90
+ exports.toColor = toColor;
91
+ exports.fromColorPresentation = fromColorPresentation;
92
+ exports.convertIconPath = convertIconPath;
93
+ exports.convertQuickInputButton = convertQuickInputButton;
94
+ exports.convertToTransferQuickPickItems = convertToTransferQuickPickItems;
95
+ exports.pathOrURIToURI = pathOrURIToURI;
96
+ exports.pluginToPluginInfo = pluginToPluginInfo;
21
97
  const lstypes = require("@theia/core/shared/vscode-languageserver-protocol");
22
98
  const types_impl_1 = require("./types-impl");
23
99
  const rpc = require("../common/plugin-api-rpc");
@@ -67,7 +143,6 @@ function toViewColumn(ep) {
67
143
  }
68
144
  return undefined;
69
145
  }
70
- exports.toViewColumn = toViewColumn;
71
146
  function fromViewColumn(column) {
72
147
  if (typeof column === 'number' && column >= types.ViewColumn.One) {
73
148
  return column - 1;
@@ -77,7 +152,6 @@ function fromViewColumn(column) {
77
152
  }
78
153
  return ACTIVE_GROUP;
79
154
  }
80
- exports.fromViewColumn = fromViewColumn;
81
155
  function toWebviewPanelShowOptions(options) {
82
156
  if (typeof options === 'object') {
83
157
  const showOptions = options;
@@ -93,14 +167,12 @@ function toWebviewPanelShowOptions(options) {
93
167
  preserveFocus: false
94
168
  };
95
169
  }
96
- exports.toWebviewPanelShowOptions = toWebviewPanelShowOptions;
97
170
  function toSelection(selection) {
98
171
  const { selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn } = selection;
99
172
  const start = new types.Position(selectionStartLineNumber - 1, selectionStartColumn - 1);
100
173
  const end = new types.Position(positionLineNumber - 1, positionColumn - 1);
101
174
  return new types.Selection(start, end);
102
175
  }
103
- exports.toSelection = toSelection;
104
176
  function fromSelection(selection) {
105
177
  const { active, anchor } = selection;
106
178
  return {
@@ -110,12 +182,10 @@ function fromSelection(selection) {
110
182
  positionColumn: active.character + 1
111
183
  };
112
184
  }
113
- exports.fromSelection = fromSelection;
114
185
  function toRange(range) {
115
186
  const { startLineNumber, startColumn, endLineNumber, endColumn } = range;
116
187
  return new types.Range(startLineNumber - 1, startColumn - 1, endLineNumber - 1, endColumn - 1);
117
188
  }
118
- exports.toRange = toRange;
119
189
  function fromRange(range) {
120
190
  if (!range) {
121
191
  return undefined;
@@ -128,21 +198,18 @@ function fromRange(range) {
128
198
  endColumn: end.character + 1
129
199
  };
130
200
  }
131
- exports.fromRange = fromRange;
132
201
  function fromPosition(position) {
133
202
  if (!position) {
134
203
  return undefined;
135
204
  }
136
205
  return { lineNumber: position.line + 1, column: position.character + 1 };
137
206
  }
138
- exports.fromPosition = fromPosition;
139
207
  function toPosition(position) {
140
208
  if (!position) {
141
209
  return undefined;
142
210
  }
143
211
  return new types.Position(position.lineNumber - 1, position.column - 1);
144
212
  }
145
- exports.toPosition = toPosition;
146
213
  function isDecorationOptions(arg) {
147
214
  return (0, common_1.isObject)(arg) && typeof arg.range !== 'undefined';
148
215
  }
@@ -152,7 +219,6 @@ function isDecorationOptionsArr(something) {
152
219
  }
153
220
  return isDecorationOptions(something[0]) ? true : false;
154
221
  }
155
- exports.isDecorationOptionsArr = isDecorationOptionsArr;
156
222
  function fromRangeOrRangeWithMessage(ranges) {
157
223
  if (isDecorationOptionsArr(ranges)) {
158
224
  return ranges.map(r => {
@@ -178,11 +244,9 @@ function fromRangeOrRangeWithMessage(ranges) {
178
244
  return ranges.map(r => ({ range: fromRange(r) }));
179
245
  }
180
246
  }
181
- exports.fromRangeOrRangeWithMessage = fromRangeOrRangeWithMessage;
182
247
  function fromManyMarkdown(markup) {
183
248
  return markup.map(fromMarkdown);
184
249
  }
185
- exports.fromManyMarkdown = fromManyMarkdown;
186
250
  function isCodeblock(arg) {
187
251
  return (0, common_1.isObject)(arg)
188
252
  && typeof arg.language === 'string'
@@ -206,7 +270,6 @@ function fromMarkdown(markup) {
206
270
  return { value: '' };
207
271
  }
208
272
  }
209
- exports.fromMarkdown = fromMarkdown;
210
273
  function fromMarkdownOrString(value) {
211
274
  if (value === undefined) {
212
275
  return undefined;
@@ -218,7 +281,6 @@ function fromMarkdownOrString(value) {
218
281
  return fromMarkdown(value);
219
282
  }
220
283
  }
221
- exports.fromMarkdownOrString = fromMarkdownOrString;
222
284
  function toMarkdown(value) {
223
285
  const implemented = new markdown_string_1.MarkdownString(value.value, value.supportThemeIcons);
224
286
  implemented.isTrusted = value.isTrusted;
@@ -226,7 +288,6 @@ function toMarkdown(value) {
226
288
  implemented.baseUri = value.baseUri && types_impl_1.URI.revive(implemented.baseUri);
227
289
  return implemented;
228
290
  }
229
- exports.toMarkdown = toMarkdown;
230
291
  function fromDocumentSelector(selector) {
231
292
  if (!selector) {
232
293
  return undefined;
@@ -245,7 +306,6 @@ function fromDocumentSelector(selector) {
245
306
  };
246
307
  }
247
308
  }
248
- exports.fromDocumentSelector = fromDocumentSelector;
249
309
  function fromGlobPattern(pattern) {
250
310
  if (typeof pattern === 'string') {
251
311
  return pattern;
@@ -255,7 +315,6 @@ function fromGlobPattern(pattern) {
255
315
  }
256
316
  return pattern;
257
317
  }
258
- exports.fromGlobPattern = fromGlobPattern;
259
318
  function isRelativePattern(obj) {
260
319
  const rp = obj;
261
320
  return rp && typeof rp.baseUri === 'string' && typeof rp.pattern === 'string';
@@ -292,7 +351,6 @@ function fromCompletionItemKind(kind) {
292
351
  }
293
352
  return model.CompletionItemKind.Property;
294
353
  }
295
- exports.fromCompletionItemKind = fromCompletionItemKind;
296
354
  function toCompletionItemKind(kind) {
297
355
  switch (kind) {
298
356
  case model.CompletionItemKind.Method: return types.CompletionItemKind.Method;
@@ -325,14 +383,12 @@ function toCompletionItemKind(kind) {
325
383
  }
326
384
  return types.CompletionItemKind.Property;
327
385
  }
328
- exports.toCompletionItemKind = toCompletionItemKind;
329
386
  function fromTextEdit(edit) {
330
387
  return {
331
388
  text: edit.newText,
332
389
  range: fromRange(edit.range)
333
390
  };
334
391
  }
335
- exports.fromTextEdit = fromTextEdit;
336
392
  function fromSnippetTextEdit(edit) {
337
393
  return {
338
394
  text: edit.snippet.value,
@@ -356,7 +412,6 @@ function convertDiagnosticToMarkerData(diagnostic) {
356
412
  data: diagnostic.data,
357
413
  };
358
414
  }
359
- exports.convertDiagnosticToMarkerData = convertDiagnosticToMarkerData;
360
415
  function convertCode(code) {
361
416
  if (typeof code === 'number') {
362
417
  return String(code);
@@ -369,7 +424,6 @@ function convertCode(code) {
369
424
  }
370
425
  ;
371
426
  }
372
- exports.convertCode = convertCode;
373
427
  function convertSeverity(severity) {
374
428
  switch (severity) {
375
429
  case types.DiagnosticSeverity.Error: return types.MarkerSeverity.Error;
@@ -413,19 +467,20 @@ function convertTags(tags) {
413
467
  return markerTags;
414
468
  }
415
469
  function fromHover(hover) {
416
- return {
470
+ const modelHover = {
417
471
  range: fromRange(hover.range),
418
- contents: fromManyMarkdown(hover.contents)
472
+ contents: fromManyMarkdown(hover.contents),
473
+ canIncreaseVerbosity: hover.canIncreaseVerbosity,
474
+ canDecreaseVerbosity: hover.canDecreaseVerbosity,
419
475
  };
476
+ return modelHover;
420
477
  }
421
- exports.fromHover = fromHover;
422
478
  function fromEvaluatableExpression(evaluatableExpression) {
423
479
  return {
424
480
  range: fromRange(evaluatableExpression.range),
425
481
  expression: evaluatableExpression.expression
426
482
  };
427
483
  }
428
- exports.fromEvaluatableExpression = fromEvaluatableExpression;
429
484
  function fromInlineValue(inlineValue) {
430
485
  if (inlineValue instanceof types_impl_1.InlineValueText) {
431
486
  return {
@@ -453,7 +508,6 @@ function fromInlineValue(inlineValue) {
453
508
  throw new Error('Unknown InlineValue type');
454
509
  }
455
510
  }
456
- exports.fromInlineValue = fromInlineValue;
457
511
  function toInlineValueContext(inlineValueContext) {
458
512
  const ivLocation = inlineValueContext.stoppedLocation;
459
513
  return {
@@ -461,7 +515,6 @@ function toInlineValueContext(inlineValueContext) {
461
515
  stoppedLocation: new types.Range(ivLocation.startLineNumber, ivLocation.startColumn, ivLocation.endLineNumber, ivLocation.endColumn)
462
516
  };
463
517
  }
464
- exports.toInlineValueContext = toInlineValueContext;
465
518
  function fromLocation(location) {
466
519
  if (!location) {
467
520
  return undefined;
@@ -471,7 +524,6 @@ function fromLocation(location) {
471
524
  range: fromRange(location.range)
472
525
  };
473
526
  }
474
- exports.fromLocation = fromLocation;
475
527
  function fromLocationToLanguageServerLocation(location) {
476
528
  if (!location) {
477
529
  return undefined;
@@ -481,7 +533,6 @@ function fromLocationToLanguageServerLocation(location) {
481
533
  range: location.range
482
534
  };
483
535
  }
484
- exports.fromLocationToLanguageServerLocation = fromLocationToLanguageServerLocation;
485
536
  function fromTextDocumentShowOptions(options) {
486
537
  if (options.selection) {
487
538
  return {
@@ -491,7 +542,6 @@ function fromTextDocumentShowOptions(options) {
491
542
  }
492
543
  return options;
493
544
  }
494
- exports.fromTextDocumentShowOptions = fromTextDocumentShowOptions;
495
545
  function fromDefinitionLink(definitionLink) {
496
546
  return {
497
547
  uri: definitionLink.targetUri,
@@ -500,7 +550,6 @@ function fromDefinitionLink(definitionLink) {
500
550
  targetSelectionRange: definitionLink.targetSelectionRange ? fromRange(definitionLink.targetSelectionRange) : undefined
501
551
  };
502
552
  }
503
- exports.fromDefinitionLink = fromDefinitionLink;
504
553
  var DocumentLink;
505
554
  (function (DocumentLink) {
506
555
  function from(link) {
@@ -533,14 +582,12 @@ function fromDocumentHighlightKind(kind) {
533
582
  }
534
583
  return model.DocumentHighlightKind.Text;
535
584
  }
536
- exports.fromDocumentHighlightKind = fromDocumentHighlightKind;
537
585
  function fromDocumentHighlight(documentHighlight) {
538
586
  return {
539
587
  range: fromRange(documentHighlight.range),
540
588
  kind: fromDocumentHighlightKind(documentHighlight.kind)
541
589
  };
542
590
  }
543
- exports.fromDocumentHighlight = fromDocumentHighlight;
544
591
  var ParameterInformation;
545
592
  (function (ParameterInformation) {
546
593
  function from(info) {
@@ -605,27 +652,27 @@ function fromWorkspaceEdit(value, documents) {
605
652
  edits: []
606
653
  };
607
654
  for (const entry of value._allEntries()) {
608
- if ((entry === null || entry === void 0 ? void 0 : entry._type) === 2 /* types.FileEditType.Text */) {
655
+ if (entry?._type === 2 /* types.FileEditType.Text */) {
609
656
  const doc = documents ? documents.getDocument(entry.uri.toString()) : undefined;
610
657
  const workspaceTextEditDto = {
611
658
  resource: entry.uri,
612
- modelVersionId: doc === null || doc === void 0 ? void 0 : doc.version,
659
+ modelVersionId: doc?.version,
613
660
  textEdit: fromTextEdit(entry.edit),
614
661
  metadata: entry.metadata
615
662
  };
616
663
  result.edits.push(workspaceTextEditDto);
617
664
  }
618
- else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 6 /* types.FileEditType.Snippet */) {
665
+ else if (entry?._type === 6 /* types.FileEditType.Snippet */) {
619
666
  const doc = documents ? documents.getDocument(entry.uri.toString()) : undefined;
620
667
  const workspaceTextEditDto = {
621
668
  resource: entry.uri,
622
- modelVersionId: doc === null || doc === void 0 ? void 0 : doc.version,
669
+ modelVersionId: doc?.version,
623
670
  textEdit: fromSnippetTextEdit(entry.edit),
624
671
  metadata: entry.metadata
625
672
  };
626
673
  result.edits.push(workspaceTextEditDto);
627
674
  }
628
- else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 1 /* types.FileEditType.File */) {
675
+ else if (entry?._type === 1 /* types.FileEditType.File */) {
629
676
  const workspaceFileEditDto = {
630
677
  oldResource: entry.from,
631
678
  newResource: entry.to,
@@ -634,7 +681,7 @@ function fromWorkspaceEdit(value, documents) {
634
681
  };
635
682
  result.edits.push(workspaceFileEditDto);
636
683
  }
637
- else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 3 /* types.FileEditType.Cell */) {
684
+ else if (entry?._type === 3 /* types.FileEditType.Cell */) {
638
685
  if (entry.edit) {
639
686
  result.edits.push({
640
687
  metadata: entry.metadata,
@@ -643,7 +690,7 @@ function fromWorkspaceEdit(value, documents) {
643
690
  });
644
691
  }
645
692
  }
646
- else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 5 /* types.FileEditType.CellReplace */) {
693
+ else if (entry?._type === 5 /* types.FileEditType.CellReplace */) {
647
694
  result.edits.push({
648
695
  metadata: entry.metadata,
649
696
  resource: entry.uri,
@@ -658,7 +705,6 @@ function fromWorkspaceEdit(value, documents) {
658
705
  }
659
706
  return result;
660
707
  }
661
- exports.fromWorkspaceEdit = fromWorkspaceEdit;
662
708
  var SymbolKind;
663
709
  (function (SymbolKind) {
664
710
  const fromMapping = Object.create(null);
@@ -728,7 +774,6 @@ function toCodeActionTriggerKind(triggerKind) {
728
774
  return types.CodeActionTriggerKind.Automatic;
729
775
  }
730
776
  }
731
- exports.toCodeActionTriggerKind = toCodeActionTriggerKind;
732
777
  function fromDocumentSymbol(info) {
733
778
  const result = {
734
779
  name: info.name,
@@ -743,7 +788,6 @@ function fromDocumentSymbol(info) {
743
788
  }
744
789
  return result;
745
790
  }
746
- exports.fromDocumentSymbol = fromDocumentSymbol;
747
791
  function toDocumentSymbol(symbol) {
748
792
  return {
749
793
  name: symbol.name,
@@ -755,46 +799,40 @@ function toDocumentSymbol(symbol) {
755
799
  kind: SymbolKind.toSymbolKind(symbol.kind)
756
800
  };
757
801
  }
758
- exports.toDocumentSymbol = toDocumentSymbol;
759
802
  function fromSymbolTag(kind) {
760
803
  switch (kind) {
761
804
  case types.SymbolTag.Deprecated: return model.SymbolTag.Deprecated;
762
805
  }
763
806
  }
764
- exports.fromSymbolTag = fromSymbolTag;
765
807
  function toSymbolTag(kind) {
766
808
  switch (kind) {
767
809
  case model.SymbolTag.Deprecated: return types.SymbolTag.Deprecated;
768
810
  }
769
811
  }
770
- exports.toSymbolTag = toSymbolTag;
771
812
  /**
772
813
  * Creates a merged symbol of type theia.SymbolInformation & theia.DocumentSymbol.
773
814
  * Is only used as the result type of the `vscode.executeDocumentSymbolProvider` command.
774
815
  */
775
816
  function toMergedSymbol(uri, symbol) {
776
- var _a, _b, _c;
777
817
  const uriValue = types_impl_1.URI.revive(uri);
778
818
  const location = new types.Location(uriValue, toRange(symbol.range));
779
819
  return {
780
820
  name: symbol.name,
781
- containerName: (_a = symbol.containerName) !== null && _a !== void 0 ? _a : '',
821
+ containerName: symbol.containerName ?? '',
782
822
  kind: SymbolKind.toSymbolKind(symbol.kind),
783
823
  tags: [],
784
824
  location,
785
825
  detail: symbol.detail,
786
826
  range: location.range,
787
827
  selectionRange: toRange(symbol.selectionRange),
788
- children: (_c = (_b = symbol.children) === null || _b === void 0 ? void 0 : _b.map(child => toMergedSymbol(uri, child))) !== null && _c !== void 0 ? _c : []
828
+ children: symbol.children?.map(child => toMergedSymbol(uri, child)) ?? []
789
829
  };
790
830
  }
791
- exports.toMergedSymbol = toMergedSymbol;
792
831
  function isModelLocation(arg) {
793
832
  return (0, common_1.isObject)(arg) &&
794
833
  isModelRange(arg.range) &&
795
834
  isUriComponents(arg.uri);
796
835
  }
797
- exports.isModelLocation = isModelLocation;
798
836
  function isModelRange(arg) {
799
837
  return (0, common_1.isObject)(arg) &&
800
838
  typeof arg.startLineNumber === 'number' &&
@@ -802,7 +840,6 @@ function isModelRange(arg) {
802
840
  typeof arg.endLineNumber === 'number' &&
803
841
  typeof arg.endColumn === 'number';
804
842
  }
805
- exports.isModelRange = isModelRange;
806
843
  function isUriComponents(arg) {
807
844
  return (0, common_1.isObject)(arg) &&
808
845
  typeof arg.scheme === 'string' &&
@@ -810,7 +847,6 @@ function isUriComponents(arg) {
810
847
  typeof arg.query === 'string' &&
811
848
  typeof arg.fragment === 'string'));
812
849
  }
813
- exports.isUriComponents = isUriComponents;
814
850
  function isModelCallHierarchyItem(arg) {
815
851
  return (0, common_1.isObject)(arg)
816
852
  && isModelRange(arg.range)
@@ -818,25 +854,21 @@ function isModelCallHierarchyItem(arg) {
818
854
  && isUriComponents(arg.uri)
819
855
  && !!arg.name;
820
856
  }
821
- exports.isModelCallHierarchyItem = isModelCallHierarchyItem;
822
857
  function isModelCallHierarchyIncomingCall(arg) {
823
858
  return (0, common_1.isObject)(arg) &&
824
859
  'from' in arg &&
825
860
  'fromRanges' in arg &&
826
861
  isModelCallHierarchyItem(arg.from);
827
862
  }
828
- exports.isModelCallHierarchyIncomingCall = isModelCallHierarchyIncomingCall;
829
863
  function isModelCallHierarchyOutgoingCall(arg) {
830
864
  return (0, common_1.isObject)(arg) &&
831
865
  'to' in arg &&
832
866
  'fromRanges' in arg &&
833
867
  isModelCallHierarchyItem(arg.to);
834
868
  }
835
- exports.isModelCallHierarchyOutgoingCall = isModelCallHierarchyOutgoingCall;
836
869
  function toLocation(value) {
837
870
  return new types.Location(types_impl_1.URI.revive(value.uri), toRange(value.range));
838
871
  }
839
- exports.toLocation = toLocation;
840
872
  function fromHierarchyItem(item) {
841
873
  return {
842
874
  kind: SymbolKind.fromSymbolKind(item.kind),
@@ -850,11 +882,9 @@ function fromHierarchyItem(item) {
850
882
  _sessionId: item._sessionId,
851
883
  };
852
884
  }
853
- exports.fromHierarchyItem = fromHierarchyItem;
854
885
  function fromCallHierarchyItem(item) {
855
886
  return fromHierarchyItem(item);
856
887
  }
857
- exports.fromCallHierarchyItem = fromCallHierarchyItem;
858
888
  function toCallHierarchyItem(value) {
859
889
  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));
860
890
  item.tags = value.tags;
@@ -862,15 +892,12 @@ function toCallHierarchyItem(value) {
862
892
  item._sessionId = value._sessionId;
863
893
  return item;
864
894
  }
865
- exports.toCallHierarchyItem = toCallHierarchyItem;
866
895
  function toCallHierarchyIncomingCall(value) {
867
896
  return new types.CallHierarchyIncomingCall(toCallHierarchyItem(value.from), value.fromRanges && value.fromRanges.map(toRange));
868
897
  }
869
- exports.toCallHierarchyIncomingCall = toCallHierarchyIncomingCall;
870
898
  function toCallHierarchyOutgoingCall(value) {
871
899
  return new types.CallHierarchyOutgoingCall(toCallHierarchyItem(value.to), value.fromRanges && value.fromRanges.map(toRange));
872
900
  }
873
- exports.toCallHierarchyOutgoingCall = toCallHierarchyOutgoingCall;
874
901
  function isModelTypeHierarchyItem(arg) {
875
902
  return (0, common_1.isObject)(arg)
876
903
  && isModelRange(arg.range)
@@ -878,11 +905,9 @@ function isModelTypeHierarchyItem(arg) {
878
905
  && isUriComponents(arg.uri)
879
906
  && !!arg.name;
880
907
  }
881
- exports.isModelTypeHierarchyItem = isModelTypeHierarchyItem;
882
908
  function fromTypeHierarchyItem(item) {
883
909
  return fromHierarchyItem(item);
884
910
  }
885
- exports.fromTypeHierarchyItem = fromTypeHierarchyItem;
886
911
  function toTypeHierarchyItem(value) {
887
912
  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));
888
913
  item.tags = value.tags;
@@ -890,7 +915,6 @@ function toTypeHierarchyItem(value) {
890
915
  item._sessionId = value._sessionId;
891
916
  return item;
892
917
  }
893
- exports.toTypeHierarchyItem = toTypeHierarchyItem;
894
918
  function toWorkspaceFolder(folder) {
895
919
  return {
896
920
  uri: types_impl_1.URI.revive(folder.uri),
@@ -898,7 +922,6 @@ function toWorkspaceFolder(folder) {
898
922
  index: folder.index
899
923
  };
900
924
  }
901
- exports.toWorkspaceFolder = toWorkspaceFolder;
902
925
  function fromTask(task) {
903
926
  if (!task) {
904
927
  return undefined;
@@ -957,7 +980,6 @@ function fromTask(task) {
957
980
  }
958
981
  return taskDto;
959
982
  }
960
- exports.fromTask = fromTask;
961
983
  function toTask(taskDto) {
962
984
  if (!taskDto) {
963
985
  throw new Error('Task should be provided for converting');
@@ -966,7 +988,7 @@ function toTask(taskDto) {
966
988
  const result = {};
967
989
  result.name = label;
968
990
  result.source = source;
969
- result.runOptions = runOptions !== null && runOptions !== void 0 ? runOptions : {};
991
+ result.runOptions = runOptions ?? {};
970
992
  if (detail) {
971
993
  result.detail = detail;
972
994
  }
@@ -1017,7 +1039,6 @@ function toTask(taskDto) {
1017
1039
  }
1018
1040
  return result;
1019
1041
  }
1020
- exports.toTask = toTask;
1021
1042
  function fromProcessExecution(execution, taskDto) {
1022
1043
  taskDto.executionType = 'process';
1023
1044
  taskDto.command = execution.process;
@@ -1028,7 +1049,6 @@ function fromProcessExecution(execution, taskDto) {
1028
1049
  }
1029
1050
  return taskDto;
1030
1051
  }
1031
- exports.fromProcessExecution = fromProcessExecution;
1032
1052
  function fromShellExecution(execution, taskDto) {
1033
1053
  taskDto.executionType = 'shell';
1034
1054
  const options = execution.options;
@@ -1049,7 +1069,6 @@ function fromShellExecution(execution, taskDto) {
1049
1069
  throw new Error('Command is undefined');
1050
1070
  }
1051
1071
  }
1052
- exports.fromShellExecution = fromShellExecution;
1053
1072
  function fromCustomExecution(execution, taskDto) {
1054
1073
  taskDto.executionType = 'customExecution';
1055
1074
  const callback = execution.callback;
@@ -1061,22 +1080,18 @@ function fromCustomExecution(execution, taskDto) {
1061
1080
  throw new Error('Converting CustomExecution callback is not implemented');
1062
1081
  }
1063
1082
  }
1064
- exports.fromCustomExecution = fromCustomExecution;
1065
1083
  function getProcessExecution(taskDto) {
1066
1084
  return new types.ProcessExecution(taskDto.command, taskDto.args || [], taskDto.options || {});
1067
1085
  }
1068
- exports.getProcessExecution = getProcessExecution;
1069
1086
  function getShellExecution(taskDto) {
1070
1087
  if (taskDto.command && Array.isArray(taskDto.args) && taskDto.args.length !== 0) {
1071
1088
  return new types.ShellExecution(taskDto.command, taskDto.args, taskDto.options || {});
1072
1089
  }
1073
1090
  return new types.ShellExecution(taskDto.command || taskDto.commandLine, taskDto.options || {});
1074
1091
  }
1075
- exports.getShellExecution = getShellExecution;
1076
1092
  function getCustomExecution(taskDto) {
1077
1093
  return new types.CustomExecution(taskDto.callback);
1078
1094
  }
1079
- exports.getCustomExecution = getCustomExecution;
1080
1095
  function getShellArgs(args) {
1081
1096
  if (!args || args.length === 0) {
1082
1097
  return [];
@@ -1092,7 +1107,6 @@ function getShellArgs(args) {
1092
1107
  });
1093
1108
  return result;
1094
1109
  }
1095
- exports.getShellArgs = getShellArgs;
1096
1110
  function getCommand(command) {
1097
1111
  return typeof command === 'string' ? command : command.value;
1098
1112
  }
@@ -1122,7 +1136,6 @@ function getShellExecutionOptions(options) {
1122
1136
  }
1123
1137
  return result;
1124
1138
  }
1125
- exports.getShellExecutionOptions = getShellExecutionOptions;
1126
1139
  function fromSymbolInformation(symbolInformation) {
1127
1140
  if (!symbolInformation) {
1128
1141
  return undefined;
@@ -1142,7 +1155,6 @@ function fromSymbolInformation(symbolInformation) {
1142
1155
  }
1143
1156
  };
1144
1157
  }
1145
- exports.fromSymbolInformation = fromSymbolInformation;
1146
1158
  function toSymbolInformation(symbolInformation) {
1147
1159
  if (!symbolInformation) {
1148
1160
  return undefined;
@@ -1157,11 +1169,9 @@ function toSymbolInformation(symbolInformation) {
1157
1169
  };
1158
1170
  return theiaSymbolInformation;
1159
1171
  }
1160
- exports.toSymbolInformation = toSymbolInformation;
1161
1172
  function fromSelectionRange(selectionRange) {
1162
1173
  return { range: fromRange(selectionRange.range) };
1163
1174
  }
1164
- exports.fromSelectionRange = fromSelectionRange;
1165
1175
  function fromFoldingRange(foldingRange) {
1166
1176
  const range = {
1167
1177
  start: foldingRange.start + 1,
@@ -1172,7 +1182,6 @@ function fromFoldingRange(foldingRange) {
1172
1182
  }
1173
1183
  return range;
1174
1184
  }
1175
- exports.fromFoldingRange = fromFoldingRange;
1176
1185
  function fromFoldingRangeKind(kind) {
1177
1186
  if (kind) {
1178
1187
  switch (kind) {
@@ -1186,15 +1195,12 @@ function fromFoldingRangeKind(kind) {
1186
1195
  }
1187
1196
  return undefined;
1188
1197
  }
1189
- exports.fromFoldingRangeKind = fromFoldingRangeKind;
1190
1198
  function fromColor(color) {
1191
1199
  return [color.red, color.green, color.blue, color.alpha];
1192
1200
  }
1193
- exports.fromColor = fromColor;
1194
1201
  function toColor(color) {
1195
1202
  return new types.Color(color[0], color[1], color[2], color[3]);
1196
1203
  }
1197
- exports.toColor = toColor;
1198
1204
  function fromColorPresentation(colorPresentation) {
1199
1205
  return {
1200
1206
  label: colorPresentation.label,
@@ -1202,9 +1208,7 @@ function fromColorPresentation(colorPresentation) {
1202
1208
  additionalTextEdits: colorPresentation.additionalTextEdits ? colorPresentation.additionalTextEdits.map(value => fromTextEdit(value)) : undefined
1203
1209
  };
1204
1210
  }
1205
- exports.fromColorPresentation = fromColorPresentation;
1206
1211
  function convertIconPath(iconPath) {
1207
- var _a;
1208
1212
  if (!iconPath) {
1209
1213
  return undefined;
1210
1214
  }
@@ -1214,7 +1218,7 @@ function convertIconPath(iconPath) {
1214
1218
  else if ('dark' in iconPath) {
1215
1219
  return {
1216
1220
  dark: iconPath.dark.toJSON(),
1217
- light: (_a = iconPath.light) === null || _a === void 0 ? void 0 : _a.toJSON()
1221
+ light: iconPath.light?.toJSON()
1218
1222
  };
1219
1223
  }
1220
1224
  else if (types_impl_1.ThemeIcon.is(iconPath)) {
@@ -1227,23 +1231,19 @@ function convertIconPath(iconPath) {
1227
1231
  return undefined;
1228
1232
  }
1229
1233
  }
1230
- exports.convertIconPath = convertIconPath;
1231
1234
  function convertQuickInputButton(plugin, button, index) {
1232
- var _a;
1233
1235
  const iconPath = convertIconPath(button.iconPath);
1234
1236
  if (!iconPath) {
1235
1237
  throw new Error(`Could not convert icon path: '${button.iconPath}'`);
1236
1238
  }
1237
1239
  return {
1238
1240
  handle: index,
1239
- iconUrl: (_a = plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin)) !== null && _a !== void 0 ? _a : types_impl_1.ThemeIcon.get(iconPath),
1241
+ iconUrl: plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin) ?? types_impl_1.ThemeIcon.get(iconPath),
1240
1242
  tooltip: button.tooltip
1241
1243
  };
1242
1244
  }
1243
- exports.convertQuickInputButton = convertQuickInputButton;
1244
1245
  function convertToTransferQuickPickItems(plugin, items) {
1245
1246
  return items.map((item, index) => {
1246
- var _a;
1247
1247
  if (typeof item === 'string') {
1248
1248
  return { kind: 'item', label: item, handle: index };
1249
1249
  }
@@ -1251,22 +1251,22 @@ function convertToTransferQuickPickItems(plugin, items) {
1251
1251
  return { kind: 'separator', label: item.label, handle: index };
1252
1252
  }
1253
1253
  else {
1254
- const { label, description, iconPath, detail, picked, alwaysShow, buttons } = item;
1254
+ const { label, description, iconPath, detail, picked, alwaysShow, buttons, resourceUri } = item;
1255
1255
  return {
1256
1256
  kind: 'item',
1257
1257
  label,
1258
1258
  description,
1259
- iconUrl: (_a = plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin)) !== null && _a !== void 0 ? _a : types_impl_1.ThemeIcon.get(iconPath),
1259
+ iconUrl: plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin) ?? types_impl_1.ThemeIcon.get(iconPath),
1260
1260
  detail,
1261
1261
  picked,
1262
1262
  alwaysShow,
1263
1263
  buttons: buttons ? buttons.map((button, i) => convertQuickInputButton(plugin, button, i)) : undefined,
1264
+ resourceUri: resourceUri?.toJSON(),
1264
1265
  handle: index,
1265
1266
  };
1266
1267
  }
1267
1268
  });
1268
1269
  }
1269
- exports.convertToTransferQuickPickItems = convertToTransferQuickPickItems;
1270
1270
  var DecorationRenderOptions;
1271
1271
  (function (DecorationRenderOptions) {
1272
1272
  function from(options) {
@@ -1410,7 +1410,6 @@ function pathOrURIToURI(value) {
1410
1410
  return value;
1411
1411
  }
1412
1412
  }
1413
- exports.pathOrURIToURI = pathOrURIToURI;
1414
1413
  function pluginToPluginInfo(plugin) {
1415
1414
  return {
1416
1415
  id: plugin.model.id,
@@ -1418,7 +1417,6 @@ function pluginToPluginInfo(plugin) {
1418
1417
  displayName: plugin.model.displayName
1419
1418
  };
1420
1419
  }
1421
- exports.pluginToPluginInfo = pluginToPluginInfo;
1422
1420
  var InlayHintKind;
1423
1421
  (function (InlayHintKind) {
1424
1422
  function from(kind) {
@@ -1469,11 +1467,10 @@ var DataTransfer;
1469
1467
  var NotebookDocumentContentOptions;
1470
1468
  (function (NotebookDocumentContentOptions) {
1471
1469
  function from(options) {
1472
- var _a, _b, _c;
1473
1470
  return {
1474
- transientOutputs: (_a = options === null || options === void 0 ? void 0 : options.transientOutputs) !== null && _a !== void 0 ? _a : false,
1475
- transientCellMetadata: (_b = options === null || options === void 0 ? void 0 : options.transientCellMetadata) !== null && _b !== void 0 ? _b : {},
1476
- transientDocumentMetadata: (_c = options === null || options === void 0 ? void 0 : options.transientDocumentMetadata) !== null && _c !== void 0 ? _c : {},
1471
+ transientOutputs: options?.transientOutputs ?? false,
1472
+ transientCellMetadata: options?.transientCellMetadata ?? {},
1473
+ transientDocumentMetadata: options?.transientDocumentMetadata ?? {},
1477
1474
  };
1478
1475
  }
1479
1476
  NotebookDocumentContentOptions.from = from;
@@ -1495,9 +1492,8 @@ var NotebookStatusBarItem;
1495
1492
  var NotebookData;
1496
1493
  (function (NotebookData) {
1497
1494
  function from(data) {
1498
- var _a;
1499
1495
  const res = {
1500
- metadata: (_a = data.metadata) !== null && _a !== void 0 ? _a : Object.create(null),
1496
+ metadata: data.metadata ?? Object.create(null),
1501
1497
  cells: [],
1502
1498
  };
1503
1499
  for (const cell of data.cells) {
@@ -1519,13 +1515,12 @@ var NotebookData;
1519
1515
  var NotebookCellData;
1520
1516
  (function (NotebookCellData) {
1521
1517
  function from(data) {
1522
- var _a;
1523
1518
  return {
1524
1519
  cellKind: NotebookCellKind.from(data.kind),
1525
1520
  language: data.languageId,
1526
1521
  source: data.value,
1527
1522
  metadata: data.metadata,
1528
- internalMetadata: NotebookCellExecutionSummary.from((_a = data.executionSummary) !== null && _a !== void 0 ? _a : {}),
1523
+ internalMetadata: NotebookCellExecutionSummary.from(data.executionSummary ?? {}),
1529
1524
  outputs: data.outputs ? data.outputs.map(NotebookCellOutputConverter.from) : []
1530
1525
  };
1531
1526
  }
@@ -1637,11 +1632,10 @@ var NotebookCellExecutionSummary;
1637
1632
  }
1638
1633
  NotebookCellExecutionSummary.to = to;
1639
1634
  function from(data) {
1640
- var _a, _b;
1641
1635
  return {
1642
1636
  lastRunSuccess: data.success,
1643
- runStartTime: (_a = data.timing) === null || _a === void 0 ? void 0 : _a.startTime,
1644
- runEndTime: (_b = data.timing) === null || _b === void 0 ? void 0 : _b.endTime,
1637
+ runStartTime: data.timing?.startTime,
1638
+ runEndTime: data.timing?.endTime,
1645
1639
  executionOrder: data.executionOrder
1646
1640
  };
1647
1641
  }
@@ -1692,11 +1686,10 @@ var TestMessage;
1692
1686
  var TestMessageStackFrame;
1693
1687
  (function (TestMessageStackFrame) {
1694
1688
  function from(stackTrace) {
1695
- var _a;
1696
1689
  return {
1697
1690
  label: stackTrace.label,
1698
1691
  position: stackTrace.position,
1699
- uri: (_a = stackTrace === null || stackTrace === void 0 ? void 0 : stackTrace.uri) === null || _a === void 0 ? void 0 : _a.toString()
1692
+ uri: stackTrace?.uri?.toString()
1700
1693
  };
1701
1694
  }
1702
1695
  TestMessageStackFrame.from = from;