@theia/plugin-ext 1.46.0-next.196 → 1.46.0-next.226

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 (744) hide show
  1. package/lib/common/arrays.js.map +1 -1
  2. package/lib/common/assert.js.map +1 -1
  3. package/lib/common/cache.js.map +1 -1
  4. package/lib/common/character-classifier.js.map +1 -1
  5. package/lib/common/collections.js.map +1 -1
  6. package/lib/common/connection.js.map +1 -1
  7. package/lib/common/disposable-util.js.map +1 -1
  8. package/lib/common/editor-options.js +1 -1
  9. package/lib/common/editor-options.js.map +1 -1
  10. package/lib/common/errors.d.ts +1 -1
  11. package/lib/common/errors.d.ts.map +1 -1
  12. package/lib/common/errors.js.map +1 -1
  13. package/lib/common/index.js +3 -3
  14. package/lib/common/index.js.map +1 -1
  15. package/lib/common/link-computer.d.ts +1 -1
  16. package/lib/common/link-computer.d.ts.map +1 -1
  17. package/lib/common/link-computer.js +67 -67
  18. package/lib/common/link-computer.js.map +1 -1
  19. package/lib/common/object-identifier.js +1 -1
  20. package/lib/common/object-identifier.js.map +1 -1
  21. package/lib/common/objects.js.map +1 -1
  22. package/lib/common/paths-util.js.map +1 -1
  23. package/lib/common/plugin-api-rpc-model.d.ts +29 -7
  24. package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
  25. package/lib/common/plugin-api-rpc-model.js +14 -14
  26. package/lib/common/plugin-api-rpc-model.js.map +1 -1
  27. package/lib/common/plugin-api-rpc.d.ts +44 -19
  28. package/lib/common/plugin-api-rpc.d.ts.map +1 -1
  29. package/lib/common/plugin-api-rpc.js +16 -16
  30. package/lib/common/plugin-api-rpc.js.map +1 -1
  31. package/lib/common/plugin-identifiers.js +1 -1
  32. package/lib/common/plugin-identifiers.js.map +1 -1
  33. package/lib/common/plugin-protocol.d.ts +8 -7
  34. package/lib/common/plugin-protocol.d.ts.map +1 -1
  35. package/lib/common/plugin-protocol.js +6 -6
  36. package/lib/common/plugin-protocol.js.map +1 -1
  37. package/lib/common/proxy-handler.js.map +1 -1
  38. package/lib/common/rpc-protocol.js +1 -1
  39. package/lib/common/rpc-protocol.js.map +1 -1
  40. package/lib/common/semantic-tokens-dto.d.ts +1 -1
  41. package/lib/common/semantic-tokens-dto.d.ts.map +1 -1
  42. package/lib/common/semantic-tokens-dto.js +3 -3
  43. package/lib/common/semantic-tokens-dto.js.map +1 -1
  44. package/lib/common/test-types.js +4 -4
  45. package/lib/common/test-types.js.map +1 -1
  46. package/lib/common/types.js +1 -1
  47. package/lib/common/types.js.map +1 -1
  48. package/lib/common/uint.js +2 -2
  49. package/lib/common/uint.js.map +1 -1
  50. package/lib/common/uri-components.js +1 -1
  51. package/lib/common/uri-components.js.map +1 -1
  52. package/lib/hosted/browser/hosted-plugin-watcher.js +2 -2
  53. package/lib/hosted/browser/hosted-plugin-watcher.js.map +1 -1
  54. package/lib/hosted/browser/hosted-plugin.d.ts +1 -1
  55. package/lib/hosted/browser/hosted-plugin.d.ts.map +1 -1
  56. package/lib/hosted/browser/hosted-plugin.js +58 -58
  57. package/lib/hosted/browser/hosted-plugin.js.map +1 -1
  58. package/lib/hosted/browser/plugin-worker.js +3 -3
  59. package/lib/hosted/browser/plugin-worker.js.map +1 -1
  60. package/lib/hosted/browser/worker/plugin-manifest-loader.js.map +1 -1
  61. package/lib/hosted/browser/worker/worker-env-ext.js +3 -3
  62. package/lib/hosted/browser/worker/worker-env-ext.js.map +1 -1
  63. package/lib/hosted/browser/worker/worker-main.js.map +1 -1
  64. package/lib/hosted/common/hosted-plugin.d.ts +1 -1
  65. package/lib/hosted/common/hosted-plugin.d.ts.map +1 -1
  66. package/lib/hosted/common/hosted-plugin.js +34 -34
  67. package/lib/hosted/common/hosted-plugin.js.map +1 -1
  68. package/lib/hosted/node/hosted-plugin-cli-contribution.js +2 -2
  69. package/lib/hosted/node/hosted-plugin-cli-contribution.js.map +1 -1
  70. package/lib/hosted/node/hosted-plugin-deployer-handler.d.ts +1 -0
  71. package/lib/hosted/node/hosted-plugin-deployer-handler.d.ts.map +1 -1
  72. package/lib/hosted/node/hosted-plugin-deployer-handler.js +17 -12
  73. package/lib/hosted/node/hosted-plugin-deployer-handler.js.map +1 -1
  74. package/lib/hosted/node/hosted-plugin-localization-service.js +8 -8
  75. package/lib/hosted/node/hosted-plugin-localization-service.js.map +1 -1
  76. package/lib/hosted/node/hosted-plugin-process.js +14 -14
  77. package/lib/hosted/node/hosted-plugin-process.js.map +1 -1
  78. package/lib/hosted/node/hosted-plugin-protocol.js +2 -2
  79. package/lib/hosted/node/hosted-plugin-protocol.js.map +1 -1
  80. package/lib/hosted/node/hosted-plugin.js +12 -12
  81. package/lib/hosted/node/hosted-plugin.js.map +1 -1
  82. package/lib/hosted/node/metadata-scanner.js +6 -6
  83. package/lib/hosted/node/metadata-scanner.js.map +1 -1
  84. package/lib/hosted/node/plugin-activation-events.js.map +1 -1
  85. package/lib/hosted/node/plugin-host-module.js.map +1 -1
  86. package/lib/hosted/node/plugin-host-proxy.js.map +1 -1
  87. package/lib/hosted/node/plugin-host-rpc.d.ts +2 -2
  88. package/lib/hosted/node/plugin-host-rpc.d.ts.map +1 -1
  89. package/lib/hosted/node/plugin-host-rpc.js +43 -43
  90. package/lib/hosted/node/plugin-host-rpc.js.map +1 -1
  91. package/lib/hosted/node/plugin-host.js.map +1 -1
  92. package/lib/hosted/node/plugin-language-pack-service.js +2 -2
  93. package/lib/hosted/node/plugin-language-pack-service.js.map +1 -1
  94. package/lib/hosted/node/plugin-manifest-loader.js.map +1 -1
  95. package/lib/hosted/node/plugin-reader.js +8 -8
  96. package/lib/hosted/node/plugin-reader.js.map +1 -1
  97. package/lib/hosted/node/plugin-service.d.ts +1 -1
  98. package/lib/hosted/node/plugin-service.d.ts.map +1 -1
  99. package/lib/hosted/node/plugin-service.js +27 -27
  100. package/lib/hosted/node/plugin-service.js.map +1 -1
  101. package/lib/hosted/node/scanners/backend-init-theia.js.map +1 -1
  102. package/lib/hosted/node/scanners/file-plugin-uri-factory.js +2 -2
  103. package/lib/hosted/node/scanners/file-plugin-uri-factory.js.map +1 -1
  104. package/lib/hosted/node/scanners/grammars-reader.js +2 -2
  105. package/lib/hosted/node/scanners/grammars-reader.js.map +1 -1
  106. package/lib/hosted/node/scanners/scanner-theia.d.ts +1 -1
  107. package/lib/hosted/node/scanners/scanner-theia.d.ts.map +1 -1
  108. package/lib/hosted/node/scanners/scanner-theia.js +10 -10
  109. package/lib/hosted/node/scanners/scanner-theia.js.map +1 -1
  110. package/lib/hosted/node-electron/scanner-theia-electron.js +2 -2
  111. package/lib/hosted/node-electron/scanner-theia-electron.js.map +1 -1
  112. package/lib/main/browser/authentication-main.d.ts +22 -0
  113. package/lib/main/browser/authentication-main.d.ts.map +1 -1
  114. package/lib/main/browser/authentication-main.js.map +1 -1
  115. package/lib/main/browser/command-registry-main.d.ts +23 -0
  116. package/lib/main/browser/command-registry-main.d.ts.map +1 -1
  117. package/lib/main/browser/command-registry-main.js.map +1 -1
  118. package/lib/main/browser/commands.js +5 -5
  119. package/lib/main/browser/commands.js.map +1 -1
  120. package/lib/main/browser/comments/comment-glyph-widget.js.map +1 -1
  121. package/lib/main/browser/comments/comment-thread-widget.js +12 -12
  122. package/lib/main/browser/comments/comment-thread-widget.js.map +1 -1
  123. package/lib/main/browser/comments/comments-context-key-service.js +8 -8
  124. package/lib/main/browser/comments/comments-context-key-service.js.map +1 -1
  125. package/lib/main/browser/comments/comments-contribution.js +14 -14
  126. package/lib/main/browser/comments/comments-contribution.js.map +1 -1
  127. package/lib/main/browser/comments/comments-decorator.js +6 -6
  128. package/lib/main/browser/comments/comments-decorator.js.map +1 -1
  129. package/lib/main/browser/comments/comments-main.js +32 -32
  130. package/lib/main/browser/comments/comments-main.js.map +1 -1
  131. package/lib/main/browser/comments/comments-service.js +2 -2
  132. package/lib/main/browser/comments/comments-service.js.map +1 -1
  133. package/lib/main/browser/custom-editors/custom-editor-contribution.js +4 -4
  134. package/lib/main/browser/custom-editors/custom-editor-contribution.js.map +1 -1
  135. package/lib/main/browser/custom-editors/custom-editor-opener.js +8 -7
  136. package/lib/main/browser/custom-editors/custom-editor-opener.js.map +1 -1
  137. package/lib/main/browser/custom-editors/custom-editor-service.js +2 -2
  138. package/lib/main/browser/custom-editors/custom-editor-service.js.map +1 -1
  139. package/lib/main/browser/custom-editors/custom-editor-widget-factory.js.map +1 -1
  140. package/lib/main/browser/custom-editors/custom-editor-widget.d.ts +2 -2
  141. package/lib/main/browser/custom-editors/custom-editor-widget.d.ts.map +1 -1
  142. package/lib/main/browser/custom-editors/custom-editor-widget.js +15 -18
  143. package/lib/main/browser/custom-editors/custom-editor-widget.js.map +1 -1
  144. package/lib/main/browser/custom-editors/custom-editors-main.d.ts +28 -7
  145. package/lib/main/browser/custom-editors/custom-editors-main.d.ts.map +1 -1
  146. package/lib/main/browser/custom-editors/custom-editors-main.js +24 -38
  147. package/lib/main/browser/custom-editors/custom-editors-main.js.map +1 -1
  148. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.d.ts +1 -1
  149. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.d.ts.map +1 -1
  150. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.js +14 -14
  151. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.js.map +1 -1
  152. package/lib/main/browser/data-transfer/data-transfer-type-converters.js +2 -2
  153. package/lib/main/browser/data-transfer/data-transfer-type-converters.js.map +1 -1
  154. package/lib/main/browser/debug/debug-main.js.map +1 -1
  155. package/lib/main/browser/debug/plugin-debug-configuration-provider.js.map +1 -1
  156. package/lib/main/browser/debug/plugin-debug-service.d.ts +22 -0
  157. package/lib/main/browser/debug/plugin-debug-service.d.ts.map +1 -1
  158. package/lib/main/browser/debug/plugin-debug-service.js +10 -10
  159. package/lib/main/browser/debug/plugin-debug-service.js.map +1 -1
  160. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.js +8 -8
  161. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.js.map +1 -1
  162. package/lib/main/browser/decorations/decorations-main.js.map +1 -1
  163. package/lib/main/browser/dialogs/modal-notification.js +4 -4
  164. package/lib/main/browser/dialogs/modal-notification.js.map +1 -1
  165. package/lib/main/browser/dialogs-main.js.map +1 -1
  166. package/lib/main/browser/documents-main.js.map +1 -1
  167. package/lib/main/browser/editors-and-documents-main.d.ts.map +1 -1
  168. package/lib/main/browser/editors-and-documents-main.js +2 -2
  169. package/lib/main/browser/editors-and-documents-main.js.map +1 -1
  170. package/lib/main/browser/env-main.js.map +1 -1
  171. package/lib/main/browser/file-system-main-impl.js +4 -4
  172. package/lib/main/browser/file-system-main-impl.js.map +1 -1
  173. package/lib/main/browser/hierarchy/hierarchy-types-converters.js +1 -1
  174. package/lib/main/browser/hierarchy/hierarchy-types-converters.js.map +1 -1
  175. package/lib/main/browser/keybindings/keybindings-contribution-handler.js +4 -4
  176. package/lib/main/browser/keybindings/keybindings-contribution-handler.js.map +1 -1
  177. package/lib/main/browser/label-service-main.js.map +1 -1
  178. package/lib/main/browser/languages-main.d.ts +22 -0
  179. package/lib/main/browser/languages-main.d.ts.map +1 -1
  180. package/lib/main/browser/languages-main.js +16 -16
  181. package/lib/main/browser/languages-main.js.map +1 -1
  182. package/lib/main/browser/main-file-system-event-service.js +3 -3
  183. package/lib/main/browser/main-file-system-event-service.js.map +1 -1
  184. package/lib/main/browser/menus/menus-contribution-handler.js +20 -20
  185. package/lib/main/browser/menus/menus-contribution-handler.js.map +1 -1
  186. package/lib/main/browser/menus/plugin-menu-command-adapter.d.ts +1 -1
  187. package/lib/main/browser/menus/plugin-menu-command-adapter.d.ts.map +1 -1
  188. package/lib/main/browser/menus/plugin-menu-command-adapter.js +16 -16
  189. package/lib/main/browser/menus/plugin-menu-command-adapter.js.map +1 -1
  190. package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts +2 -2
  191. package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts.map +1 -1
  192. package/lib/main/browser/menus/vscode-theia-menu-mappings.js +2 -2
  193. package/lib/main/browser/menus/vscode-theia-menu-mappings.js.map +1 -1
  194. package/lib/main/browser/message-registry-main.js.map +1 -1
  195. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js +8 -8
  196. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js.map +1 -1
  197. package/lib/main/browser/notebooks/notebook-documents-main.js +1 -1
  198. package/lib/main/browser/notebooks/notebook-documents-main.js.map +1 -1
  199. package/lib/main/browser/notebooks/notebook-dto.js +1 -1
  200. package/lib/main/browser/notebooks/notebook-dto.js.map +1 -1
  201. package/lib/main/browser/notebooks/notebook-editors-main.js.map +1 -1
  202. package/lib/main/browser/notebooks/notebook-kernels-main.js +6 -6
  203. package/lib/main/browser/notebooks/notebook-kernels-main.js.map +1 -1
  204. package/lib/main/browser/notebooks/notebooks-main.d.ts +22 -0
  205. package/lib/main/browser/notebooks/notebooks-main.d.ts.map +1 -1
  206. package/lib/main/browser/notebooks/notebooks-main.js +1 -1
  207. package/lib/main/browser/notebooks/notebooks-main.js.map +1 -1
  208. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -1
  209. package/lib/main/browser/notebooks/renderers/cell-output-webview.js +28 -27
  210. package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -1
  211. package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -1
  212. package/lib/main/browser/notebooks/renderers/webview-communication.d.ts +2 -2
  213. package/lib/main/browser/notebooks/renderers/webview-communication.d.ts.map +1 -1
  214. package/lib/main/browser/output-channel-registry-main.js +4 -4
  215. package/lib/main/browser/output-channel-registry-main.js.map +1 -1
  216. package/lib/main/browser/plugin-authentication-service.js +3 -3
  217. package/lib/main/browser/plugin-authentication-service.js.map +1 -1
  218. package/lib/main/browser/plugin-contribution-handler.js +61 -61
  219. package/lib/main/browser/plugin-contribution-handler.js.map +1 -1
  220. package/lib/main/browser/plugin-ext-frontend-module.d.ts.map +1 -1
  221. package/lib/main/browser/plugin-ext-frontend-module.js +0 -2
  222. package/lib/main/browser/plugin-ext-frontend-module.js.map +1 -1
  223. package/lib/main/browser/plugin-ext-widget.js +11 -11
  224. package/lib/main/browser/plugin-ext-widget.js.map +1 -1
  225. package/lib/main/browser/plugin-frontend-contribution.js +4 -4
  226. package/lib/main/browser/plugin-frontend-contribution.js.map +1 -1
  227. package/lib/main/browser/plugin-frontend-view-contribution.js +3 -3
  228. package/lib/main/browser/plugin-frontend-view-contribution.js.map +1 -1
  229. package/lib/main/browser/plugin-icon-service.js +4 -4
  230. package/lib/main/browser/plugin-icon-service.js.map +1 -1
  231. package/lib/main/browser/plugin-icon-theme-service.d.ts +1 -1
  232. package/lib/main/browser/plugin-icon-theme-service.d.ts.map +1 -1
  233. package/lib/main/browser/plugin-icon-theme-service.js +25 -25
  234. package/lib/main/browser/plugin-icon-theme-service.js.map +1 -1
  235. package/lib/main/browser/plugin-shared-style.js +8 -8
  236. package/lib/main/browser/plugin-shared-style.js.map +1 -1
  237. package/lib/main/browser/plugin-storage.js.map +1 -1
  238. package/lib/main/browser/plugin-terminal-registry.js +2 -2
  239. package/lib/main/browser/plugin-terminal-registry.js.map +1 -1
  240. package/lib/main/browser/preference-registry-main.js.map +1 -1
  241. package/lib/main/browser/quick-open-main.d.ts +25 -2
  242. package/lib/main/browser/quick-open-main.d.ts.map +1 -1
  243. package/lib/main/browser/quick-open-main.js +10 -1
  244. package/lib/main/browser/quick-open-main.js.map +1 -1
  245. package/lib/main/browser/scm-main.js +22 -22
  246. package/lib/main/browser/scm-main.js.map +1 -1
  247. package/lib/main/browser/secrets-main.js.map +1 -1
  248. package/lib/main/browser/selection-provider-command.js +5 -5
  249. package/lib/main/browser/selection-provider-command.js.map +1 -1
  250. package/lib/main/browser/status-bar-message-registry-main.js.map +1 -1
  251. package/lib/main/browser/tabs/tabs-main.d.ts +3 -1
  252. package/lib/main/browser/tabs/tabs-main.d.ts.map +1 -1
  253. package/lib/main/browser/tabs/tabs-main.js +41 -15
  254. package/lib/main/browser/tabs/tabs-main.js.map +1 -1
  255. package/lib/main/browser/tasks-main.js.map +1 -1
  256. package/lib/main/browser/terminal-main.d.ts +22 -0
  257. package/lib/main/browser/terminal-main.d.ts.map +1 -1
  258. package/lib/main/browser/terminal-main.js.map +1 -1
  259. package/lib/main/browser/test-main.js +39 -39
  260. package/lib/main/browser/test-main.js.map +1 -1
  261. package/lib/main/browser/text-editor-main.js.map +1 -1
  262. package/lib/main/browser/text-editor-model-service.js +5 -5
  263. package/lib/main/browser/text-editor-model-service.js.map +1 -1
  264. package/lib/main/browser/text-editors-main.js.map +1 -1
  265. package/lib/main/browser/theme-icon-override.js.map +1 -1
  266. package/lib/main/browser/timeline-main.js.map +1 -1
  267. package/lib/main/browser/view/dnd-file-content-store.js +2 -2
  268. package/lib/main/browser/view/dnd-file-content-store.js.map +1 -1
  269. package/lib/main/browser/view/plugin-tree-view-node-label-provider.js +6 -6
  270. package/lib/main/browser/view/plugin-tree-view-node-label-provider.js.map +1 -1
  271. package/lib/main/browser/view/plugin-view-registry.d.ts +1 -1
  272. package/lib/main/browser/view/plugin-view-registry.d.ts.map +1 -1
  273. package/lib/main/browser/view/plugin-view-registry.js +29 -29
  274. package/lib/main/browser/view/plugin-view-registry.js.map +1 -1
  275. package/lib/main/browser/view/plugin-view-widget.js +20 -20
  276. package/lib/main/browser/view/plugin-view-widget.js.map +1 -1
  277. package/lib/main/browser/view/tree-view-decorator-service.d.ts +22 -0
  278. package/lib/main/browser/view/tree-view-decorator-service.d.ts.map +1 -1
  279. package/lib/main/browser/view/tree-view-decorator-service.js +7 -7
  280. package/lib/main/browser/view/tree-view-decorator-service.js.map +1 -1
  281. package/lib/main/browser/view/tree-view-widget.d.ts +22 -0
  282. package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
  283. package/lib/main/browser/view/tree-view-widget.js +44 -44
  284. package/lib/main/browser/view/tree-view-widget.js.map +1 -1
  285. package/lib/main/browser/view/tree-views-main.d.ts +22 -0
  286. package/lib/main/browser/view/tree-views-main.d.ts.map +1 -1
  287. package/lib/main/browser/view/tree-views-main.js.map +1 -1
  288. package/lib/main/browser/view/view-context-key-service.js +8 -8
  289. package/lib/main/browser/view/view-context-key-service.js.map +1 -1
  290. package/lib/main/browser/webview/webview-context-keys.js +10 -10
  291. package/lib/main/browser/webview/webview-context-keys.js.map +1 -1
  292. package/lib/main/browser/webview/webview-environment.js +8 -8
  293. package/lib/main/browser/webview/webview-environment.js.map +1 -1
  294. package/lib/main/browser/webview/webview-frontend-security-warnings.js +8 -8
  295. package/lib/main/browser/webview/webview-frontend-security-warnings.js.map +1 -1
  296. package/lib/main/browser/webview/webview-preferences.d.ts +1 -1
  297. package/lib/main/browser/webview/webview-preferences.d.ts.map +1 -1
  298. package/lib/main/browser/webview/webview-preferences.js.map +1 -1
  299. package/lib/main/browser/webview/webview-resource-cache.js +3 -3
  300. package/lib/main/browser/webview/webview-resource-cache.js.map +1 -1
  301. package/lib/main/browser/webview/webview-secondary-window-support.js +4 -4
  302. package/lib/main/browser/webview/webview-secondary-window-support.js.map +1 -1
  303. package/lib/main/browser/webview/webview-theme-data-provider.d.ts +1 -1
  304. package/lib/main/browser/webview/webview-theme-data-provider.d.ts.map +1 -1
  305. package/lib/main/browser/webview/webview-theme-data-provider.js +14 -14
  306. package/lib/main/browser/webview/webview-theme-data-provider.js.map +1 -1
  307. package/lib/main/browser/webview/webview-widget-factory.js.map +1 -1
  308. package/lib/main/browser/webview/webview.d.ts +22 -0
  309. package/lib/main/browser/webview/webview.d.ts.map +1 -1
  310. package/lib/main/browser/webview/webview.js +54 -55
  311. package/lib/main/browser/webview/webview.js.map +1 -1
  312. package/lib/main/browser/webview-views/webview-views-main.d.ts +22 -0
  313. package/lib/main/browser/webview-views/webview-views-main.d.ts.map +1 -1
  314. package/lib/main/browser/webview-views/webview-views-main.js +3 -3
  315. package/lib/main/browser/webview-views/webview-views-main.js.map +1 -1
  316. package/lib/main/browser/webviews-main.d.ts +23 -1
  317. package/lib/main/browser/webviews-main.d.ts.map +1 -1
  318. package/lib/main/browser/webviews-main.js +1 -1
  319. package/lib/main/browser/webviews-main.js.map +1 -1
  320. package/lib/main/browser/window-activity-tracker.d.ts +20 -0
  321. package/lib/main/browser/window-activity-tracker.d.ts.map +1 -0
  322. package/lib/main/browser/window-activity-tracker.js +86 -0
  323. package/lib/main/browser/window-activity-tracker.js.map +1 -0
  324. package/lib/main/browser/window-state-main.d.ts +1 -0
  325. package/lib/main/browser/window-state-main.d.ts.map +1 -1
  326. package/lib/main/browser/window-state-main.js +8 -1
  327. package/lib/main/browser/window-state-main.js.map +1 -1
  328. package/lib/main/browser/workspace-main.d.ts +22 -0
  329. package/lib/main/browser/workspace-main.d.ts.map +1 -1
  330. package/lib/main/browser/workspace-main.js +2 -2
  331. package/lib/main/browser/workspace-main.js.map +1 -1
  332. package/lib/main/common/basic-message-registry-main.js.map +1 -1
  333. package/lib/main/common/basic-notification-main.js.map +1 -1
  334. package/lib/main/common/env-main.js.map +1 -1
  335. package/lib/main/common/plugin-theia-environment.js +4 -4
  336. package/lib/main/common/plugin-theia-environment.js.map +1 -1
  337. package/lib/main/common/webview-protocol.js +1 -1
  338. package/lib/main/common/webview-protocol.js.map +1 -1
  339. package/lib/main/node/handlers/plugin-theia-directory-handler.js +7 -7
  340. package/lib/main/node/handlers/plugin-theia-directory-handler.js.map +1 -1
  341. package/lib/main/node/handlers/plugin-theia-file-handler.js +5 -5
  342. package/lib/main/node/handlers/plugin-theia-file-handler.js.map +1 -1
  343. package/lib/main/node/paths/const.js +1 -1
  344. package/lib/main/node/paths/const.js.map +1 -1
  345. package/lib/main/node/paths/plugin-paths-service.js +10 -10
  346. package/lib/main/node/paths/plugin-paths-service.js.map +1 -1
  347. package/lib/main/node/plugin-cli-contribution.js +2 -2
  348. package/lib/main/node/plugin-cli-contribution.js.map +1 -1
  349. package/lib/main/node/plugin-deployer-contribution.js +6 -6
  350. package/lib/main/node/plugin-deployer-contribution.js.map +1 -1
  351. package/lib/main/node/plugin-deployer-directory-handler-context-impl.js.map +1 -1
  352. package/lib/main/node/plugin-deployer-entry-impl.js.map +1 -1
  353. package/lib/main/node/plugin-deployer-impl.js +18 -18
  354. package/lib/main/node/plugin-deployer-impl.js.map +1 -1
  355. package/lib/main/node/plugin-deployer-proxy-entry-impl.js +3 -3
  356. package/lib/main/node/plugin-deployer-proxy-entry-impl.js.map +1 -1
  357. package/lib/main/node/plugin-ext-backend-module.d.ts.map +1 -1
  358. package/lib/main/node/plugin-ext-backend-module.js +8 -0
  359. package/lib/main/node/plugin-ext-backend-module.js.map +1 -1
  360. package/lib/main/node/plugin-github-resolver.js +5 -5
  361. package/lib/main/node/plugin-github-resolver.js.map +1 -1
  362. package/lib/main/node/plugin-http-resolver.js +5 -5
  363. package/lib/main/node/plugin-http-resolver.js.map +1 -1
  364. package/lib/main/node/plugin-localization-server.js +4 -4
  365. package/lib/main/node/plugin-localization-server.js.map +1 -1
  366. package/lib/main/node/plugin-mgmt-cli-contribution.js +4 -4
  367. package/lib/main/node/plugin-mgmt-cli-contribution.js.map +1 -1
  368. package/lib/main/node/plugin-remote-cli-contribution.d.ts +8 -0
  369. package/lib/main/node/plugin-remote-cli-contribution.d.ts.map +1 -0
  370. package/lib/main/node/plugin-remote-cli-contribution.js +41 -0
  371. package/lib/main/node/plugin-remote-cli-contribution.js.map +1 -0
  372. package/lib/main/node/plugin-remote-copy-contribution.d.ts +7 -0
  373. package/lib/main/node/plugin-remote-copy-contribution.d.ts.map +1 -0
  374. package/lib/main/node/plugin-remote-copy-contribution.js +40 -0
  375. package/lib/main/node/plugin-remote-copy-contribution.js.map +1 -0
  376. package/lib/main/node/plugin-server-handler.js +6 -6
  377. package/lib/main/node/plugin-server-handler.js.map +1 -1
  378. package/lib/main/node/plugin-service.d.ts +1 -1
  379. package/lib/main/node/plugin-service.d.ts.map +1 -1
  380. package/lib/main/node/plugin-service.js +11 -11
  381. package/lib/main/node/plugin-service.js.map +1 -1
  382. package/lib/main/node/plugin-theia-deployer-participant.js +4 -4
  383. package/lib/main/node/plugin-theia-deployer-participant.js.map +1 -1
  384. package/lib/main/node/plugin-uninstallation-manager.js +2 -2
  385. package/lib/main/node/plugin-uninstallation-manager.js.map +1 -1
  386. package/lib/main/node/plugins-key-value-storage.js +12 -12
  387. package/lib/main/node/plugins-key-value-storage.js.map +1 -1
  388. package/lib/main/node/plugins-key-value-storage.spec.js.map +1 -1
  389. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js +2 -2
  390. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js.map +1 -1
  391. package/lib/main/node/resolvers/local-plugin-deployer-resolver.js +2 -2
  392. package/lib/main/node/resolvers/local-plugin-deployer-resolver.js.map +1 -1
  393. package/lib/main/node/temp-dir-util.js.map +1 -1
  394. package/lib/main/node/webview-backend-security-warnings.js +2 -2
  395. package/lib/main/node/webview-backend-security-warnings.js.map +1 -1
  396. package/lib/plugin/authentication-ext.d.ts +22 -0
  397. package/lib/plugin/authentication-ext.d.ts.map +1 -1
  398. package/lib/plugin/authentication-ext.js.map +1 -1
  399. package/lib/plugin/clipboard-ext.d.ts +22 -0
  400. package/lib/plugin/clipboard-ext.d.ts.map +1 -1
  401. package/lib/plugin/clipboard-ext.js +8 -8
  402. package/lib/plugin/clipboard-ext.js.map +1 -1
  403. package/lib/plugin/command-registry.d.ts +24 -1
  404. package/lib/plugin/command-registry.d.ts.map +1 -1
  405. package/lib/plugin/command-registry.js.map +1 -1
  406. package/lib/plugin/comments.d.ts +22 -0
  407. package/lib/plugin/comments.d.ts.map +1 -1
  408. package/lib/plugin/comments.js +27 -27
  409. package/lib/plugin/comments.js.map +1 -1
  410. package/lib/plugin/custom-editors.d.ts +23 -1
  411. package/lib/plugin/custom-editors.d.ts.map +1 -1
  412. package/lib/plugin/custom-editors.js +6 -6
  413. package/lib/plugin/custom-editors.js.map +1 -1
  414. package/lib/plugin/debug/debug-ext.d.ts +23 -0
  415. package/lib/plugin/debug/debug-ext.d.ts.map +1 -1
  416. package/lib/plugin/debug/debug-ext.js +12 -12
  417. package/lib/plugin/debug/debug-ext.js.map +1 -1
  418. package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts +22 -0
  419. package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts.map +1 -1
  420. package/lib/plugin/debug/plugin-debug-adapter-creator.js.map +1 -1
  421. package/lib/plugin/debug/plugin-debug-adapter-session.d.ts +22 -0
  422. package/lib/plugin/debug/plugin-debug-adapter-session.d.ts.map +1 -1
  423. package/lib/plugin/debug/plugin-debug-adapter-session.js.map +1 -1
  424. package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts +22 -0
  425. package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts.map +1 -1
  426. package/lib/plugin/debug/plugin-debug-adapter-tracker.js.map +1 -1
  427. package/lib/plugin/decorations.d.ts +22 -0
  428. package/lib/plugin/decorations.d.ts.map +1 -1
  429. package/lib/plugin/decorations.js.map +1 -1
  430. package/lib/plugin/dialogs.d.ts +22 -0
  431. package/lib/plugin/dialogs.d.ts.map +1 -1
  432. package/lib/plugin/dialogs.js.map +1 -1
  433. package/lib/plugin/document-data.d.ts +22 -0
  434. package/lib/plugin/document-data.d.ts.map +1 -1
  435. package/lib/plugin/document-data.js.map +1 -1
  436. package/lib/plugin/documents.d.ts +22 -0
  437. package/lib/plugin/documents.d.ts.map +1 -1
  438. package/lib/plugin/documents.js.map +1 -1
  439. package/lib/plugin/editors-and-documents.js +4 -4
  440. package/lib/plugin/editors-and-documents.js.map +1 -1
  441. package/lib/plugin/env.d.ts +23 -0
  442. package/lib/plugin/env.d.ts.map +1 -1
  443. package/lib/plugin/env.js +9 -9
  444. package/lib/plugin/env.js.map +1 -1
  445. package/lib/plugin/file-system-event-service-ext-impl.d.ts +24 -2
  446. package/lib/plugin/file-system-event-service-ext-impl.d.ts.map +1 -1
  447. package/lib/plugin/file-system-event-service-ext-impl.js +15 -15
  448. package/lib/plugin/file-system-event-service-ext-impl.js.map +1 -1
  449. package/lib/plugin/file-system-ext-impl.d.ts +22 -0
  450. package/lib/plugin/file-system-ext-impl.d.ts.map +1 -1
  451. package/lib/plugin/file-system-ext-impl.js +15 -15
  452. package/lib/plugin/file-system-ext-impl.js.map +1 -1
  453. package/lib/plugin/known-commands.js +1 -1
  454. package/lib/plugin/known-commands.js.map +1 -1
  455. package/lib/plugin/label-service.d.ts +23 -0
  456. package/lib/plugin/label-service.d.ts.map +1 -1
  457. package/lib/plugin/languages/call-hierarchy.d.ts +22 -0
  458. package/lib/plugin/languages/call-hierarchy.d.ts.map +1 -1
  459. package/lib/plugin/languages/call-hierarchy.js.map +1 -1
  460. package/lib/plugin/languages/code-action.d.ts +22 -0
  461. package/lib/plugin/languages/code-action.d.ts.map +1 -1
  462. package/lib/plugin/languages/code-action.js.map +1 -1
  463. package/lib/plugin/languages/color.d.ts +22 -0
  464. package/lib/plugin/languages/color.d.ts.map +1 -1
  465. package/lib/plugin/languages/color.js.map +1 -1
  466. package/lib/plugin/languages/completion.d.ts +22 -0
  467. package/lib/plugin/languages/completion.d.ts.map +1 -1
  468. package/lib/plugin/languages/completion.js.map +1 -1
  469. package/lib/plugin/languages/declaration.d.ts +22 -0
  470. package/lib/plugin/languages/declaration.d.ts.map +1 -1
  471. package/lib/plugin/languages/declaration.js.map +1 -1
  472. package/lib/plugin/languages/definition.d.ts +22 -0
  473. package/lib/plugin/languages/definition.d.ts.map +1 -1
  474. package/lib/plugin/languages/definition.js.map +1 -1
  475. package/lib/plugin/languages/diagnostics.d.ts +22 -0
  476. package/lib/plugin/languages/diagnostics.d.ts.map +1 -1
  477. package/lib/plugin/languages/diagnostics.js.map +1 -1
  478. package/lib/plugin/languages/document-drop-edit.d.ts +22 -0
  479. package/lib/plugin/languages/document-drop-edit.d.ts.map +1 -1
  480. package/lib/plugin/languages/document-formatting.d.ts +22 -0
  481. package/lib/plugin/languages/document-formatting.d.ts.map +1 -1
  482. package/lib/plugin/languages/document-formatting.js.map +1 -1
  483. package/lib/plugin/languages/document-highlight.d.ts +22 -0
  484. package/lib/plugin/languages/document-highlight.d.ts.map +1 -1
  485. package/lib/plugin/languages/document-highlight.js.map +1 -1
  486. package/lib/plugin/languages/evaluatable-expression.d.ts +22 -0
  487. package/lib/plugin/languages/evaluatable-expression.d.ts.map +1 -1
  488. package/lib/plugin/languages/evaluatable-expression.js.map +1 -1
  489. package/lib/plugin/languages/folding.d.ts +22 -0
  490. package/lib/plugin/languages/folding.d.ts.map +1 -1
  491. package/lib/plugin/languages/folding.js.map +1 -1
  492. package/lib/plugin/languages/hover.d.ts +22 -0
  493. package/lib/plugin/languages/hover.d.ts.map +1 -1
  494. package/lib/plugin/languages/hover.js.map +1 -1
  495. package/lib/plugin/languages/implementation.d.ts +22 -0
  496. package/lib/plugin/languages/implementation.d.ts.map +1 -1
  497. package/lib/plugin/languages/implementation.js.map +1 -1
  498. package/lib/plugin/languages/inlay-hints.d.ts +22 -0
  499. package/lib/plugin/languages/inlay-hints.d.ts.map +1 -1
  500. package/lib/plugin/languages/inlay-hints.js +1 -1
  501. package/lib/plugin/languages/inlay-hints.js.map +1 -1
  502. package/lib/plugin/languages/inline-completion.d.ts +22 -0
  503. package/lib/plugin/languages/inline-completion.d.ts.map +1 -1
  504. package/lib/plugin/languages/inline-completion.js.map +1 -1
  505. package/lib/plugin/languages/inline-values.d.ts +22 -0
  506. package/lib/plugin/languages/inline-values.d.ts.map +1 -1
  507. package/lib/plugin/languages/inline-values.js.map +1 -1
  508. package/lib/plugin/languages/lens.d.ts +22 -0
  509. package/lib/plugin/languages/lens.d.ts.map +1 -1
  510. package/lib/plugin/languages/lens.js.map +1 -1
  511. package/lib/plugin/languages/link-provider.d.ts +22 -0
  512. package/lib/plugin/languages/link-provider.d.ts.map +1 -1
  513. package/lib/plugin/languages/link-provider.js.map +1 -1
  514. package/lib/plugin/languages/linked-editing-range.d.ts +22 -0
  515. package/lib/plugin/languages/linked-editing-range.d.ts.map +1 -1
  516. package/lib/plugin/languages/linked-editing-range.js.map +1 -1
  517. package/lib/plugin/languages/on-type-formatting.d.ts +22 -0
  518. package/lib/plugin/languages/on-type-formatting.d.ts.map +1 -1
  519. package/lib/plugin/languages/on-type-formatting.js.map +1 -1
  520. package/lib/plugin/languages/outline.d.ts +22 -0
  521. package/lib/plugin/languages/outline.d.ts.map +1 -1
  522. package/lib/plugin/languages/outline.js.map +1 -1
  523. package/lib/plugin/languages/range-formatting.d.ts +22 -0
  524. package/lib/plugin/languages/range-formatting.d.ts.map +1 -1
  525. package/lib/plugin/languages/range-formatting.js.map +1 -1
  526. package/lib/plugin/languages/reference.d.ts +22 -0
  527. package/lib/plugin/languages/reference.d.ts.map +1 -1
  528. package/lib/plugin/languages/reference.js.map +1 -1
  529. package/lib/plugin/languages/rename.d.ts +22 -0
  530. package/lib/plugin/languages/rename.d.ts.map +1 -1
  531. package/lib/plugin/languages/rename.js +3 -3
  532. package/lib/plugin/languages/rename.js.map +1 -1
  533. package/lib/plugin/languages/selection-range.d.ts +22 -0
  534. package/lib/plugin/languages/selection-range.d.ts.map +1 -1
  535. package/lib/plugin/languages/selection-range.js.map +1 -1
  536. package/lib/plugin/languages/semantic-highlighting.d.ts +22 -0
  537. package/lib/plugin/languages/semantic-highlighting.d.ts.map +1 -1
  538. package/lib/plugin/languages/semantic-highlighting.js.map +1 -1
  539. package/lib/plugin/languages/signature.d.ts +22 -0
  540. package/lib/plugin/languages/signature.d.ts.map +1 -1
  541. package/lib/plugin/languages/signature.js.map +1 -1
  542. package/lib/plugin/languages/type-definition.d.ts +22 -0
  543. package/lib/plugin/languages/type-definition.d.ts.map +1 -1
  544. package/lib/plugin/languages/type-definition.js.map +1 -1
  545. package/lib/plugin/languages/type-hierarchy.d.ts +22 -0
  546. package/lib/plugin/languages/type-hierarchy.d.ts.map +1 -1
  547. package/lib/plugin/languages/type-hierarchy.js.map +1 -1
  548. package/lib/plugin/languages/util.d.ts +22 -0
  549. package/lib/plugin/languages/util.d.ts.map +1 -1
  550. package/lib/plugin/languages/workspace-symbol.d.ts +22 -0
  551. package/lib/plugin/languages/workspace-symbol.d.ts.map +1 -1
  552. package/lib/plugin/languages/workspace-symbol.js.map +1 -1
  553. package/lib/plugin/languages-utils.d.ts +22 -0
  554. package/lib/plugin/languages-utils.d.ts.map +1 -1
  555. package/lib/plugin/languages-utils.js.map +1 -1
  556. package/lib/plugin/languages.d.ts +22 -0
  557. package/lib/plugin/languages.d.ts.map +1 -1
  558. package/lib/plugin/languages.js.map +1 -1
  559. package/lib/plugin/localization-ext.js +8 -8
  560. package/lib/plugin/localization-ext.js.map +1 -1
  561. package/lib/plugin/markdown-string.d.ts +22 -0
  562. package/lib/plugin/markdown-string.d.ts.map +1 -1
  563. package/lib/plugin/markdown-string.js +20 -20
  564. package/lib/plugin/markdown-string.js.map +1 -1
  565. package/lib/plugin/message-registry.d.ts +22 -0
  566. package/lib/plugin/message-registry.d.ts.map +1 -1
  567. package/lib/plugin/message-registry.js +8 -8
  568. package/lib/plugin/message-registry.js.map +1 -1
  569. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts +22 -0
  570. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts.map +1 -1
  571. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.js.map +1 -1
  572. package/lib/plugin/node/env-node-ext.js +3 -3
  573. package/lib/plugin/node/env-node-ext.js.map +1 -1
  574. package/lib/plugin/node/plugin-container-module.d.ts +4 -4
  575. package/lib/plugin/node/plugin-container-module.d.ts.map +1 -1
  576. package/lib/plugin/node/plugin-container-module.js.map +1 -1
  577. package/lib/plugin/notebook/notebook-document.d.ts +22 -0
  578. package/lib/plugin/notebook/notebook-document.d.ts.map +1 -1
  579. package/lib/plugin/notebook/notebook-document.js +13 -13
  580. package/lib/plugin/notebook/notebook-document.js.map +1 -1
  581. package/lib/plugin/notebook/notebook-documents.d.ts +23 -1
  582. package/lib/plugin/notebook/notebook-documents.d.ts.map +1 -1
  583. package/lib/plugin/notebook/notebook-editor.d.ts +22 -0
  584. package/lib/plugin/notebook/notebook-editor.d.ts.map +1 -1
  585. package/lib/plugin/notebook/notebook-editor.js.map +1 -1
  586. package/lib/plugin/notebook/notebook-editors.d.ts +22 -0
  587. package/lib/plugin/notebook/notebook-editors.d.ts.map +1 -1
  588. package/lib/plugin/notebook/notebook-editors.js.map +1 -1
  589. package/lib/plugin/notebook/notebook-kernels.d.ts +22 -0
  590. package/lib/plugin/notebook/notebook-kernels.d.ts.map +1 -1
  591. package/lib/plugin/notebook/notebook-kernels.js +1 -1
  592. package/lib/plugin/notebook/notebook-kernels.js.map +1 -1
  593. package/lib/plugin/notebook/notebook-renderers.d.ts +22 -0
  594. package/lib/plugin/notebook/notebook-renderers.d.ts.map +1 -1
  595. package/lib/plugin/notebook/notebook-renderers.js.map +1 -1
  596. package/lib/plugin/notebook/notebooks.d.ts +22 -0
  597. package/lib/plugin/notebook/notebooks.d.ts.map +1 -1
  598. package/lib/plugin/notebook/notebooks.js +7 -7
  599. package/lib/plugin/notebook/notebooks.js.map +1 -1
  600. package/lib/plugin/notification.d.ts +22 -0
  601. package/lib/plugin/notification.d.ts.map +1 -1
  602. package/lib/plugin/notification.js.map +1 -1
  603. package/lib/plugin/output-channel/log-output-channel.d.ts +22 -0
  604. package/lib/plugin/output-channel/log-output-channel.d.ts.map +1 -1
  605. package/lib/plugin/output-channel/log-output-channel.js.map +1 -1
  606. package/lib/plugin/output-channel/output-channel-item.d.ts +22 -0
  607. package/lib/plugin/output-channel/output-channel-item.d.ts.map +1 -1
  608. package/lib/plugin/output-channel/output-channel-item.js.map +1 -1
  609. package/lib/plugin/output-channel-registry.d.ts +22 -0
  610. package/lib/plugin/output-channel-registry.d.ts.map +1 -1
  611. package/lib/plugin/output-channel-registry.js.map +1 -1
  612. package/lib/plugin/path.js.map +1 -1
  613. package/lib/plugin/plugin-context.d.ts +23 -0
  614. package/lib/plugin/plugin-context.d.ts.map +1 -1
  615. package/lib/plugin/plugin-context.js +9 -8
  616. package/lib/plugin/plugin-context.js.map +1 -1
  617. package/lib/plugin/plugin-icon-path.d.ts +1 -1
  618. package/lib/plugin/plugin-icon-path.d.ts.map +1 -1
  619. package/lib/plugin/plugin-icon-path.js +1 -1
  620. package/lib/plugin/plugin-icon-path.js.map +1 -1
  621. package/lib/plugin/plugin-manager.d.ts +24 -1
  622. package/lib/plugin/plugin-manager.d.ts.map +1 -1
  623. package/lib/plugin/plugin-manager.js +25 -27
  624. package/lib/plugin/plugin-manager.js.map +1 -1
  625. package/lib/plugin/plugin-storage.d.ts +22 -0
  626. package/lib/plugin/plugin-storage.d.ts.map +1 -1
  627. package/lib/plugin/plugin-storage.js +4 -4
  628. package/lib/plugin/plugin-storage.js.map +1 -1
  629. package/lib/plugin/preference-registry.d.ts +23 -1
  630. package/lib/plugin/preference-registry.d.ts.map +1 -1
  631. package/lib/plugin/preference-registry.js +11 -11
  632. package/lib/plugin/preference-registry.js.map +1 -1
  633. package/lib/plugin/prefix-sum-computer.js.map +1 -1
  634. package/lib/plugin/quick-open.d.ts +23 -1
  635. package/lib/plugin/quick-open.d.ts.map +1 -1
  636. package/lib/plugin/quick-open.js +5 -5
  637. package/lib/plugin/quick-open.js.map +1 -1
  638. package/lib/plugin/scm.d.ts +22 -0
  639. package/lib/plugin/scm.d.ts.map +1 -1
  640. package/lib/plugin/scm.js +57 -57
  641. package/lib/plugin/scm.js.map +1 -1
  642. package/lib/plugin/secrets-ext.d.ts +22 -0
  643. package/lib/plugin/secrets-ext.d.ts.map +1 -1
  644. package/lib/plugin/secrets-ext.js +4 -4
  645. package/lib/plugin/secrets-ext.js.map +1 -1
  646. package/lib/plugin/status-bar/status-bar-item.d.ts +22 -0
  647. package/lib/plugin/status-bar/status-bar-item.d.ts.map +1 -1
  648. package/lib/plugin/status-bar/status-bar-item.js.map +1 -1
  649. package/lib/plugin/status-bar-message-registry.d.ts +22 -0
  650. package/lib/plugin/status-bar-message-registry.d.ts.map +1 -1
  651. package/lib/plugin/status-bar-message-registry.js.map +1 -1
  652. package/lib/plugin/tabs.d.ts +22 -0
  653. package/lib/plugin/tabs.d.ts.map +1 -1
  654. package/lib/plugin/tabs.js +22 -18
  655. package/lib/plugin/tabs.js.map +1 -1
  656. package/lib/plugin/tasks/task-provider.d.ts +22 -0
  657. package/lib/plugin/tasks/task-provider.d.ts.map +1 -1
  658. package/lib/plugin/tasks/task-provider.js.map +1 -1
  659. package/lib/plugin/tasks/tasks.d.ts +23 -1
  660. package/lib/plugin/tasks/tasks.d.ts.map +1 -1
  661. package/lib/plugin/tasks/tasks.js.map +1 -1
  662. package/lib/plugin/telemetry-ext.js.map +1 -1
  663. package/lib/plugin/terminal-ext.d.ts +23 -0
  664. package/lib/plugin/terminal-ext.d.ts.map +1 -1
  665. package/lib/plugin/terminal-ext.js +15 -15
  666. package/lib/plugin/terminal-ext.js.map +1 -1
  667. package/lib/plugin/test-item.d.ts +22 -0
  668. package/lib/plugin/test-item.d.ts.map +1 -1
  669. package/lib/plugin/test-item.js +17 -17
  670. package/lib/plugin/test-item.js.map +1 -1
  671. package/lib/plugin/tests.d.ts +24 -2
  672. package/lib/plugin/tests.d.ts.map +1 -1
  673. package/lib/plugin/tests.js +8 -9
  674. package/lib/plugin/tests.js.map +1 -1
  675. package/lib/plugin/text-editor.d.ts +23 -1
  676. package/lib/plugin/text-editor.d.ts.map +1 -1
  677. package/lib/plugin/text-editor.js +0 -1
  678. package/lib/plugin/text-editor.js.map +1 -1
  679. package/lib/plugin/text-editors.d.ts +22 -0
  680. package/lib/plugin/text-editors.d.ts.map +1 -1
  681. package/lib/plugin/text-editors.js.map +1 -1
  682. package/lib/plugin/theming.js.map +1 -1
  683. package/lib/plugin/timeline.d.ts +23 -0
  684. package/lib/plugin/timeline.d.ts.map +1 -1
  685. package/lib/plugin/timeline.js.map +1 -1
  686. package/lib/plugin/tree/tree-views.d.ts +22 -0
  687. package/lib/plugin/tree/tree-views.d.ts.map +1 -1
  688. package/lib/plugin/tree/tree-views.js.map +1 -1
  689. package/lib/plugin/type-converters.d.ts +22 -0
  690. package/lib/plugin/type-converters.d.ts.map +1 -1
  691. package/lib/plugin/type-converters.js +33 -33
  692. package/lib/plugin/type-converters.js.map +1 -1
  693. package/lib/plugin/type-converters.spec.js.map +1 -1
  694. package/lib/plugin/types-impl.d.ts +44 -13
  695. package/lib/plugin/types-impl.d.ts.map +1 -1
  696. package/lib/plugin/types-impl.js +485 -469
  697. package/lib/plugin/types-impl.js.map +1 -1
  698. package/lib/plugin/types-impl.spec.js.map +1 -1
  699. package/lib/plugin/webview-views.d.ts +22 -0
  700. package/lib/plugin/webview-views.d.ts.map +1 -1
  701. package/lib/plugin/webview-views.js.map +1 -1
  702. package/lib/plugin/webviews.d.ts +22 -0
  703. package/lib/plugin/webviews.d.ts.map +1 -1
  704. package/lib/plugin/webviews.js +10 -10
  705. package/lib/plugin/webviews.js.map +1 -1
  706. package/lib/plugin/window-state.d.ts +25 -1
  707. package/lib/plugin/window-state.d.ts.map +1 -1
  708. package/lib/plugin/window-state.js +11 -6
  709. package/lib/plugin/window-state.js.map +1 -1
  710. package/lib/plugin/word-helper.js.map +1 -1
  711. package/lib/plugin/workspace.d.ts +22 -0
  712. package/lib/plugin/workspace.d.ts.map +1 -1
  713. package/lib/plugin/workspace.js +12 -12
  714. package/lib/plugin/workspace.js.map +1 -1
  715. package/package.json +29 -29
  716. package/src/common/plugin-api-rpc.ts +7 -6
  717. package/src/common/plugin-protocol.ts +1 -0
  718. package/src/hosted/node/hosted-plugin-deployer-handler.ts +6 -0
  719. package/src/main/browser/custom-editors/custom-editor-widget.ts +3 -10
  720. package/src/main/browser/custom-editors/custom-editors-main.ts +15 -36
  721. package/src/main/browser/editors-and-documents-main.ts +3 -3
  722. package/src/main/browser/notebooks/renderers/cell-output-webview.tsx +1 -0
  723. package/src/main/browser/plugin-ext-frontend-module.ts +0 -3
  724. package/src/main/browser/quick-open-main.ts +20 -7
  725. package/src/main/browser/tabs/tabs-main.ts +36 -9
  726. package/src/main/browser/webviews-main.ts +1 -1
  727. package/src/main/browser/window-activity-tracker.ts +96 -0
  728. package/src/main/browser/window-state-main.ts +10 -1
  729. package/src/main/node/plugin-ext-backend-module.ts +9 -0
  730. package/src/main/node/plugin-remote-cli-contribution.ts +36 -0
  731. package/src/main/node/plugin-remote-copy-contribution.ts +36 -0
  732. package/src/main/node/plugin-service.ts +1 -1
  733. package/src/plugin/custom-editors.ts +1 -1
  734. package/src/plugin/plugin-context.ts +2 -0
  735. package/src/plugin/quick-open.ts +1 -1
  736. package/src/plugin/tabs.ts +7 -2
  737. package/src/plugin/text-editor.ts +2 -3
  738. package/src/plugin/types-impl.ts +33 -10
  739. package/src/plugin/window-state.ts +13 -6
  740. package/lib/main/browser/view-column-service.d.ts +0 -24
  741. package/lib/main/browser/view-column-service.d.ts.map +0 -1
  742. package/lib/main/browser/view-column-service.js +0 -119
  743. package/lib/main/browser/view-column-service.js.map +0 -1
  744. package/src/main/browser/view-column-service.ts +0 -125
@@ -25,7 +25,7 @@ import { RPCProtocol } from '../../../common/rpc-protocol';
25
25
  import { HostedPluginSupport } from '../../../hosted/browser/hosted-plugin';
26
26
  import { PluginCustomEditorRegistry } from './plugin-custom-editor-registry';
27
27
  import { CustomEditorWidget } from './custom-editor-widget';
28
- import { Emitter, UNTITLED_SCHEME } from '@theia/core';
28
+ import { Emitter } from '@theia/core';
29
29
  import { UriComponents } from '../../../common/uri-components';
30
30
  import { URI } from '@theia/core/shared/vscode-uri';
31
31
  import TheiaURI from '@theia/core/lib/common/uri';
@@ -189,7 +189,7 @@ export class CustomEditorsMainImpl implements CustomEditorsMain, Disposable {
189
189
  return this.customEditorService.models.add(resource, viewType, model);
190
190
  }
191
191
  case CustomEditorModelType.Custom: {
192
- const model = MainCustomEditorModel.create(this.proxy, viewType, resource, this.undoRedoService, this.fileService, this.editorPreferences, cancellationToken);
192
+ const model = MainCustomEditorModel.create(this.proxy, viewType, resource, this.undoRedoService, this.fileService, cancellationToken);
193
193
  return this.customEditorService.models.add(resource, viewType, model);
194
194
  }
195
195
  }
@@ -297,8 +297,8 @@ export class MainCustomEditorModel implements CustomEditorModel {
297
297
  private readonly onDirtyChangedEmitter = new Emitter<void>();
298
298
  readonly onDirtyChanged = this.onDirtyChangedEmitter.event;
299
299
 
300
- autoSave: 'off' | 'afterDelay' | 'onFocusChange' | 'onWindowChange';
301
- autoSaveDelay: number;
300
+ private readonly onContentChangedEmitter = new Emitter<void>();
301
+ readonly onContentChanged = this.onContentChangedEmitter.event;
302
302
 
303
303
  static async create(
304
304
  proxy: CustomEditorsExt,
@@ -306,11 +306,10 @@ export class MainCustomEditorModel implements CustomEditorModel {
306
306
  resource: TheiaURI,
307
307
  undoRedoService: UndoRedoService,
308
308
  fileService: FileService,
309
- editorPreferences: EditorPreferences,
310
309
  cancellation: CancellationToken,
311
310
  ): Promise<MainCustomEditorModel> {
312
311
  const { editable } = await proxy.$createCustomDocument(resource.toComponents(), viewType, {}, cancellation);
313
- return new MainCustomEditorModel(proxy, viewType, resource, editable, undoRedoService, fileService, editorPreferences);
312
+ return new MainCustomEditorModel(proxy, viewType, resource, editable, undoRedoService, fileService);
314
313
  }
315
314
 
316
315
  constructor(
@@ -319,22 +318,8 @@ export class MainCustomEditorModel implements CustomEditorModel {
319
318
  private readonly editorResource: TheiaURI,
320
319
  private readonly editable: boolean,
321
320
  private readonly undoRedoService: UndoRedoService,
322
- private readonly fileService: FileService,
323
- private readonly editorPreferences: EditorPreferences
321
+ private readonly fileService: FileService
324
322
  ) {
325
- this.autoSave = this.editorPreferences.get('files.autoSave', undefined, editorResource.toString());
326
- this.autoSaveDelay = this.editorPreferences.get('files.autoSaveDelay', undefined, editorResource.toString());
327
-
328
- this.toDispose.push(
329
- this.editorPreferences.onPreferenceChanged(event => {
330
- if (event.preferenceName === 'files.autoSave') {
331
- this.autoSave = this.editorPreferences.get('files.autoSave', undefined, editorResource.toString());
332
- }
333
- if (event.preferenceName === 'files.autoSaveDelay') {
334
- this.autoSaveDelay = this.editorPreferences.get('files.autoSaveDelay', undefined, editorResource.toString());
335
- }
336
- })
337
- );
338
323
  this.toDispose.push(this.onDirtyChangedEmitter);
339
324
  }
340
325
 
@@ -505,13 +490,7 @@ export class MainCustomEditorModel implements CustomEditorModel {
505
490
  if (this.dirty !== wasDirty) {
506
491
  this.onDirtyChangedEmitter.fire();
507
492
  }
508
-
509
- if (this.autoSave !== 'off' && this.dirty && this.resource.scheme !== UNTITLED_SCHEME) {
510
- const handle = window.setTimeout(() => {
511
- this.save();
512
- window.clearTimeout(handle);
513
- }, this.autoSaveDelay);
514
- }
493
+ this.onContentChangedEmitter.fire();
515
494
  }
516
495
 
517
496
  }
@@ -521,6 +500,8 @@ export class CustomTextEditorModel implements CustomEditorModel {
521
500
  private readonly toDispose = new DisposableCollection();
522
501
  private readonly onDirtyChangedEmitter = new Emitter<void>();
523
502
  readonly onDirtyChanged = this.onDirtyChangedEmitter.event;
503
+ private readonly onContentChangedEmitter = new Emitter<void>();
504
+ readonly onContentChanged = this.onContentChangedEmitter.event;
524
505
 
525
506
  static async create(
526
507
  viewType: string,
@@ -544,15 +525,13 @@ export class CustomTextEditorModel implements CustomEditorModel {
544
525
  this.onDirtyChangedEmitter.fire();
545
526
  })
546
527
  );
528
+ this.toDispose.push(
529
+ this.editorTextModel.onContentChanged(e => {
530
+ this.onContentChangedEmitter.fire();
531
+ })
532
+ );
547
533
  this.toDispose.push(this.onDirtyChangedEmitter);
548
- }
549
-
550
- get autoSave(): 'off' | 'afterDelay' | 'onFocusChange' | 'onWindowChange' {
551
- return this.editorTextModel.autoSave;
552
- }
553
-
554
- get autoSaveDelay(): number {
555
- return this.editorTextModel.autoSaveDelay;
534
+ this.toDispose.push(this.onContentChangedEmitter);
556
535
  }
557
536
 
558
537
  dispose(): void {
@@ -32,7 +32,7 @@ import { MonacoEditor } from '@theia/monaco/lib/browser/monaco-editor';
32
32
  import { TextEditorMain } from './text-editor-main';
33
33
  import { DisposableCollection, Emitter, URI } from '@theia/core';
34
34
  import { EditorManager, EditorWidget } from '@theia/editor/lib/browser';
35
- import { SaveResourceService } from '@theia/core/lib/browser/save-resource-service';
35
+ import { SaveableService } from '@theia/core/lib/browser/saveable-service';
36
36
 
37
37
  export class EditorsAndDocumentsMain implements Disposable {
38
38
 
@@ -43,7 +43,7 @@ export class EditorsAndDocumentsMain implements Disposable {
43
43
 
44
44
  private readonly modelService: EditorModelService;
45
45
  private readonly editorManager: EditorManager;
46
- private readonly saveResourceService: SaveResourceService;
46
+ private readonly saveResourceService: SaveableService;
47
47
 
48
48
  private readonly onTextEditorAddEmitter = new Emitter<TextEditorMain[]>();
49
49
  private readonly onTextEditorRemoveEmitter = new Emitter<string[]>();
@@ -64,7 +64,7 @@ export class EditorsAndDocumentsMain implements Disposable {
64
64
 
65
65
  this.editorManager = container.get(EditorManager);
66
66
  this.modelService = container.get(EditorModelService);
67
- this.saveResourceService = container.get(SaveResourceService);
67
+ this.saveResourceService = container.get(SaveableService);
68
68
 
69
69
  this.stateComputer = new EditorAndDocumentStateComputer(d => this.onDelta(d), this.editorManager, this.modelService);
70
70
  this.toDispose.push(this.stateComputer);
@@ -187,6 +187,7 @@ export class CellOutputWebviewImpl implements CellOutputWebview, Disposable {
187
187
  }
188
188
 
189
189
  this.webviewWidget = await this.widgetManager.getOrCreateWidget(WebviewWidget.FACTORY_ID, { id: this.id });
190
+ this.webviewWidget.parent = this.editor ?? null;
190
191
  this.webviewWidget.setContentOptions({
191
192
  allowScripts: true,
192
193
  // eslint-disable-next-line max-len
@@ -47,7 +47,6 @@ import { PluginDebugService } from './debug/plugin-debug-service';
47
47
  import { DebugService } from '@theia/debug/lib/common/debug-service';
48
48
  import { PluginSharedStyle } from './plugin-shared-style';
49
49
  import { SelectionProviderCommandContribution } from './selection-provider-command';
50
- import { ViewColumnService } from './view-column-service';
51
50
  import { ViewContextKeyService } from './view/view-context-key-service';
52
51
  import { PluginViewWidget, PluginViewWidgetIdentifier } from './view/plugin-view-widget';
53
52
  import { TreeViewWidgetOptions, VIEW_ITEM_CONTEXT_MENU, PluginTree, TreeViewWidget, PluginTreeModel } from './view/tree-view-widget';
@@ -244,8 +243,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
244
243
  bind(PluginDebugSessionContributionRegistry).toSelf().inSingletonScope();
245
244
  rebind(DebugSessionContributionRegistry).toService(PluginDebugSessionContributionRegistry);
246
245
 
247
- bind(ViewColumnService).toSelf().inSingletonScope();
248
-
249
246
  bind(CommentsService).to(PluginCommentService).inSingletonScope();
250
247
  bind(CommentingRangeDecorator).toSelf().inSingletonScope();
251
248
  bind(CommentsContribution).toSelf().inSingletonScope();
@@ -35,6 +35,7 @@ import {
35
35
  QuickInputButtonHandle,
36
36
  QuickInputService,
37
37
  QuickPickItem,
38
+ QuickPickItemOrSeparator,
38
39
  codiconArray
39
40
  } from '@theia/core/lib/browser';
40
41
  import { DisposableCollection, Disposable } from '@theia/core/lib/common/disposable';
@@ -46,10 +47,11 @@ import { UriComponents } from '../../common/uri-components';
46
47
  import { URI } from '@theia/core/shared/vscode-uri';
47
48
  import { ThemeIcon } from '@theia/monaco-editor-core/esm/vs/base/common/themables';
48
49
  import { isUriComponents } from '@theia/monaco-editor-core/esm/vs/base/common/uri';
50
+ import { QuickPickSeparator } from '@theia/core';
49
51
 
50
52
  export interface QuickInputSession {
51
53
  input: QuickInput;
52
- handlesToItems: Map<number, QuickPickItem>;
54
+ handlesToItems: Map<number, QuickPickItemOrSeparator>;
53
55
  }
54
56
 
55
57
  interface IconPath {
@@ -63,7 +65,7 @@ export class QuickOpenMainImpl implements QuickOpenMain, Disposable {
63
65
  private proxy: QuickOpenExt;
64
66
  private delegate: MonacoQuickInputService;
65
67
  private readonly items: Record<number, {
66
- resolve(items: QuickPickItem[]): void;
68
+ resolve(items: QuickPickItemOrSeparator[]): void;
67
69
  reject(error: Error): void;
68
70
  }> = {};
69
71
 
@@ -80,7 +82,7 @@ export class QuickOpenMainImpl implements QuickOpenMain, Disposable {
80
82
  }
81
83
 
82
84
  async $show(instance: number, options: TransferQuickPickOptions<TransferQuickPickItem>, token: CancellationToken): Promise<number | number[] | undefined> {
83
- const contents = new Promise<QuickPickItem[]>((resolve, reject) => {
85
+ const contents = new Promise<QuickPickItemOrSeparator[]>((resolve, reject) => {
84
86
  this.items[instance] = { resolve, reject };
85
87
  });
86
88
 
@@ -92,7 +94,7 @@ export class QuickOpenMainImpl implements QuickOpenMain, Disposable {
92
94
  this.proxy.$onItemSelected(Number.parseInt((<QuickPickItem>el).id!));
93
95
  }
94
96
  },
95
- activeItem: activeItem ? this.toQuickPickItem(activeItem) : undefined
97
+ activeItem: this.isItem(activeItem) ? this.toQuickPickItem(activeItem) : undefined
96
98
  };
97
99
 
98
100
  const result = await this.delegate.pick(contents, transformedOptions, token);
@@ -105,6 +107,10 @@ export class QuickOpenMainImpl implements QuickOpenMain, Disposable {
105
107
  return undefined;
106
108
  }
107
109
 
110
+ private isItem(item?: TransferQuickPickItem): item is TransferQuickPickItem & { kind: 'item' } {
111
+ return item?.kind === 'item';
112
+ }
113
+
108
114
  private normalizeIconPath(path: UriComponents | { light: UriComponents; dark: UriComponents } | ThemeIcon | undefined): {
109
115
  iconPath?: IconPath
110
116
  iconClasses?: string[]
@@ -127,10 +133,17 @@ export class QuickOpenMainImpl implements QuickOpenMain, Disposable {
127
133
  }
128
134
 
129
135
  private toQuickPickItem(item: undefined): undefined;
130
- private toQuickPickItem(item: TransferQuickPickItem): QuickPickItem
131
- private toQuickPickItem(item: TransferQuickPickItem | undefined): QuickPickItem | undefined {
136
+ private toQuickPickItem(item: TransferQuickPickItem & { kind: 'item' }): QuickPickItem;
137
+ private toQuickPickItem(item: TransferQuickPickItem & { kind: 'separator' }): QuickPickSeparator;
138
+ private toQuickPickItem(item: TransferQuickPickItem): QuickPickItemOrSeparator;
139
+ private toQuickPickItem(item: TransferQuickPickItem | undefined): QuickPickItemOrSeparator | undefined {
132
140
  if (!item) {
133
141
  return undefined;
142
+ } else if (item.kind === 'separator') {
143
+ return {
144
+ type: 'separator',
145
+ label: item.label
146
+ };
134
147
  }
135
148
  return {
136
149
  ...this.normalizeIconPath(item.iconPath),
@@ -309,7 +322,7 @@ export class QuickOpenMainImpl implements QuickOpenMain, Disposable {
309
322
  }
310
323
  } else if (param === 'items') {
311
324
  handlesToItems.clear();
312
- const items: QuickPickItem[] = [];
325
+ const items: QuickPickItemOrSeparator[] = [];
313
326
  params[param].forEach((transferItem: TransferQuickPickItem) => {
314
327
  const item = this.toQuickPickItem(transferItem);
315
328
  items.push(item);
@@ -24,6 +24,8 @@ import { MonacoDiffEditor } from '@theia/monaco/lib/browser/monaco-diff-editor';
24
24
  import { toUriComponents } from '../hierarchy/hierarchy-types-converters';
25
25
  import { TerminalWidget } from '@theia/terminal/lib/browser/base/terminal-widget';
26
26
  import { DisposableCollection } from '@theia/core';
27
+ import { NotebookEditorWidget } from '@theia/notebook/lib/browser';
28
+ import { ViewColumnService } from '@theia/core/lib/browser/shell/view-column-service';
27
29
 
28
30
  interface TabInfo {
29
31
  tab: TabDto;
@@ -46,6 +48,14 @@ export class TabsMainImpl implements TabsMain, Disposable {
46
48
  private currentActiveGroup: TabGroupDto;
47
49
 
48
50
  private tabGroupChanged: boolean = false;
51
+ private viewColumnService: ViewColumnService;
52
+
53
+ private readonly defaultTabGroup: TabGroupDto = {
54
+ groupId: 0,
55
+ tabs: [],
56
+ isActive: true,
57
+ viewColumn: 0
58
+ };
49
59
 
50
60
  constructor(
51
61
  rpc: RPCProtocol,
@@ -54,6 +64,7 @@ export class TabsMainImpl implements TabsMain, Disposable {
54
64
  this.proxy = rpc.getProxy(MAIN_RPC_CONTEXT.TABS_EXT);
55
65
 
56
66
  this.applicationShell = container.get(ApplicationShell);
67
+ this.viewColumnService = container.get(ViewColumnService);
57
68
  this.createTabsModel();
58
69
 
59
70
  const tabBars = this.applicationShell.mainPanel.tabBars();
@@ -100,15 +111,20 @@ export class TabsMainImpl implements TabsMain, Disposable {
100
111
  }
101
112
 
102
113
  protected createTabsModel(): void {
114
+ if (this.applicationShell.mainAreaTabBars.length === 0) {
115
+ this.proxy.$acceptEditorTabModel([this.defaultTabGroup]);
116
+ return;
117
+ }
103
118
  const newTabGroupModel = new Map<TabBar<Widget>, TabGroupDto>();
104
119
  this.tabInfoLookup.clear();
105
120
  this.disposableTabBarListeners.dispose();
106
- this.applicationShell.mainAreaTabBars.forEach(tabBar => {
107
- this.attachListenersToTabBar(tabBar);
108
- const groupDto = this.createTabGroupDto(tabBar);
109
- tabBar.titles.forEach((title, index) => this.tabInfoLookup.set(title, { group: groupDto, tab: groupDto.tabs[index], tabIndex: index }));
110
- newTabGroupModel.set(tabBar, groupDto);
111
- });
121
+ this.applicationShell.mainAreaTabBars
122
+ .forEach((tabBar, i) => {
123
+ this.attachListenersToTabBar(tabBar);
124
+ const groupDto = this.createTabGroupDto(tabBar, i);
125
+ tabBar.titles.forEach((title, index) => this.tabInfoLookup.set(title, { group: groupDto, tab: groupDto.tabs[index], tabIndex: index }));
126
+ newTabGroupModel.set(tabBar, groupDto);
127
+ });
112
128
  if (newTabGroupModel.size > 0 && Array.from(newTabGroupModel.values()).indexOf(this.currentActiveGroup) < 0) {
113
129
  this.currentActiveGroup = this.tabInfoLookup.get(this.applicationShell.mainPanel.currentTitle!)?.group ?? newTabGroupModel.values().next().value;
114
130
  this.currentActiveGroup.isActive = true;
@@ -134,15 +150,17 @@ export class TabsMainImpl implements TabsMain, Disposable {
134
150
  return `${groupId}~${tabTitle.owner.id}`;
135
151
  }
136
152
 
137
- protected createTabGroupDto(tabBar: TabBar<Widget>): TabGroupDto {
138
- const oldDto = this.tabGroupModel.get(tabBar);
153
+ protected createTabGroupDto(tabBar: TabBar<Widget>, index: number): TabGroupDto {
154
+ const oldDto = index === 0 ? this.defaultTabGroup : this.tabGroupModel.get(tabBar);
139
155
  const groupId = oldDto?.groupId ?? this.groupIdCounter++;
140
156
  const tabs = tabBar.titles.map(title => this.createTabDto(title, groupId));
157
+ const viewColumn = this.viewColumnService.getViewColumn(tabBar.id)
158
+ ?? this.applicationShell.allTabBars.indexOf(tabBar);
141
159
  return {
142
160
  groupId,
143
161
  tabs,
144
162
  isActive: false,
145
- viewColumn: 1
163
+ viewColumn
146
164
  };
147
165
  }
148
166
 
@@ -182,6 +200,12 @@ export class TabsMainImpl implements TabsMain, Disposable {
182
200
  return {
183
201
  kind: TabInputKind.TerminalEditorInput
184
202
  };
203
+ } else if (widget instanceof NotebookEditorWidget) {
204
+ return {
205
+ kind: TabInputKind.NotebookInput,
206
+ notebookType: widget.notebookType,
207
+ uri: toUriComponents(widget.model?.uri.toString() ?? '')
208
+ };
185
209
  }
186
210
 
187
211
  return { kind: TabInputKind.UnknownInput };
@@ -232,6 +256,9 @@ export class TabsMainImpl implements TabsMain, Disposable {
232
256
  }
233
257
  const oldTabDto = tabInfo.tab;
234
258
  const newTabDto = this.createTabDto(title, tabInfo.group.groupId);
259
+ if (!oldTabDto.isActive && newTabDto.isActive) {
260
+ this.currentActiveGroup.tabs.filter(tab => tab.isActive).forEach(tab => tab.isActive = false);
261
+ }
235
262
  if (newTabDto.isActive && !tabInfo.group.isActive) {
236
263
  tabInfo.group.isActive = true;
237
264
  this.currentActiveGroup.isActive = false;
@@ -23,7 +23,7 @@ import { ViewBadge, WebviewOptions, WebviewPanelOptions, WebviewPanelShowOptions
23
23
  import { ApplicationShell } from '@theia/core/lib/browser/shell/application-shell';
24
24
  import { WebviewWidget, WebviewWidgetIdentifier } from './webview/webview';
25
25
  import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
26
- import { ViewColumnService } from './view-column-service';
26
+ import { ViewColumnService } from '@theia/core/lib/browser/shell/view-column-service';
27
27
  import { WidgetManager } from '@theia/core/lib/browser/widget-manager';
28
28
  import { JSONExt } from '@theia/core/shared/@phosphor/coreutils';
29
29
  import { Mutable } from '@theia/core/lib/common/types';
@@ -0,0 +1,96 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2024 STMicroelectronics and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import { Disposable, Emitter, Event } from '@theia/core';
18
+
19
+ const CHECK_INACTIVITY_LIMIT = 30;
20
+ const CHECK_INACTIVITY_INTERVAL = 1000;
21
+
22
+ const eventListenerOptions: AddEventListenerOptions = {
23
+ passive: true,
24
+ capture: true
25
+ };
26
+ export class WindowActivityTracker implements Disposable {
27
+
28
+ private inactivityCounter = 0; // number of times inactivity was checked since last reset
29
+ private readonly inactivityLimit = CHECK_INACTIVITY_LIMIT; // number of inactivity checks done before sending inactive signal
30
+ private readonly checkInactivityInterval = CHECK_INACTIVITY_INTERVAL; // check interval in milliseconds
31
+ private interval: NodeJS.Timeout | undefined;
32
+
33
+ protected readonly onDidChangeActiveStateEmitter = new Emitter<boolean>();
34
+ private _activeState: boolean = true;
35
+
36
+ constructor(readonly win: Window) {
37
+ this.initializeListeners(this.win);
38
+ }
39
+
40
+ get onDidChangeActiveState(): Event<boolean> {
41
+ return this.onDidChangeActiveStateEmitter.event;
42
+ }
43
+
44
+ private set activeState(newState: boolean) {
45
+ if (this._activeState !== newState) {
46
+ this._activeState = newState;
47
+ this.onDidChangeActiveStateEmitter.fire(this._activeState);
48
+ }
49
+ }
50
+
51
+ private initializeListeners(win: Window): void {
52
+ // currently assumes activity based on key/mouse/touch pressed, not on mouse move or scrolling.
53
+ win.addEventListener('mousedown', this.resetInactivity, eventListenerOptions);
54
+ win.addEventListener('keydown', this.resetInactivity, eventListenerOptions);
55
+ win.addEventListener('touchstart', this.resetInactivity, eventListenerOptions);
56
+ }
57
+
58
+ dispose(): void {
59
+ this.stopTracking();
60
+ this.win.removeEventListener('mousedown', this.resetInactivity);
61
+ this.win.removeEventListener('keydown', this.resetInactivity);
62
+ this.win.removeEventListener('touchstart', this.resetInactivity);
63
+
64
+ }
65
+
66
+ // Reset inactivity time
67
+ private resetInactivity = (): void => {
68
+ this.inactivityCounter = 0;
69
+ if (!this.interval) {
70
+ // it was not active. Set as active and restart tracking inactivity
71
+ this.activeState = true;
72
+ this.startTracking();
73
+ }
74
+ };
75
+
76
+ // Check inactivity status
77
+ private checkInactivity = (): void => {
78
+ this.inactivityCounter++;
79
+ if (this.inactivityCounter >= this.inactivityLimit) {
80
+ this.activeState = false;
81
+ this.stopTracking();
82
+ }
83
+ };
84
+
85
+ public startTracking(): void {
86
+ this.stopTracking();
87
+ this.interval = setInterval(this.checkInactivity, this.checkInactivityInterval);
88
+ }
89
+
90
+ public stopTracking(): void {
91
+ if (this.interval) {
92
+ clearInterval(this.interval);
93
+ this.interval = undefined;
94
+ }
95
+ }
96
+ }
@@ -23,6 +23,7 @@ import { UriComponents } from '../../common/uri-components';
23
23
  import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
24
24
  import { open, OpenerService } from '@theia/core/lib/browser/opener-service';
25
25
  import { ExternalUriService } from '@theia/core/lib/browser/external-uri-service';
26
+ import { WindowActivityTracker } from './window-activity-tracker';
26
27
 
27
28
  export class WindowStateMain implements WindowMain, Disposable {
28
29
 
@@ -46,6 +47,10 @@ export class WindowStateMain implements WindowMain, Disposable {
46
47
  const fireDidBlur = () => this.onFocusChanged(false);
47
48
  window.addEventListener('blur', fireDidBlur);
48
49
  this.toDispose.push(Disposable.create(() => window.removeEventListener('blur', fireDidBlur)));
50
+
51
+ const tracker = new WindowActivityTracker(window);
52
+ this.toDispose.push(tracker.onDidChangeActiveState(isActive => this.onActiveStateChanged(isActive)));
53
+ this.toDispose.push(tracker);
49
54
  }
50
55
 
51
56
  dispose(): void {
@@ -53,7 +58,11 @@ export class WindowStateMain implements WindowMain, Disposable {
53
58
  }
54
59
 
55
60
  private onFocusChanged(focused: boolean): void {
56
- this.proxy.$onWindowStateChanged(focused);
61
+ this.proxy.$onDidChangeWindowFocus(focused);
62
+ }
63
+
64
+ private onActiveStateChanged(isActive: boolean): void {
65
+ this.proxy.$onDidChangeWindowActive(isActive);
57
66
  }
58
67
 
59
68
  async $openUri(uriComponent: UriComponents): Promise<boolean> {
@@ -42,6 +42,10 @@ import { PluginUninstallationManager } from './plugin-uninstallation-manager';
42
42
  import { LocalizationServerImpl } from '@theia/core/lib/node/i18n/localization-server';
43
43
  import { PluginLocalizationServer } from './plugin-localization-server';
44
44
  import { PluginMgmtCliContribution } from './plugin-mgmt-cli-contribution';
45
+ import { PluginRemoteCliContribution } from './plugin-remote-cli-contribution';
46
+ import { RemoteCliContribution } from '@theia/core/lib/node/remote/remote-cli-contribution';
47
+ import { PluginRemoteCopyContribution } from './plugin-remote-copy-contribution';
48
+ import { RemoteCopyContribution } from '@theia/core/lib/node/remote/remote-copy-contribution';
45
49
 
46
50
  export function bindMainBackend(bind: interfaces.Bind, unbind: interfaces.Unbind, isBound: interfaces.IsBound, rebind: interfaces.Rebind): void {
47
51
  bind(PluginApiContribution).toSelf().inSingletonScope();
@@ -89,6 +93,11 @@ export function bindMainBackend(bind: interfaces.Bind, unbind: interfaces.Unbind
89
93
  bind(PluginMgmtCliContribution).toSelf().inSingletonScope();
90
94
  bind(CliContribution).toService(PluginMgmtCliContribution);
91
95
 
96
+ bind(PluginRemoteCliContribution).toSelf().inSingletonScope();
97
+ bind(RemoteCliContribution).toService(PluginRemoteCliContribution);
98
+ bind(PluginRemoteCopyContribution).toSelf().inSingletonScope();
99
+ bind(RemoteCopyContribution).toService(PluginRemoteCopyContribution);
100
+
92
101
  bind(WebviewBackendSecurityWarnings).toSelf().inSingletonScope();
93
102
  bind(BackendApplicationContribution).toService(WebviewBackendSecurityWarnings);
94
103
 
@@ -0,0 +1,36 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2024 TypeFox and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import { MaybePromise } from '@theia/core';
18
+ import { RemoteCliContext, RemoteCliContribution } from '@theia/core/lib/node/remote/remote-cli-contribution';
19
+ import { inject, injectable } from '@theia/core/shared/inversify';
20
+ import { PluginCliContribution } from './plugin-cli-contribution';
21
+
22
+ @injectable()
23
+ export class PluginRemoteCliContribution implements RemoteCliContribution {
24
+
25
+ @inject(PluginCliContribution)
26
+ protected readonly pluginCliContribution: PluginCliContribution;
27
+
28
+ enhanceArgs(context: RemoteCliContext): MaybePromise<string[]> {
29
+ const pluginsFolder = this.pluginCliContribution.localDir();
30
+ if (!pluginsFolder) {
31
+ return [];
32
+ } else {
33
+ return ['--plugins=local-dir:./plugins'];
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,36 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2024 TypeFox and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import { RemoteCopyContribution, RemoteCopyRegistry } from '@theia/core/lib/node/remote/remote-copy-contribution';
18
+ import { inject, injectable } from '@theia/core/shared/inversify';
19
+ import { PluginCliContribution } from './plugin-cli-contribution';
20
+ import { FileUri } from '@theia/core/lib/common/file-uri';
21
+
22
+ @injectable()
23
+ export class PluginRemoteCopyContribution implements RemoteCopyContribution {
24
+
25
+ @inject(PluginCliContribution)
26
+ protected readonly pluginCliContribution: PluginCliContribution;
27
+
28
+ async copy(registry: RemoteCopyRegistry): Promise<void> {
29
+ const localDir = this.pluginCliContribution.localDir();
30
+ if (localDir) {
31
+ const fsPath = FileUri.fsPath(localDir);
32
+ await registry.directory(fsPath, 'plugins');
33
+ }
34
+
35
+ }
36
+ }
@@ -26,7 +26,7 @@ import { environment } from '@theia/core/shared/@theia/application-package/lib/e
26
26
  import { WsRequestValidatorContribution } from '@theia/core/lib/node/ws-request-validators';
27
27
  import { MaybePromise } from '@theia/core/lib/common';
28
28
  import { ApplicationPackage } from '@theia/core/shared/@theia/application-package';
29
- import { BackendRemoteService } from '@theia/core/lib/node/backend-remote-service';
29
+ import { BackendRemoteService } from '@theia/core/lib/node/remote/backend-remote-service';
30
30
 
31
31
  @injectable()
32
32
  export class PluginApiContribution implements BackendApplicationContribution, WsRequestValidatorContribution {
@@ -121,7 +121,7 @@ export class CustomEditorsExtImpl implements CustomEditorsExt {
121
121
  handler: string,
122
122
  viewType: string,
123
123
  title: string,
124
- widgetOpenerOptions: T | undefined,
124
+ widgetOpenerOptions: object | undefined,
125
125
  options: theia.WebviewPanelOptions & theia.WebviewOptions,
126
126
  cancellation: CancellationToken
127
127
  ): Promise<void> {
@@ -200,6 +200,7 @@ import {
200
200
  DocumentPasteEdit,
201
201
  DocumentPasteEditKind,
202
202
  DocumentPasteTriggerKind,
203
+ DocumentDropOrPasteEditKind,
203
204
  ExternalUriOpenerPriority,
204
205
  EditSessionIdentityMatch,
205
206
  TerminalOutputAnchor,
@@ -1302,6 +1303,7 @@ export function createAPIFactory(
1302
1303
  MultiDocumentHighlight,
1303
1304
  DocumentLink,
1304
1305
  DocumentDropEdit,
1306
+ DocumentDropOrPasteEditKind,
1305
1307
  CodeLens,
1306
1308
  CodeActionKind,
1307
1309
  CodeActionTrigger,
@@ -30,8 +30,8 @@ import { convertToTransferQuickPickItems } from './type-converters';
30
30
  import { PluginPackage } from '../common/plugin-protocol';
31
31
  import { QuickInputButtonHandle } from '@theia/core/lib/browser';
32
32
  import { MaybePromise } from '@theia/core/lib/common/types';
33
- import Severity from '@theia/monaco-editor-core/esm/vs/base/common/severity';
34
33
  import { ThemeIcon as MonacoThemeIcon } from '@theia/monaco-editor-core/esm/vs/base/common/themables';
34
+ import { Severity } from '@theia/core/lib/common/severity';
35
35
 
36
36
  const canceledName = 'Canceled';
37
37
  /**
@@ -325,8 +325,13 @@ export class TabsExtImpl implements TabsExt {
325
325
  this.activeGroupId = activeTabGroupId;
326
326
  }
327
327
  }
328
- this.onDidChangeTabGroups.fire(Object.freeze({ opened, closed, changed }));
329
- this.onDidChangeTabs.fire({ opened: tabsOpened, changed: [], closed: [] });
328
+
329
+ if (closed.length > 0 || opened.length > 0 || changed.length > 0) {
330
+ this.onDidChangeTabGroups.fire(Object.freeze({ opened, closed, changed }));
331
+ }
332
+ if (tabsOpened.length > 0) {
333
+ this.onDidChangeTabs.fire({ opened: tabsOpened, changed: [], closed: [] });
334
+ }
330
335
  }
331
336
 
332
337
  $acceptTabGroupUpdate(groupDto: TabGroupDto): void {