@theia/plugin-ext 1.45.1 → 1.46.0-next.72

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 (1138) hide show
  1. package/README.md +54 -54
  2. package/lib/common/arrays.d.ts +23 -23
  3. package/lib/common/arrays.js +60 -60
  4. package/lib/common/assert.d.ts +1 -1
  5. package/lib/common/assert.js +25 -25
  6. package/lib/common/cache.d.ts +11 -11
  7. package/lib/common/cache.js +47 -47
  8. package/lib/common/character-classifier.d.ts +18 -18
  9. package/lib/common/character-classifier.js +60 -60
  10. package/lib/common/collections.d.ts +8 -8
  11. package/lib/common/collections.js +55 -55
  12. package/lib/common/commands.d.ts +3 -3
  13. package/lib/common/commands.js +16 -16
  14. package/lib/common/connection.d.ts +54 -54
  15. package/lib/common/connection.js +107 -107
  16. package/lib/common/disposable-util.d.ts +6 -6
  17. package/lib/common/disposable-util.js +37 -37
  18. package/lib/common/editor-options.d.ts +30 -30
  19. package/lib/common/editor-options.js +72 -72
  20. package/lib/common/env.d.ts +3 -3
  21. package/lib/common/env.js +17 -17
  22. package/lib/common/errors.d.ts +17 -17
  23. package/lib/common/errors.js +58 -58
  24. package/lib/common/id-generator.d.ts +6 -6
  25. package/lib/common/id-generator.js +28 -28
  26. package/lib/common/index.d.ts +3 -3
  27. package/lib/common/index.js +33 -33
  28. package/lib/common/language-pack-service.d.ts +15 -15
  29. package/lib/common/language-pack-service.js +20 -20
  30. package/lib/common/link-computer.d.ts +41 -41
  31. package/lib/common/link-computer.js +275 -275
  32. package/lib/common/object-identifier.d.ts +8 -8
  33. package/lib/common/object-identifier.js +32 -32
  34. package/lib/common/objects.d.ts +1 -1
  35. package/lib/common/objects.js +46 -46
  36. package/lib/common/paths-util.d.ts +3 -3
  37. package/lib/common/paths-util.js +144 -144
  38. package/lib/common/plugin-api-rpc-model.d.ts +755 -755
  39. package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
  40. package/lib/common/plugin-api-rpc-model.js +178 -178
  41. package/lib/common/plugin-api-rpc.d.ts +2112 -2088
  42. package/lib/common/plugin-api-rpc.d.ts.map +1 -1
  43. package/lib/common/plugin-api-rpc.js +304 -302
  44. package/lib/common/plugin-api-rpc.js.map +1 -1
  45. package/lib/common/plugin-ext-api-contribution.d.ts +88 -58
  46. package/lib/common/plugin-ext-api-contribution.d.ts.map +1 -1
  47. package/lib/common/plugin-ext-api-contribution.js +5 -5
  48. package/lib/common/plugin-ext-api-contribution.js.map +1 -1
  49. package/lib/common/plugin-identifiers.d.ts +40 -40
  50. package/lib/common/plugin-identifiers.js +80 -80
  51. package/lib/common/plugin-protocol.d.ts +942 -929
  52. package/lib/common/plugin-protocol.d.ts.map +1 -1
  53. package/lib/common/plugin-protocol.js +75 -74
  54. package/lib/common/plugin-protocol.js.map +1 -1
  55. package/lib/common/proxy-handler.d.ts +72 -65
  56. package/lib/common/proxy-handler.d.ts.map +1 -1
  57. package/lib/common/proxy-handler.js +103 -99
  58. package/lib/common/proxy-handler.js.map +1 -1
  59. package/lib/common/reference-map.d.ts +7 -7
  60. package/lib/common/reference-map.js +39 -39
  61. package/lib/common/rpc-protocol.d.ts +75 -65
  62. package/lib/common/rpc-protocol.d.ts.map +1 -1
  63. package/lib/common/rpc-protocol.js +258 -229
  64. package/lib/common/rpc-protocol.js.map +1 -1
  65. package/lib/common/semantic-tokens-dto.d.ts +18 -18
  66. package/lib/common/semantic-tokens-dto.js +162 -162
  67. package/lib/common/test-types.d.ts +91 -91
  68. package/lib/common/test-types.js +74 -74
  69. package/lib/common/types.d.ts +37 -37
  70. package/lib/common/types.js +121 -121
  71. package/lib/common/uint.d.ts +7 -7
  72. package/lib/common/uint.js +33 -33
  73. package/lib/common/uri-components.d.ts +38 -39
  74. package/lib/common/uri-components.d.ts.map +1 -1
  75. package/lib/common/uri-components.js +62 -66
  76. package/lib/common/uri-components.js.map +1 -1
  77. package/lib/hosted/browser/hosted-plugin-watcher.d.ts +15 -15
  78. package/lib/hosted/browser/hosted-plugin-watcher.js +59 -59
  79. package/lib/hosted/browser/hosted-plugin.d.ts +99 -157
  80. package/lib/hosted/browser/hosted-plugin.d.ts.map +1 -1
  81. package/lib/hosted/browser/hosted-plugin.js +599 -871
  82. package/lib/hosted/browser/hosted-plugin.js.map +1 -1
  83. package/lib/hosted/browser/plugin-worker.d.ts +6 -6
  84. package/lib/hosted/browser/plugin-worker.js +57 -57
  85. package/lib/hosted/browser/worker/debug-stub.d.ts +3 -3
  86. package/lib/hosted/browser/worker/debug-stub.d.ts.map +1 -1
  87. package/lib/hosted/browser/worker/debug-stub.js +29 -29
  88. package/lib/hosted/browser/worker/debug-stub.js.map +1 -1
  89. package/lib/hosted/browser/worker/plugin-manifest-loader.d.ts +2 -2
  90. package/lib/hosted/browser/worker/plugin-manifest-loader.js +107 -107
  91. package/lib/hosted/browser/worker/worker-env-ext.d.ts +13 -14
  92. package/lib/hosted/browser/worker/worker-env-ext.d.ts.map +1 -1
  93. package/lib/hosted/browser/worker/worker-env-ext.js +52 -38
  94. package/lib/hosted/browser/worker/worker-env-ext.js.map +1 -1
  95. package/lib/hosted/browser/worker/worker-main.d.ts +1 -1
  96. package/lib/hosted/browser/worker/worker-main.js +182 -194
  97. package/lib/hosted/browser/worker/worker-main.js.map +1 -1
  98. package/lib/hosted/browser/worker/worker-plugin-module.d.ts +5 -0
  99. package/lib/hosted/browser/worker/worker-plugin-module.d.ts.map +1 -0
  100. package/lib/hosted/browser/worker/worker-plugin-module.js +78 -0
  101. package/lib/hosted/browser/worker/worker-plugin-module.js.map +1 -0
  102. package/lib/hosted/common/hosted-plugin.d.ts +97 -0
  103. package/lib/hosted/common/hosted-plugin.d.ts.map +1 -0
  104. package/lib/hosted/common/hosted-plugin.js +408 -0
  105. package/lib/hosted/common/hosted-plugin.js.map +1 -0
  106. package/lib/hosted/node/hosted-plugin-cli-contribution.d.ts +16 -16
  107. package/lib/hosted/node/hosted-plugin-cli-contribution.js +76 -76
  108. package/lib/hosted/node/hosted-plugin-deployer-handler.d.ts +43 -43
  109. package/lib/hosted/node/hosted-plugin-deployer-handler.js +270 -270
  110. package/lib/hosted/node/hosted-plugin-localization-service.d.ts +46 -46
  111. package/lib/hosted/node/hosted-plugin-localization-service.js +389 -389
  112. package/lib/hosted/node/hosted-plugin-process.d.ts +47 -47
  113. package/lib/hosted/node/hosted-plugin-process.d.ts.map +1 -1
  114. package/lib/hosted/node/hosted-plugin-process.js +224 -224
  115. package/lib/hosted/node/hosted-plugin-process.js.map +1 -1
  116. package/lib/hosted/node/hosted-plugin-protocol.d.ts +21 -21
  117. package/lib/hosted/node/hosted-plugin-protocol.js +36 -36
  118. package/lib/hosted/node/hosted-plugin.d.ts +36 -36
  119. package/lib/hosted/node/hosted-plugin.js +118 -118
  120. package/lib/hosted/node/metadata-scanner.d.ts +17 -17
  121. package/lib/hosted/node/metadata-scanner.js +82 -82
  122. package/lib/hosted/node/plugin-activation-events.d.ts +6 -6
  123. package/lib/hosted/node/plugin-activation-events.js +95 -95
  124. package/lib/hosted/node/plugin-ext-hosted-backend-module.d.ts +3 -3
  125. package/lib/hosted/node/plugin-ext-hosted-backend-module.d.ts.map +1 -1
  126. package/lib/hosted/node/plugin-ext-hosted-backend-module.js +82 -80
  127. package/lib/hosted/node/plugin-ext-hosted-backend-module.js.map +1 -1
  128. package/lib/hosted/node/plugin-host-module.d.ts +5 -0
  129. package/lib/hosted/node/plugin-host-module.d.ts.map +1 -0
  130. package/lib/hosted/node/plugin-host-module.js +68 -0
  131. package/lib/hosted/node/plugin-host-module.js.map +1 -0
  132. package/lib/hosted/node/plugin-host-proxy.d.ts +18 -18
  133. package/lib/hosted/node/plugin-host-proxy.js +70 -70
  134. package/lib/hosted/node/plugin-host-rpc.d.ts +107 -21
  135. package/lib/hosted/node/plugin-host-rpc.d.ts.map +1 -1
  136. package/lib/hosted/node/plugin-host-rpc.js +341 -192
  137. package/lib/hosted/node/plugin-host-rpc.js.map +1 -1
  138. package/lib/hosted/node/plugin-host.d.ts +1 -1
  139. package/lib/hosted/node/plugin-host.js +102 -101
  140. package/lib/hosted/node/plugin-host.js.map +1 -1
  141. package/lib/hosted/node/plugin-language-pack-service.d.ts +7 -7
  142. package/lib/hosted/node/plugin-language-pack-service.js +53 -53
  143. package/lib/hosted/node/plugin-manifest-loader.d.ts +2 -2
  144. package/lib/hosted/node/plugin-manifest-loader.js +35 -35
  145. package/lib/hosted/node/plugin-reader.d.ts +25 -25
  146. package/lib/hosted/node/plugin-reader.d.ts.map +1 -1
  147. package/lib/hosted/node/plugin-reader.js +146 -143
  148. package/lib/hosted/node/plugin-reader.js.map +1 -1
  149. package/lib/hosted/node/plugin-service.d.ts +47 -39
  150. package/lib/hosted/node/plugin-service.d.ts.map +1 -1
  151. package/lib/hosted/node/plugin-service.js +203 -193
  152. package/lib/hosted/node/plugin-service.js.map +1 -1
  153. package/lib/hosted/node/scanners/backend-init-theia.d.ts +2 -2
  154. package/lib/hosted/node/scanners/backend-init-theia.js +60 -60
  155. package/lib/hosted/node/scanners/file-plugin-uri-factory.d.ts +10 -10
  156. package/lib/hosted/node/scanners/file-plugin-uri-factory.js +40 -40
  157. package/lib/hosted/node/scanners/file-plugin-uri-factory.js.map +1 -1
  158. package/lib/hosted/node/scanners/grammars-reader.d.ts +5 -5
  159. package/lib/hosted/node/scanners/grammars-reader.js +63 -63
  160. package/lib/hosted/node/scanners/plugin-uri-factory.d.ts +16 -16
  161. package/lib/hosted/node/scanners/plugin-uri-factory.js +19 -19
  162. package/lib/hosted/node/scanners/scanner-theia.d.ts +68 -54
  163. package/lib/hosted/node/scanners/scanner-theia.d.ts.map +1 -1
  164. package/lib/hosted/node/scanners/scanner-theia.js +859 -824
  165. package/lib/hosted/node/scanners/scanner-theia.js.map +1 -1
  166. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.d.ts +2 -2
  167. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.js +26 -26
  168. package/lib/hosted/node-electron/scanner-theia-electron.d.ts +5 -5
  169. package/lib/hosted/node-electron/scanner-theia-electron.js +40 -40
  170. package/lib/main/browser/authentication-main.d.ts +51 -51
  171. package/lib/main/browser/authentication-main.d.ts.map +1 -1
  172. package/lib/main/browser/authentication-main.js +315 -313
  173. package/lib/main/browser/authentication-main.js.map +1 -1
  174. package/lib/main/browser/clipboard-main.d.ts +9 -9
  175. package/lib/main/browser/clipboard-main.js +32 -32
  176. package/lib/main/browser/command-registry-main.d.ts +26 -26
  177. package/lib/main/browser/command-registry-main.js +107 -107
  178. package/lib/main/browser/commands.d.ts +12 -12
  179. package/lib/main/browser/commands.js +102 -102
  180. package/lib/main/browser/comments/comment-glyph-widget.d.ts +12 -12
  181. package/lib/main/browser/comments/comment-glyph-widget.js +42 -42
  182. package/lib/main/browser/comments/comment-thread-widget.d.ts +153 -153
  183. package/lib/main/browser/comments/comment-thread-widget.js +470 -470
  184. package/lib/main/browser/comments/comments-context-key-service.d.ts +17 -17
  185. package/lib/main/browser/comments/comments-context-key-service.js +80 -80
  186. package/lib/main/browser/comments/comments-contribution.d.ts +31 -31
  187. package/lib/main/browser/comments/comments-contribution.d.ts.map +1 -1
  188. package/lib/main/browser/comments/comments-contribution.js +267 -264
  189. package/lib/main/browser/comments/comments-contribution.js.map +1 -1
  190. package/lib/main/browser/comments/comments-decorator.d.ts +15 -15
  191. package/lib/main/browser/comments/comments-decorator.js +107 -107
  192. package/lib/main/browser/comments/comments-main.d.ts +111 -111
  193. package/lib/main/browser/comments/comments-main.js +356 -356
  194. package/lib/main/browser/comments/comments-main.js.map +1 -1
  195. package/lib/main/browser/comments/comments-service.d.ts +75 -75
  196. package/lib/main/browser/comments/comments-service.js +120 -120
  197. package/lib/main/browser/custom-editors/custom-editor-contribution.d.ts +6 -6
  198. package/lib/main/browser/custom-editors/custom-editor-contribution.js +50 -50
  199. package/lib/main/browser/custom-editors/custom-editor-opener.d.ts +21 -21
  200. package/lib/main/browser/custom-editors/custom-editor-opener.js +111 -111
  201. package/lib/main/browser/custom-editors/custom-editor-opener.js.map +1 -1
  202. package/lib/main/browser/custom-editors/custom-editor-service.d.ts +16 -16
  203. package/lib/main/browser/custom-editors/custom-editor-service.js +102 -102
  204. package/lib/main/browser/custom-editors/custom-editor-widget-factory.d.ts +9 -9
  205. package/lib/main/browser/custom-editors/custom-editor-widget-factory.js +39 -39
  206. package/lib/main/browser/custom-editors/custom-editor-widget.d.ts +36 -36
  207. package/lib/main/browser/custom-editors/custom-editor-widget.d.ts.map +1 -1
  208. package/lib/main/browser/custom-editors/custom-editor-widget.js +120 -118
  209. package/lib/main/browser/custom-editors/custom-editor-widget.js.map +1 -1
  210. package/lib/main/browser/custom-editors/custom-editors-main.d.ts +119 -119
  211. package/lib/main/browser/custom-editors/custom-editors-main.js +436 -436
  212. package/lib/main/browser/custom-editors/custom-editors-main.js.map +1 -1
  213. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.d.ts +23 -23
  214. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.js +142 -142
  215. package/lib/main/browser/data-transfer/data-transfer-type-converters.d.ts +8 -8
  216. package/lib/main/browser/data-transfer/data-transfer-type-converters.d.ts.map +1 -1
  217. package/lib/main/browser/data-transfer/data-transfer-type-converters.js +62 -64
  218. package/lib/main/browser/data-transfer/data-transfer-type-converters.js.map +1 -1
  219. package/lib/main/browser/debug/debug-main.d.ts +48 -48
  220. package/lib/main/browser/debug/debug-main.js +295 -295
  221. package/lib/main/browser/debug/plugin-debug-adapter-contribution.d.ts +18 -18
  222. package/lib/main/browser/debug/plugin-debug-adapter-contribution.js +42 -42
  223. package/lib/main/browser/debug/plugin-debug-configuration-provider.d.ts +12 -12
  224. package/lib/main/browser/debug/plugin-debug-configuration-provider.js +38 -38
  225. package/lib/main/browser/debug/plugin-debug-service.d.ts +55 -55
  226. package/lib/main/browser/debug/plugin-debug-service.js +367 -367
  227. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.d.ts +30 -30
  228. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.js +75 -75
  229. package/lib/main/browser/debug/plugin-debug-session-factory.d.ts +55 -55
  230. package/lib/main/browser/debug/plugin-debug-session-factory.js +70 -70
  231. package/lib/main/browser/decorations/decorations-main.d.ts +15 -15
  232. package/lib/main/browser/decorations/decorations-main.js +119 -119
  233. package/lib/main/browser/dialogs/modal-notification.d.ts +18 -18
  234. package/lib/main/browser/dialogs/modal-notification.js +109 -109
  235. package/lib/main/browser/dialogs-main.d.ts +16 -16
  236. package/lib/main/browser/dialogs-main.js +162 -162
  237. package/lib/main/browser/documents-main.d.ts +50 -50
  238. package/lib/main/browser/documents-main.js +249 -249
  239. package/lib/main/browser/editors-and-documents-main.d.ts +36 -32
  240. package/lib/main/browser/editors-and-documents-main.d.ts.map +1 -1
  241. package/lib/main/browser/editors-and-documents-main.js +321 -302
  242. package/lib/main/browser/editors-and-documents-main.js.map +1 -1
  243. package/lib/main/browser/env-main.d.ts +6 -15
  244. package/lib/main/browser/env-main.d.ts.map +1 -1
  245. package/lib/main/browser/env-main.js +63 -82
  246. package/lib/main/browser/env-main.js.map +1 -1
  247. package/lib/main/browser/file-system-main-impl.d.ts +27 -27
  248. package/lib/main/browser/file-system-main-impl.js +205 -205
  249. package/lib/main/browser/hierarchy/hierarchy-types-converters.d.ts +24 -24
  250. package/lib/main/browser/hierarchy/hierarchy-types-converters.js +184 -184
  251. package/lib/main/browser/keybindings/keybindings-contribution-handler.d.ts +9 -9
  252. package/lib/main/browser/keybindings/keybindings-contribution-handler.js +77 -77
  253. package/lib/main/browser/label-service-main.d.ts +10 -10
  254. package/lib/main/browser/label-service-main.js +46 -46
  255. package/lib/main/browser/languages-main.d.ts +143 -143
  256. package/lib/main/browser/languages-main.d.ts.map +1 -1
  257. package/lib/main/browser/languages-main.js +1187 -1184
  258. package/lib/main/browser/languages-main.js.map +1 -1
  259. package/lib/main/browser/localization-main.d.ts +8 -8
  260. package/lib/main/browser/localization-main.js +31 -31
  261. package/lib/main/browser/main-context.d.ts +3 -3
  262. package/lib/main/browser/main-context.d.ts.map +1 -1
  263. package/lib/main/browser/main-context.js +159 -161
  264. package/lib/main/browser/main-context.js.map +1 -1
  265. package/lib/main/browser/main-file-system-event-service.d.ts +7 -7
  266. package/lib/main/browser/main-file-system-event-service.js +65 -65
  267. package/lib/main/browser/menus/menus-contribution-handler.d.ts +29 -29
  268. package/lib/main/browser/menus/menus-contribution-handler.d.ts.map +1 -1
  269. package/lib/main/browser/menus/menus-contribution-handler.js +201 -198
  270. package/lib/main/browser/menus/menus-contribution-handler.js.map +1 -1
  271. package/lib/main/browser/menus/plugin-menu-command-adapter.d.ts +44 -44
  272. package/lib/main/browser/menus/plugin-menu-command-adapter.js +310 -310
  273. package/lib/main/browser/menus/plugin-menu-command-adapter.js.map +1 -1
  274. package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts +18 -18
  275. package/lib/main/browser/menus/vscode-theia-menu-mappings.js +107 -107
  276. package/lib/main/browser/message-registry-main.d.ts +10 -8
  277. package/lib/main/browser/message-registry-main.d.ts.map +1 -1
  278. package/lib/main/browser/message-registry-main.js +40 -52
  279. package/lib/main/browser/message-registry-main.js.map +1 -1
  280. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts +50 -51
  281. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts.map +1 -1
  282. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js +199 -201
  283. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js.map +1 -1
  284. package/lib/main/browser/notebooks/notebook-documents-main.d.ts +21 -21
  285. package/lib/main/browser/notebooks/notebook-documents-main.js +131 -131
  286. package/lib/main/browser/notebooks/notebook-dto.d.ts +17 -17
  287. package/lib/main/browser/notebooks/notebook-dto.js +130 -130
  288. package/lib/main/browser/notebooks/notebook-editors-main.d.ts +19 -19
  289. package/lib/main/browser/notebooks/notebook-editors-main.js +57 -57
  290. package/lib/main/browser/notebooks/notebook-kernels-main.d.ts +42 -41
  291. package/lib/main/browser/notebooks/notebook-kernels-main.d.ts.map +1 -1
  292. package/lib/main/browser/notebooks/notebook-kernels-main.js +260 -223
  293. package/lib/main/browser/notebooks/notebook-kernels-main.js.map +1 -1
  294. package/lib/main/browser/notebooks/notebook-renderers-main.d.ts +11 -11
  295. package/lib/main/browser/notebooks/notebook-renderers-main.js +38 -38
  296. package/lib/main/browser/notebooks/notebooks-main.d.ts +30 -30
  297. package/lib/main/browser/notebooks/notebooks-main.js +102 -102
  298. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +39 -33
  299. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -1
  300. package/lib/main/browser/notebooks/renderers/cell-output-webview.js +249 -206
  301. package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -1
  302. package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts +13 -12
  303. package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts.map +1 -1
  304. package/lib/main/browser/notebooks/renderers/output-webview-internal.js +457 -376
  305. package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -1
  306. package/lib/main/browser/notebooks/renderers/webview-communication.d.ts +60 -51
  307. package/lib/main/browser/notebooks/renderers/webview-communication.d.ts.map +1 -1
  308. package/lib/main/browser/notebooks/renderers/webview-communication.js +21 -21
  309. package/lib/main/browser/notification-main.d.ts +6 -18
  310. package/lib/main/browser/notification-main.d.ts.map +1 -1
  311. package/lib/main/browser/notification-main.js +26 -75
  312. package/lib/main/browser/notification-main.js.map +1 -1
  313. package/lib/main/browser/output-channel-registry-main.d.ts +10 -10
  314. package/lib/main/browser/output-channel-registry-main.js +60 -60
  315. package/lib/main/browser/plugin-authentication-service.d.ts +13 -13
  316. package/lib/main/browser/plugin-authentication-service.js +80 -80
  317. package/lib/main/browser/plugin-contribution-handler.d.ts +75 -75
  318. package/lib/main/browser/plugin-contribution-handler.d.ts.map +1 -1
  319. package/lib/main/browser/plugin-contribution-handler.js +664 -659
  320. package/lib/main/browser/plugin-contribution-handler.js.map +1 -1
  321. package/lib/main/browser/plugin-ext-frontend-module.d.ts +7 -7
  322. package/lib/main/browser/plugin-ext-frontend-module.d.ts.map +1 -1
  323. package/lib/main/browser/plugin-ext-frontend-module.js +230 -230
  324. package/lib/main/browser/plugin-ext-frontend-module.js.map +1 -1
  325. package/lib/main/browser/plugin-ext-widget.d.ts +28 -28
  326. package/lib/main/browser/plugin-ext-widget.js +129 -129
  327. package/lib/main/browser/plugin-frontend-contribution.d.ts +9 -9
  328. package/lib/main/browser/plugin-frontend-contribution.js +79 -79
  329. package/lib/main/browser/plugin-frontend-view-contribution.d.ts +6 -6
  330. package/lib/main/browser/plugin-frontend-view-contribution.js +50 -50
  331. package/lib/main/browser/plugin-icon-service.d.ts +16 -19
  332. package/lib/main/browser/plugin-icon-service.d.ts.map +1 -1
  333. package/lib/main/browser/plugin-icon-service.js +96 -155
  334. package/lib/main/browser/plugin-icon-service.js.map +1 -1
  335. package/lib/main/browser/plugin-icon-theme-service.d.ts +146 -146
  336. package/lib/main/browser/plugin-icon-theme-service.js +561 -561
  337. package/lib/main/browser/plugin-shared-style.d.ts +40 -40
  338. package/lib/main/browser/plugin-shared-style.js +144 -144
  339. package/lib/main/browser/plugin-storage.d.ts +13 -13
  340. package/lib/main/browser/plugin-storage.js +46 -46
  341. package/lib/main/browser/plugin-terminal-registry.d.ts +4 -4
  342. package/lib/main/browser/plugin-terminal-registry.js +34 -34
  343. package/lib/main/browser/preference-registry-main.d.ts +19 -19
  344. package/lib/main/browser/preference-registry-main.js +104 -104
  345. package/lib/main/browser/quick-open-main.d.ts +32 -31
  346. package/lib/main/browser/quick-open-main.d.ts.map +1 -1
  347. package/lib/main/browser/quick-open-main.js +318 -281
  348. package/lib/main/browser/quick-open-main.js.map +1 -1
  349. package/lib/main/browser/scm-main.d.ts +106 -106
  350. package/lib/main/browser/scm-main.js +346 -346
  351. package/lib/main/browser/scm-main.js.map +1 -1
  352. package/lib/main/browser/secrets-main.d.ts +12 -12
  353. package/lib/main/browser/secrets-main.js +67 -67
  354. package/lib/main/browser/selection-provider-command.d.ts +12 -12
  355. package/lib/main/browser/selection-provider-command.d.ts.map +1 -1
  356. package/lib/main/browser/selection-provider-command.js +56 -57
  357. package/lib/main/browser/selection-provider-command.js.map +1 -1
  358. package/lib/main/browser/status-bar-message-registry-main.d.ts +16 -16
  359. package/lib/main/browser/status-bar-message-registry-main.js +55 -55
  360. package/lib/main/browser/tabs/tabs-main.d.ts +47 -47
  361. package/lib/main/browser/tabs/tabs-main.js +291 -291
  362. package/lib/main/browser/tasks-main.d.ts +33 -33
  363. package/lib/main/browser/tasks-main.js +208 -208
  364. package/lib/main/browser/terminal-main.d.ts +50 -50
  365. package/lib/main/browser/terminal-main.d.ts.map +1 -1
  366. package/lib/main/browser/terminal-main.js +269 -269
  367. package/lib/main/browser/terminal-main.js.map +1 -1
  368. package/lib/main/browser/test-main.d.ts +140 -140
  369. package/lib/main/browser/test-main.js +559 -559
  370. package/lib/main/browser/text-editor-main.d.ts +47 -47
  371. package/lib/main/browser/text-editor-main.js +384 -384
  372. package/lib/main/browser/text-editor-model-service.d.ts +28 -28
  373. package/lib/main/browser/text-editor-model-service.js +108 -108
  374. package/lib/main/browser/text-editors-main.d.ts +37 -38
  375. package/lib/main/browser/text-editors-main.d.ts.map +1 -1
  376. package/lib/main/browser/text-editors-main.js +164 -158
  377. package/lib/main/browser/text-editors-main.js.map +1 -1
  378. package/lib/main/browser/theme-icon-override.d.ts +1 -1
  379. package/lib/main/browser/theme-icon-override.js +244 -250
  380. package/lib/main/browser/theme-icon-override.js.map +1 -1
  381. package/lib/main/browser/theming-main.d.ts +9 -9
  382. package/lib/main/browser/theming-main.js +35 -35
  383. package/lib/main/browser/timeline-main.d.ts +13 -13
  384. package/lib/main/browser/timeline-main.js +50 -50
  385. package/lib/main/browser/view/dnd-file-content-store.d.ts +7 -7
  386. package/lib/main/browser/view/dnd-file-content-store.js +51 -51
  387. package/lib/main/browser/view/plugin-tree-view-node-label-provider.d.ts +11 -11
  388. package/lib/main/browser/view/plugin-tree-view-node-label-provider.js +90 -90
  389. package/lib/main/browser/view/plugin-tree-view-node-label-provider.js.map +1 -1
  390. package/lib/main/browser/view/plugin-view-registry.d.ts +105 -103
  391. package/lib/main/browser/view/plugin-view-registry.d.ts.map +1 -1
  392. package/lib/main/browser/view/plugin-view-registry.js +892 -876
  393. package/lib/main/browser/view/plugin-view-registry.js.map +1 -1
  394. package/lib/main/browser/view/plugin-view-widget.d.ts +62 -62
  395. package/lib/main/browser/view/plugin-view-widget.d.ts.map +1 -1
  396. package/lib/main/browser/view/plugin-view-widget.js +206 -207
  397. package/lib/main/browser/view/plugin-view-widget.js.map +1 -1
  398. package/lib/main/browser/view/tree-view-decorator-service.d.ts +30 -30
  399. package/lib/main/browser/view/tree-view-decorator-service.js +68 -68
  400. package/lib/main/browser/view/tree-view-widget.d.ts +166 -166
  401. package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
  402. package/lib/main/browser/view/tree-view-widget.js +843 -844
  403. package/lib/main/browser/view/tree-view-widget.js.map +1 -1
  404. package/lib/main/browser/view/tree-views-main.d.ts +34 -34
  405. package/lib/main/browser/view/tree-views-main.js +181 -181
  406. package/lib/main/browser/view/view-context-key-service.d.ts +18 -18
  407. package/lib/main/browser/view/view-context-key-service.js +74 -74
  408. package/lib/main/browser/view-column-service.d.ts +23 -23
  409. package/lib/main/browser/view-column-service.js +129 -129
  410. package/lib/main/browser/webview/webview-context-keys.d.ts +16 -12
  411. package/lib/main/browser/webview/webview-context-keys.d.ts.map +1 -1
  412. package/lib/main/browser/webview/webview-context-keys.js +72 -63
  413. package/lib/main/browser/webview/webview-context-keys.js.map +1 -1
  414. package/lib/main/browser/webview/webview-environment.d.ts +16 -16
  415. package/lib/main/browser/webview/webview-environment.js +96 -96
  416. package/lib/main/browser/webview/webview-frontend-security-warnings.d.ts +11 -11
  417. package/lib/main/browser/webview/webview-frontend-security-warnings.js +73 -73
  418. package/lib/main/browser/webview/webview-preferences.d.ts +12 -12
  419. package/lib/main/browser/webview/webview-preferences.js +57 -57
  420. package/lib/main/browser/webview/webview-resource-cache.d.ts +17 -17
  421. package/lib/main/browser/webview/webview-resource-cache.js +90 -90
  422. package/lib/main/browser/webview/webview-theme-data-provider.d.ts +30 -30
  423. package/lib/main/browser/webview/webview-theme-data-provider.js +132 -132
  424. package/lib/main/browser/webview/webview-widget-factory.d.ts +8 -8
  425. package/lib/main/browser/webview/webview-widget-factory.d.ts.map +1 -1
  426. package/lib/main/browser/webview/webview-widget-factory.js +39 -38
  427. package/lib/main/browser/webview/webview-widget-factory.js.map +1 -1
  428. package/lib/main/browser/webview/webview.d.ts +162 -161
  429. package/lib/main/browser/webview/webview.d.ts.map +1 -1
  430. package/lib/main/browser/webview/webview.js +620 -619
  431. package/lib/main/browser/webview/webview.js.map +1 -1
  432. package/lib/main/browser/webview-views/webview-views-main.d.ts +32 -32
  433. package/lib/main/browser/webview-views/webview-views-main.js +136 -136
  434. package/lib/main/browser/webview-views/webview-views.d.ts +19 -19
  435. package/lib/main/browser/webview-views/webview-views.js +22 -22
  436. package/lib/main/browser/webviews-main.d.ts +40 -40
  437. package/lib/main/browser/webviews-main.d.ts.map +1 -1
  438. package/lib/main/browser/webviews-main.js +248 -243
  439. package/lib/main/browser/webviews-main.js.map +1 -1
  440. package/lib/main/browser/window-state-main.d.ts +16 -16
  441. package/lib/main/browser/window-state-main.js +61 -61
  442. package/lib/main/browser/workspace-main.d.ts +77 -77
  443. package/lib/main/browser/workspace-main.js +348 -348
  444. package/lib/main/common/basic-message-registry-main.d.ts +14 -0
  445. package/lib/main/common/basic-message-registry-main.d.ts.map +1 -0
  446. package/lib/main/common/basic-message-registry-main.js +50 -0
  447. package/lib/main/common/basic-message-registry-main.js.map +1 -0
  448. package/lib/main/common/basic-notification-main.d.ts +19 -0
  449. package/lib/main/common/basic-notification-main.d.ts.map +1 -0
  450. package/lib/main/common/basic-notification-main.js +75 -0
  451. package/lib/main/common/basic-notification-main.js.map +1 -0
  452. package/lib/main/common/env-main.d.ts +11 -0
  453. package/lib/main/common/env-main.d.ts.map +1 -0
  454. package/lib/main/common/env-main.js +40 -0
  455. package/lib/main/common/env-main.js.map +1 -0
  456. package/lib/main/common/plugin-paths-protocol.d.ts +8 -8
  457. package/lib/main/common/plugin-paths-protocol.js +21 -21
  458. package/lib/main/common/plugin-theia-environment.d.ts +7 -7
  459. package/lib/main/common/plugin-theia-environment.js +47 -47
  460. package/lib/main/common/webview-protocol.d.ts +12 -12
  461. package/lib/main/common/webview-protocol.js +31 -31
  462. package/lib/main/electron-browser/plugin-ext-frontend-electron-module.d.ts +3 -3
  463. package/lib/main/electron-browser/plugin-ext-frontend-electron-module.js +25 -25
  464. package/lib/main/electron-browser/webview/electron-webview-widget-factory.d.ts +23 -23
  465. package/lib/main/electron-browser/webview/electron-webview-widget-factory.js +53 -53
  466. package/lib/main/node/errors.spec.d.ts +1 -1
  467. package/lib/main/node/errors.spec.js +35 -35
  468. package/lib/main/node/errors.spec.js.map +1 -1
  469. package/lib/main/node/handlers/plugin-theia-directory-handler.d.ts +18 -13
  470. package/lib/main/node/handlers/plugin-theia-directory-handler.d.ts.map +1 -1
  471. package/lib/main/node/handlers/plugin-theia-directory-handler.js +137 -119
  472. package/lib/main/node/handlers/plugin-theia-directory-handler.js.map +1 -1
  473. package/lib/main/node/handlers/plugin-theia-file-handler.d.ts +10 -10
  474. package/lib/main/node/handlers/plugin-theia-file-handler.js +74 -74
  475. package/lib/main/node/handlers/plugin-theia-file-handler.js.map +1 -1
  476. package/lib/main/node/paths/const.d.ts +5 -5
  477. package/lib/main/node/paths/const.js +24 -24
  478. package/lib/main/node/paths/plugin-paths-service.d.ts +25 -25
  479. package/lib/main/node/paths/plugin-paths-service.js +160 -160
  480. package/lib/main/node/plugin-cli-contribution.d.ts +21 -21
  481. package/lib/main/node/plugin-cli-contribution.js +84 -84
  482. package/lib/main/node/plugin-deployer-contribution.d.ts +8 -8
  483. package/lib/main/node/plugin-deployer-contribution.js +48 -48
  484. package/lib/main/node/plugin-deployer-directory-handler-context-impl.d.ts +7 -7
  485. package/lib/main/node/plugin-deployer-directory-handler-context-impl.js +44 -44
  486. package/lib/main/node/plugin-deployer-entry-impl.d.ts +34 -34
  487. package/lib/main/node/plugin-deployer-entry-impl.js +111 -111
  488. package/lib/main/node/plugin-deployer-file-handler-context-impl.d.ts +7 -7
  489. package/lib/main/node/plugin-deployer-file-handler-context-impl.js +31 -31
  490. package/lib/main/node/plugin-deployer-impl.d.ts +61 -61
  491. package/lib/main/node/plugin-deployer-impl.d.ts.map +1 -1
  492. package/lib/main/node/plugin-deployer-impl.js +338 -334
  493. package/lib/main/node/plugin-deployer-impl.js.map +1 -1
  494. package/lib/main/node/plugin-deployer-proxy-entry-impl.d.ts +29 -29
  495. package/lib/main/node/plugin-deployer-proxy-entry-impl.js +98 -98
  496. package/lib/main/node/plugin-deployer-resolver-context-impl.d.ts +15 -15
  497. package/lib/main/node/plugin-deployer-resolver-context-impl.js +42 -42
  498. package/lib/main/node/plugin-ext-backend-module.d.ts +2 -2
  499. package/lib/main/node/plugin-ext-backend-module.js +73 -73
  500. package/lib/main/node/plugin-github-resolver.d.ts +23 -23
  501. package/lib/main/node/plugin-github-resolver.js +143 -143
  502. package/lib/main/node/plugin-http-resolver.d.ts +20 -20
  503. package/lib/main/node/plugin-http-resolver.js +99 -99
  504. package/lib/main/node/plugin-localization-server.d.ts +9 -9
  505. package/lib/main/node/plugin-localization-server.js +58 -58
  506. package/lib/main/node/plugin-mgmt-cli-contribution.d.ts +12 -12
  507. package/lib/main/node/plugin-mgmt-cli-contribution.js +70 -70
  508. package/lib/main/node/plugin-server-handler.d.ts +16 -16
  509. package/lib/main/node/plugin-server-handler.js +74 -74
  510. package/lib/main/node/plugin-service.d.ts +23 -23
  511. package/lib/main/node/plugin-service.js +109 -109
  512. package/lib/main/node/plugin-theia-deployer-participant.d.ts +6 -6
  513. package/lib/main/node/plugin-theia-deployer-participant.js +43 -43
  514. package/lib/main/node/plugin-uninstallation-manager.d.ts +14 -14
  515. package/lib/main/node/plugin-uninstallation-manager.js +84 -84
  516. package/lib/main/node/plugins-key-value-storage.d.ts +28 -28
  517. package/lib/main/node/plugins-key-value-storage.js +167 -167
  518. package/lib/main/node/plugins-key-value-storage.js.map +1 -1
  519. package/lib/main/node/plugins-key-value-storage.spec.d.ts +16 -16
  520. package/lib/main/node/plugins-key-value-storage.spec.js +100 -100
  521. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.d.ts +7 -7
  522. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js +43 -43
  523. package/lib/main/node/resolvers/local-plugin-deployer-resolver.d.ts +8 -8
  524. package/lib/main/node/resolvers/local-plugin-deployer-resolver.js +59 -59
  525. package/lib/main/node/temp-dir-util.d.ts +2 -2
  526. package/lib/main/node/temp-dir-util.js +39 -39
  527. package/lib/main/node/webview-backend-security-warnings.d.ts +5 -5
  528. package/lib/main/node/webview-backend-security-warnings.js +51 -51
  529. package/lib/plugin/authentication-ext.d.ts +30 -30
  530. package/lib/plugin/authentication-ext.js +94 -94
  531. package/lib/plugin/clipboard-ext.d.ts +10 -9
  532. package/lib/plugin/clipboard-ext.d.ts.map +1 -1
  533. package/lib/plugin/clipboard-ext.js +55 -31
  534. package/lib/plugin/clipboard-ext.js.map +1 -1
  535. package/lib/plugin/command-registry.d.ts +41 -41
  536. package/lib/plugin/command-registry.js +182 -182
  537. package/lib/plugin/comments.d.ts +92 -92
  538. package/lib/plugin/comments.js +392 -392
  539. package/lib/plugin/custom-editors.d.ts +47 -47
  540. package/lib/plugin/custom-editors.js +255 -255
  541. package/lib/plugin/custom-editors.js.map +1 -1
  542. package/lib/plugin/debug/debug-ext.d.ts +88 -86
  543. package/lib/plugin/debug/debug-ext.d.ts.map +1 -1
  544. package/lib/plugin/debug/debug-ext.js +421 -394
  545. package/lib/plugin/debug/debug-ext.js.map +1 -1
  546. package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts +10 -10
  547. package/lib/plugin/debug/plugin-debug-adapter-creator.js +41 -41
  548. package/lib/plugin/debug/plugin-debug-adapter-session.d.ts +26 -26
  549. package/lib/plugin/debug/plugin-debug-adapter-session.js +96 -96
  550. package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts +12 -12
  551. package/lib/plugin/debug/plugin-debug-adapter-tracker.js +77 -77
  552. package/lib/plugin/decorations.d.ts +14 -14
  553. package/lib/plugin/decorations.js +112 -112
  554. package/lib/plugin/dialogs.d.ts +10 -10
  555. package/lib/plugin/dialogs.js +91 -91
  556. package/lib/plugin/document-data.d.ts +38 -38
  557. package/lib/plugin/document-data.js +309 -309
  558. package/lib/plugin/documents.d.ts +56 -56
  559. package/lib/plugin/documents.js +253 -253
  560. package/lib/plugin/documents.js.map +1 -1
  561. package/lib/plugin/editors-and-documents.d.ts +25 -26
  562. package/lib/plugin/editors-and-documents.d.ts.map +1 -1
  563. package/lib/plugin/editors-and-documents.js +154 -137
  564. package/lib/plugin/editors-and-documents.js.map +1 -1
  565. package/lib/plugin/env.d.ts +38 -34
  566. package/lib/plugin/env.d.ts.map +1 -1
  567. package/lib/plugin/env.js +118 -85
  568. package/lib/plugin/env.js.map +1 -1
  569. package/lib/plugin/file-system-event-service-ext-impl.d.ts +40 -40
  570. package/lib/plugin/file-system-event-service-ext-impl.js +203 -203
  571. package/lib/plugin/file-system-ext-impl.d.ts +56 -56
  572. package/lib/plugin/file-system-ext-impl.js +346 -346
  573. package/lib/plugin/known-commands.d.ts +5 -5
  574. package/lib/plugin/known-commands.d.ts.map +1 -1
  575. package/lib/plugin/known-commands.js +400 -399
  576. package/lib/plugin/known-commands.js.map +1 -1
  577. package/lib/plugin/known-commands.spec.d.ts +1 -1
  578. package/lib/plugin/known-commands.spec.js +42 -42
  579. package/lib/plugin/label-service.d.ts +11 -11
  580. package/lib/plugin/label-service.js +35 -35
  581. package/lib/plugin/languages/call-hierarchy.d.ts +20 -20
  582. package/lib/plugin/languages/call-hierarchy.js +101 -101
  583. package/lib/plugin/languages/code-action.d.ts +24 -24
  584. package/lib/plugin/languages/code-action.js +137 -137
  585. package/lib/plugin/languages/color.d.ts +12 -12
  586. package/lib/plugin/languages/color.js +58 -58
  587. package/lib/plugin/languages/completion.d.ts +20 -20
  588. package/lib/plugin/languages/completion.js +164 -164
  589. package/lib/plugin/languages/declaration.d.ts +11 -11
  590. package/lib/plugin/languages/declaration.js +58 -58
  591. package/lib/plugin/languages/definition.d.ts +11 -11
  592. package/lib/plugin/languages/definition.js +58 -58
  593. package/lib/plugin/languages/diagnostics.d.ts +49 -49
  594. package/lib/plugin/languages/diagnostics.js +281 -281
  595. package/lib/plugin/languages/diagnostics.js.map +1 -1
  596. package/lib/plugin/languages/document-drop-edit.d.ts +15 -15
  597. package/lib/plugin/languages/document-drop-edit.js +22 -22
  598. package/lib/plugin/languages/document-formatting.d.ts +10 -10
  599. package/lib/plugin/languages/document-formatting.js +40 -40
  600. package/lib/plugin/languages/document-highlight.d.ts +12 -12
  601. package/lib/plugin/languages/document-highlight.js +50 -50
  602. package/lib/plugin/languages/evaluatable-expression.d.ts +11 -11
  603. package/lib/plugin/languages/evaluatable-expression.js +40 -40
  604. package/lib/plugin/languages/folding.d.ts +10 -10
  605. package/lib/plugin/languages/folding.js +39 -39
  606. package/lib/plugin/languages/hover.d.ts +11 -11
  607. package/lib/plugin/languages/hover.js +48 -48
  608. package/lib/plugin/languages/implementation.d.ts +11 -11
  609. package/lib/plugin/languages/implementation.js +58 -58
  610. package/lib/plugin/languages/inlay-hints.d.ts +19 -19
  611. package/lib/plugin/languages/inlay-hints.js +127 -127
  612. package/lib/plugin/languages/inline-completion.d.ts +20 -20
  613. package/lib/plugin/languages/inline-completion.js +93 -93
  614. package/lib/plugin/languages/inline-values.d.ts +10 -10
  615. package/lib/plugin/languages/inline-values.js +44 -44
  616. package/lib/plugin/languages/lens.d.ts +19 -19
  617. package/lib/plugin/languages/lens.js +89 -89
  618. package/lib/plugin/languages/link-provider.d.ts +14 -14
  619. package/lib/plugin/languages/link-provider.d.ts.map +1 -1
  620. package/lib/plugin/languages/link-provider.js +73 -71
  621. package/lib/plugin/languages/link-provider.js.map +1 -1
  622. package/lib/plugin/languages/linked-editing-range.d.ts +11 -11
  623. package/lib/plugin/languages/linked-editing-range.js +40 -40
  624. package/lib/plugin/languages/on-type-formatting.d.ts +11 -11
  625. package/lib/plugin/languages/on-type-formatting.js +41 -41
  626. package/lib/plugin/languages/outline.d.ts +20 -20
  627. package/lib/plugin/languages/outline.js +115 -115
  628. package/lib/plugin/languages/range-formatting.d.ts +10 -10
  629. package/lib/plugin/languages/range-formatting.js +41 -41
  630. package/lib/plugin/languages/reference.d.ts +11 -11
  631. package/lib/plugin/languages/reference.js +47 -47
  632. package/lib/plugin/languages/rename.d.ts +14 -14
  633. package/lib/plugin/languages/rename.js +114 -114
  634. package/lib/plugin/languages/selection-range.d.ts +11 -11
  635. package/lib/plugin/languages/selection-range.js +65 -65
  636. package/lib/plugin/languages/semantic-highlighting.d.ts +28 -28
  637. package/lib/plugin/languages/semantic-highlighting.js +175 -175
  638. package/lib/plugin/languages/signature.d.ts +15 -15
  639. package/lib/plugin/languages/signature.js +71 -71
  640. package/lib/plugin/languages/type-definition.d.ts +11 -11
  641. package/lib/plugin/languages/type-definition.js +58 -58
  642. package/lib/plugin/languages/type-hierarchy.d.ts +18 -18
  643. package/lib/plugin/languages/type-hierarchy.js +95 -95
  644. package/lib/plugin/languages/util.d.ts +4 -4
  645. package/lib/plugin/languages/util.js +27 -27
  646. package/lib/plugin/languages/workspace-symbol.d.ts +8 -8
  647. package/lib/plugin/languages/workspace-symbol.js +61 -61
  648. package/lib/plugin/languages-utils.d.ts +6 -6
  649. package/lib/plugin/languages-utils.js +65 -65
  650. package/lib/plugin/languages.d.ts +127 -127
  651. package/lib/plugin/languages.js +712 -712
  652. package/lib/plugin/localization-ext.d.ts +17 -16
  653. package/lib/plugin/localization-ext.d.ts.map +1 -1
  654. package/lib/plugin/localization-ext.js +99 -73
  655. package/lib/plugin/localization-ext.js.map +1 -1
  656. package/lib/plugin/markdown-string.d.ts +24 -24
  657. package/lib/plugin/markdown-string.d.ts.map +1 -1
  658. package/lib/plugin/markdown-string.js +124 -124
  659. package/lib/plugin/markdown-string.js.map +1 -1
  660. package/lib/plugin/message-registry.d.ts +9 -8
  661. package/lib/plugin/message-registry.d.ts.map +1 -1
  662. package/lib/plugin/message-registry.js +84 -60
  663. package/lib/plugin/message-registry.js.map +1 -1
  664. package/lib/plugin/node/debug/debug.spec.d.ts +1 -1
  665. package/lib/plugin/node/debug/debug.spec.js +87 -67
  666. package/lib/plugin/node/debug/debug.spec.js.map +1 -1
  667. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts +17 -17
  668. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.js +154 -154
  669. package/lib/plugin/node/env-node-ext.d.ts +16 -21
  670. package/lib/plugin/node/env-node-ext.d.ts.map +1 -1
  671. package/lib/plugin/node/env-node-ext.js +71 -63
  672. package/lib/plugin/node/env-node-ext.js.map +1 -1
  673. package/lib/plugin/node/plugin-container-module.d.ts +75 -0
  674. package/lib/plugin/node/plugin-container-module.d.ts.map +1 -0
  675. package/lib/plugin/node/plugin-container-module.js +115 -0
  676. package/lib/plugin/node/plugin-container-module.js.map +1 -0
  677. package/lib/plugin/notebook/notebook-document.d.ts +61 -61
  678. package/lib/plugin/notebook/notebook-document.js +372 -372
  679. package/lib/plugin/notebook/notebook-documents.d.ts +16 -16
  680. package/lib/plugin/notebook/notebook-documents.js +47 -47
  681. package/lib/plugin/notebook/notebook-editor.d.ts +20 -20
  682. package/lib/plugin/notebook/notebook-editor.js +98 -98
  683. package/lib/plugin/notebook/notebook-editors.d.ts +13 -13
  684. package/lib/plugin/notebook/notebook-editors.js +64 -64
  685. package/lib/plugin/notebook/notebook-kernels.d.ts +35 -36
  686. package/lib/plugin/notebook/notebook-kernels.d.ts.map +1 -1
  687. package/lib/plugin/notebook/notebook-kernels.js +516 -516
  688. package/lib/plugin/notebook/notebook-kernels.js.map +1 -1
  689. package/lib/plugin/notebook/notebook-renderers.d.ts +13 -13
  690. package/lib/plugin/notebook/notebook-renderers.d.ts.map +1 -1
  691. package/lib/plugin/notebook/notebook-renderers.js +62 -62
  692. package/lib/plugin/notebook/notebook-renderers.js.map +1 -1
  693. package/lib/plugin/notebook/notebooks.d.ts +57 -56
  694. package/lib/plugin/notebook/notebooks.d.ts.map +1 -1
  695. package/lib/plugin/notebook/notebooks.js +316 -297
  696. package/lib/plugin/notebook/notebooks.js.map +1 -1
  697. package/lib/plugin/notification.d.ts +17 -17
  698. package/lib/plugin/notification.js +67 -67
  699. package/lib/plugin/output-channel/log-output-channel.d.ts +23 -23
  700. package/lib/plugin/output-channel/log-output-channel.js +91 -91
  701. package/lib/plugin/output-channel/output-channel-item.d.ts +17 -17
  702. package/lib/plugin/output-channel/output-channel-item.js +51 -51
  703. package/lib/plugin/output-channel-registry.d.ts +13 -13
  704. package/lib/plugin/output-channel-registry.js +44 -44
  705. package/lib/plugin/path.d.ts +2 -2
  706. package/lib/plugin/path.js +59 -59
  707. package/lib/plugin/path.spec.d.ts +1 -1
  708. package/lib/plugin/path.spec.js +34 -34
  709. package/lib/plugin/plugin-context.d.ts +58 -58
  710. package/lib/plugin/plugin-context.d.ts.map +1 -1
  711. package/lib/plugin/plugin-context.js +1185 -1170
  712. package/lib/plugin/plugin-context.js.map +1 -1
  713. package/lib/plugin/plugin-icon-path.d.ts +11 -11
  714. package/lib/plugin/plugin-icon-path.js +49 -49
  715. package/lib/plugin/plugin-manager.d.ts +92 -83
  716. package/lib/plugin/plugin-manager.d.ts.map +1 -1
  717. package/lib/plugin/plugin-manager.js +428 -358
  718. package/lib/plugin/plugin-manager.js.map +1 -1
  719. package/lib/plugin/plugin-storage.d.ts +44 -36
  720. package/lib/plugin/plugin-storage.d.ts.map +1 -1
  721. package/lib/plugin/plugin-storage.js +119 -99
  722. package/lib/plugin/plugin-storage.js.map +1 -1
  723. package/lib/plugin/preference-registry.d.ts +40 -39
  724. package/lib/plugin/preference-registry.d.ts.map +1 -1
  725. package/lib/plugin/preference-registry.js +317 -287
  726. package/lib/plugin/preference-registry.js.map +1 -1
  727. package/lib/plugin/preference-registry.spec.d.ts +1 -1
  728. package/lib/plugin/preference-registry.spec.js +246 -239
  729. package/lib/plugin/preference-registry.spec.js.map +1 -1
  730. package/lib/plugin/prefix-sum-computer.d.ts +30 -30
  731. package/lib/plugin/prefix-sum-computer.js +172 -172
  732. package/lib/plugin/quick-open.d.ts +195 -202
  733. package/lib/plugin/quick-open.d.ts.map +1 -1
  734. package/lib/plugin/quick-open.js +622 -638
  735. package/lib/plugin/quick-open.js.map +1 -1
  736. package/lib/plugin/scm.d.ts +53 -53
  737. package/lib/plugin/scm.js +726 -726
  738. package/lib/plugin/secrets-ext.d.ts +39 -30
  739. package/lib/plugin/secrets-ext.d.ts.map +1 -1
  740. package/lib/plugin/secrets-ext.js +88 -68
  741. package/lib/plugin/secrets-ext.js.map +1 -1
  742. package/lib/plugin/status-bar/status-bar-item.d.ts +44 -44
  743. package/lib/plugin/status-bar/status-bar-item.js +122 -122
  744. package/lib/plugin/status-bar-message-registry.d.ts +20 -20
  745. package/lib/plugin/status-bar-message-registry.js +84 -84
  746. package/lib/plugin/tabs.d.ts +22 -22
  747. package/lib/plugin/tabs.js +358 -358
  748. package/lib/plugin/tasks/task-provider.d.ts +8 -8
  749. package/lib/plugin/tasks/task-provider.js +53 -53
  750. package/lib/plugin/tasks/tasks.d.ts +46 -46
  751. package/lib/plugin/tasks/tasks.js +215 -215
  752. package/lib/plugin/telemetry-ext.d.ts +43 -43
  753. package/lib/plugin/telemetry-ext.js +251 -251
  754. package/lib/plugin/terminal-ext.d.ts +113 -113
  755. package/lib/plugin/terminal-ext.d.ts.map +1 -1
  756. package/lib/plugin/terminal-ext.js +488 -468
  757. package/lib/plugin/terminal-ext.js.map +1 -1
  758. package/lib/plugin/test-item.d.ts +46 -46
  759. package/lib/plugin/test-item.js +195 -195
  760. package/lib/plugin/tests.d.ts +121 -121
  761. package/lib/plugin/tests.js +423 -423
  762. package/lib/plugin/tests.js.map +1 -1
  763. package/lib/plugin/text-editor.d.ts +104 -104
  764. package/lib/plugin/text-editor.js +464 -464
  765. package/lib/plugin/text-editors.d.ts +39 -37
  766. package/lib/plugin/text-editors.d.ts.map +1 -1
  767. package/lib/plugin/text-editors.js +132 -126
  768. package/lib/plugin/text-editors.js.map +1 -1
  769. package/lib/plugin/theming.d.ts +15 -15
  770. package/lib/plugin/theming.js +61 -61
  771. package/lib/plugin/timeline.d.ts +20 -20
  772. package/lib/plugin/timeline.js +157 -157
  773. package/lib/plugin/tree/tree-views.d.ts +107 -107
  774. package/lib/plugin/tree/tree-views.js +590 -590
  775. package/lib/plugin/type-converters.d.ts +204 -195
  776. package/lib/plugin/type-converters.d.ts.map +1 -1
  777. package/lib/plugin/type-converters.js +1676 -1637
  778. package/lib/plugin/type-converters.js.map +1 -1
  779. package/lib/plugin/type-converters.spec.d.ts +1 -1
  780. package/lib/plugin/type-converters.spec.js +395 -395
  781. package/lib/plugin/types-impl.d.ts +1653 -1633
  782. package/lib/plugin/types-impl.d.ts.map +1 -1
  783. package/lib/plugin/types-impl.js +3185 -3169
  784. package/lib/plugin/types-impl.js.map +1 -1
  785. package/lib/plugin/types-impl.spec.d.ts +1 -1
  786. package/lib/plugin/types-impl.spec.js +78 -78
  787. package/lib/plugin/webview-views.d.ts +55 -55
  788. package/lib/plugin/webview-views.d.ts.map +1 -1
  789. package/lib/plugin/webview-views.js +156 -155
  790. package/lib/plugin/webview-views.js.map +1 -1
  791. package/lib/plugin/webviews.d.ts +110 -95
  792. package/lib/plugin/webviews.d.ts.map +1 -1
  793. package/lib/plugin/webviews.js +393 -343
  794. package/lib/plugin/webviews.js.map +1 -1
  795. package/lib/plugin/window-state.d.ts +16 -16
  796. package/lib/plugin/window-state.js +54 -54
  797. package/lib/plugin/word-helper.d.ts +21 -21
  798. package/lib/plugin/word-helper.js +125 -125
  799. package/lib/plugin/workspace.d.ts +62 -61
  800. package/lib/plugin/workspace.d.ts.map +1 -1
  801. package/lib/plugin/workspace.js +445 -411
  802. package/lib/plugin/workspace.js.map +1 -1
  803. package/lib/plugin-ext-backend-electron-module.d.ts +3 -3
  804. package/lib/plugin-ext-backend-electron-module.js +24 -24
  805. package/lib/plugin-ext-backend-module.d.ts +3 -3
  806. package/lib/plugin-ext-backend-module.js +24 -24
  807. package/lib/plugin-ext-frontend-electron-module.d.ts +2 -2
  808. package/lib/plugin-ext-frontend-electron-module.js +19 -19
  809. package/lib/plugin-ext-frontend-module.d.ts +2 -2
  810. package/lib/plugin-ext-frontend-module.js +19 -19
  811. package/package.json +30 -31
  812. package/src/common/arrays.ts +70 -70
  813. package/src/common/assert.ts +23 -23
  814. package/src/common/cache.ts +51 -51
  815. package/src/common/character-classifier.ts +73 -73
  816. package/src/common/collections.ts +54 -54
  817. package/src/common/commands.ts +19 -19
  818. package/src/common/connection.ts +137 -137
  819. package/src/common/disposable-util.ts +39 -39
  820. package/src/common/editor-options.ts +74 -74
  821. package/src/common/env.ts +19 -19
  822. package/src/common/errors.ts +63 -63
  823. package/src/common/id-generator.ts +26 -26
  824. package/src/common/index.ts +24 -24
  825. package/src/common/language-pack-service.ts +34 -34
  826. package/src/common/link-computer.ts +354 -354
  827. package/src/common/object-identifier.ts +33 -33
  828. package/src/common/objects.ts +50 -50
  829. package/src/common/paths-util.ts +158 -158
  830. package/src/common/plugin-api-rpc-model.ts +897 -897
  831. package/src/common/plugin-api-rpc.ts +2686 -2669
  832. package/src/common/plugin-ext-api-contribution.ts +115 -82
  833. package/src/common/plugin-identifiers.ts +84 -84
  834. package/src/common/plugin-protocol.ts +1091 -1075
  835. package/src/common/proxy-handler.ts +141 -128
  836. package/src/common/reference-map.ts +38 -38
  837. package/src/common/rpc-protocol.ts +310 -272
  838. package/src/common/semantic-tokens-dto.ts +182 -182
  839. package/src/common/test-types.ts +153 -153
  840. package/src/common/types.ts +129 -129
  841. package/src/common/uint.ts +37 -37
  842. package/src/common/uri-components.ts +81 -85
  843. package/src/hosted/browser/hosted-plugin-watcher.ts +54 -54
  844. package/src/hosted/browser/hosted-plugin.ts +621 -910
  845. package/src/hosted/browser/plugin-worker.ts +52 -52
  846. package/src/hosted/browser/worker/debug-stub.ts +29 -28
  847. package/src/hosted/browser/worker/plugin-manifest-loader.ts +114 -114
  848. package/src/hosted/browser/worker/worker-env-ext.ts +42 -41
  849. package/src/hosted/browser/worker/worker-main.ts +212 -224
  850. package/src/hosted/browser/worker/worker-plugin-module.ts +80 -0
  851. package/src/hosted/common/hosted-plugin.ts +456 -0
  852. package/src/hosted/node/hosted-plugin-cli-contribution.ts +75 -75
  853. package/src/hosted/node/hosted-plugin-deployer-handler.ts +268 -268
  854. package/src/hosted/node/hosted-plugin-localization-service.ts +410 -410
  855. package/src/hosted/node/hosted-plugin-process.ts +248 -248
  856. package/src/hosted/node/hosted-plugin-protocol.ts +49 -49
  857. package/src/hosted/node/hosted-plugin.ts +116 -116
  858. package/src/hosted/node/metadata-scanner.ts +64 -64
  859. package/src/hosted/node/plugin-activation-events.ts +112 -112
  860. package/src/hosted/node/plugin-ext-hosted-backend-module.ts +94 -92
  861. package/src/hosted/node/plugin-host-module.ts +69 -0
  862. package/src/hosted/node/plugin-host-proxy.ts +82 -82
  863. package/src/hosted/node/plugin-host-rpc.ts +377 -218
  864. package/src/hosted/node/plugin-host.ts +110 -108
  865. package/src/hosted/node/plugin-language-pack-service.ts +43 -43
  866. package/src/hosted/node/plugin-manifest-loader.ts +32 -32
  867. package/src/hosted/node/plugin-reader.ts +136 -133
  868. package/src/hosted/node/plugin-service.ts +192 -175
  869. package/src/hosted/node/scanners/backend-init-theia.ts +71 -71
  870. package/src/hosted/node/scanners/file-plugin-uri-factory.ts +32 -32
  871. package/src/hosted/node/scanners/grammars-reader.ts +57 -57
  872. package/src/hosted/node/scanners/plugin-uri-factory.ts +33 -33
  873. package/src/hosted/node/scanners/scanner-theia.ts +951 -911
  874. package/src/hosted/node-electron/plugin-ext-hosted-electron-backend-module.ts +26 -26
  875. package/src/hosted/node-electron/scanner-theia-electron.ts +32 -32
  876. package/src/main/browser/authentication-main.ts +388 -386
  877. package/src/main/browser/clipboard-main.ts +38 -38
  878. package/src/main/browser/command-registry-main.ts +123 -123
  879. package/src/main/browser/commands.ts +104 -104
  880. package/src/main/browser/comments/comment-glyph-widget.ts +66 -66
  881. package/src/main/browser/comments/comment-thread-widget.tsx +696 -696
  882. package/src/main/browser/comments/comments-context-key-service.ts +68 -68
  883. package/src/main/browser/comments/comments-contribution.ts +268 -264
  884. package/src/main/browser/comments/comments-decorator.ts +110 -110
  885. package/src/main/browser/comments/comments-main.ts +482 -482
  886. package/src/main/browser/comments/comments-service.ts +205 -205
  887. package/src/main/browser/custom-editors/custom-editor-contribution.ts +38 -38
  888. package/src/main/browser/custom-editors/custom-editor-opener.tsx +105 -105
  889. package/src/main/browser/custom-editors/custom-editor-service.ts +108 -108
  890. package/src/main/browser/custom-editors/custom-editor-widget-factory.ts +44 -44
  891. package/src/main/browser/custom-editors/custom-editor-widget.ts +129 -127
  892. package/src/main/browser/custom-editors/custom-editors-main.ts +595 -595
  893. package/src/main/browser/custom-editors/plugin-custom-editor-registry.ts +142 -142
  894. package/src/main/browser/data-transfer/data-transfer-type-converters.ts +68 -70
  895. package/src/main/browser/debug/debug-main.ts +373 -373
  896. package/src/main/browser/debug/plugin-debug-adapter-contribution.ts +48 -48
  897. package/src/main/browser/debug/plugin-debug-configuration-provider.ts +63 -63
  898. package/src/main/browser/debug/plugin-debug-service.ts +427 -427
  899. package/src/main/browser/debug/plugin-debug-session-contribution-registry.ts +76 -76
  900. package/src/main/browser/debug/plugin-debug-session-factory.ts +105 -105
  901. package/src/main/browser/decorations/decorations-main.ts +146 -146
  902. package/src/main/browser/dialogs/modal-notification.ts +112 -112
  903. package/src/main/browser/dialogs/style/modal-notification.css +123 -123
  904. package/src/main/browser/dialogs-main.ts +185 -185
  905. package/src/main/browser/documents-main.ts +289 -289
  906. package/src/main/browser/editors-and-documents-main.ts +417 -395
  907. package/src/main/browser/env-main.ts +60 -87
  908. package/src/main/browser/file-system-main-impl.ts +263 -263
  909. package/src/main/browser/hierarchy/hierarchy-types-converters.ts +189 -189
  910. package/src/main/browser/keybindings/keybindings-contribution-handler.ts +66 -66
  911. package/src/main/browser/label-service-main.ts +51 -51
  912. package/src/main/browser/languages-main.ts +1440 -1436
  913. package/src/main/browser/localization-main.ts +34 -34
  914. package/src/main/browser/main-context.ts +212 -214
  915. package/src/main/browser/main-file-system-event-service.ts +76 -76
  916. package/src/main/browser/menus/menus-contribution-handler.ts +171 -166
  917. package/src/main/browser/menus/plugin-menu-command-adapter.ts +295 -295
  918. package/src/main/browser/menus/vscode-theia-menu-mappings.ts +105 -105
  919. package/src/main/browser/message-registry-main.ts +43 -56
  920. package/src/main/browser/notebooks/notebook-documents-and-editors-main.ts +249 -252
  921. package/src/main/browser/notebooks/notebook-documents-main.ts +165 -165
  922. package/src/main/browser/notebooks/notebook-dto.ts +131 -131
  923. package/src/main/browser/notebooks/notebook-editors-main.ts +70 -70
  924. package/src/main/browser/notebooks/notebook-kernels-main.ts +327 -286
  925. package/src/main/browser/notebooks/notebook-renderers-main.ts +47 -47
  926. package/src/main/browser/notebooks/notebooks-main.ts +135 -135
  927. package/src/main/browser/notebooks/renderers/cell-output-webview.tsx +254 -201
  928. package/src/main/browser/notebooks/renderers/output-webview-internal.ts +577 -477
  929. package/src/main/browser/notebooks/renderers/webview-communication.ts +90 -79
  930. package/src/main/browser/notification-main.ts +26 -86
  931. package/src/main/browser/output-channel-registry-main.ts +53 -53
  932. package/src/main/browser/plugin-authentication-service.ts +71 -71
  933. package/src/main/browser/plugin-contribution-handler.ts +698 -690
  934. package/src/main/browser/plugin-ext-frontend-module.ts +269 -268
  935. package/src/main/browser/plugin-ext-widget.tsx +132 -132
  936. package/src/main/browser/plugin-frontend-contribution.ts +70 -70
  937. package/src/main/browser/plugin-frontend-view-contribution.ts +38 -38
  938. package/src/main/browser/plugin-icon-service.ts +92 -156
  939. package/src/main/browser/plugin-icon-theme-service.ts +625 -625
  940. package/src/main/browser/plugin-shared-style.ts +154 -154
  941. package/src/main/browser/plugin-storage.ts +55 -55
  942. package/src/main/browser/plugin-terminal-registry.ts +27 -27
  943. package/src/main/browser/preference-registry-main.ts +123 -123
  944. package/src/main/browser/quick-open-main.ts +373 -324
  945. package/src/main/browser/scm-main.ts +472 -472
  946. package/src/main/browser/secrets-main.ts +82 -82
  947. package/src/main/browser/selection-provider-command.ts +45 -46
  948. package/src/main/browser/status-bar-message-registry-main.ts +90 -90
  949. package/src/main/browser/style/comments.css +345 -345
  950. package/src/main/browser/style/index.css +84 -84
  951. package/src/main/browser/style/plugin-sidebar.css +73 -73
  952. package/src/main/browser/style/tree.css +54 -54
  953. package/src/main/browser/style/webview.css +55 -55
  954. package/src/main/browser/tabs/tabs-main.ts +333 -333
  955. package/src/main/browser/tasks-main.ts +268 -268
  956. package/src/main/browser/terminal-main.ts +304 -304
  957. package/src/main/browser/test-main.ts +618 -618
  958. package/src/main/browser/text-editor-main.ts +472 -472
  959. package/src/main/browser/text-editor-model-service.ts +102 -102
  960. package/src/main/browser/text-editors-main.ts +215 -207
  961. package/src/main/browser/theme-icon-override.ts +246 -252
  962. package/src/main/browser/theming-main.ts +42 -42
  963. package/src/main/browser/timeline-main.ts +80 -80
  964. package/src/main/browser/view/dnd-file-content-store.ts +42 -42
  965. package/src/main/browser/view/plugin-tree-view-node-label-provider.ts +81 -81
  966. package/src/main/browser/view/plugin-view-registry.ts +942 -924
  967. package/src/main/browser/view/plugin-view-widget.ts +221 -222
  968. package/src/main/browser/view/tree-view-decorator-service.ts +51 -51
  969. package/src/main/browser/view/tree-view-widget.tsx +931 -932
  970. package/src/main/browser/view/tree-views-main.ts +209 -209
  971. package/src/main/browser/view/view-context-key-service.ts +70 -70
  972. package/src/main/browser/view-column-service.ts +125 -125
  973. package/src/main/browser/webview/pre/fake.html +14 -14
  974. package/src/main/browser/webview/pre/host.js +130 -130
  975. package/src/main/browser/webview/pre/index.html +17 -17
  976. package/src/main/browser/webview/pre/main.js +682 -682
  977. package/src/main/browser/webview/pre/service-worker.js +295 -295
  978. package/src/main/browser/webview/webview-context-keys.ts +62 -49
  979. package/src/main/browser/webview/webview-environment.ts +87 -87
  980. package/src/main/browser/webview/webview-frontend-security-warnings.ts +59 -59
  981. package/src/main/browser/webview/webview-preferences.ts +72 -72
  982. package/src/main/browser/webview/webview-resource-cache.ts +88 -88
  983. package/src/main/browser/webview/webview-theme-data-provider.ts +124 -124
  984. package/src/main/browser/webview/webview-widget-factory.ts +2 -1
  985. package/src/main/browser/webview/webview.ts +719 -717
  986. package/src/main/browser/webview-views/webview-views-main.ts +154 -154
  987. package/src/main/browser/webview-views/webview-views.ts +43 -43
  988. package/src/main/browser/webviews-main.ts +282 -277
  989. package/src/main/browser/window-state-main.ts +76 -76
  990. package/src/main/browser/workspace-main.ts +424 -424
  991. package/src/main/common/basic-message-registry-main.ts +53 -0
  992. package/src/main/common/basic-notification-main.ts +86 -0
  993. package/src/main/common/env-main.ts +44 -0
  994. package/src/main/common/plugin-paths-protocol.ts +26 -26
  995. package/src/main/common/plugin-theia-environment.ts +36 -36
  996. package/src/main/common/webview-protocol.ts +28 -28
  997. package/src/main/electron-browser/plugin-ext-frontend-electron-module.ts +25 -25
  998. package/src/main/electron-browser/webview/electron-webview-widget-factory.ts +59 -59
  999. package/src/main/node/errors.spec.ts +37 -37
  1000. package/src/main/node/handlers/plugin-theia-directory-handler.ts +137 -115
  1001. package/src/main/node/handlers/plugin-theia-file-handler.ts +66 -66
  1002. package/src/main/node/paths/const.ts +21 -21
  1003. package/src/main/node/paths/plugin-paths-service.ts +163 -163
  1004. package/src/main/node/plugin-cli-contribution.ts +85 -85
  1005. package/src/main/node/plugin-deployer-contribution.ts +35 -35
  1006. package/src/main/node/plugin-deployer-directory-handler-context-impl.ts +45 -45
  1007. package/src/main/node/plugin-deployer-entry-impl.ts +132 -132
  1008. package/src/main/node/plugin-deployer-file-handler-context-impl.ts +33 -33
  1009. package/src/main/node/plugin-deployer-impl.ts +364 -360
  1010. package/src/main/node/plugin-deployer-proxy-entry-impl.ts +96 -96
  1011. package/src/main/node/plugin-deployer-resolver-context-impl.ts +55 -55
  1012. package/src/main/node/plugin-ext-backend-module.ts +97 -97
  1013. package/src/main/node/plugin-github-resolver.ts +139 -139
  1014. package/src/main/node/plugin-http-resolver.ts +92 -92
  1015. package/src/main/node/plugin-localization-server.ts +42 -42
  1016. package/src/main/node/plugin-mgmt-cli-contribution.ts +64 -64
  1017. package/src/main/node/plugin-server-handler.ts +69 -69
  1018. package/src/main/node/plugin-service.ts +97 -97
  1019. package/src/main/node/plugin-theia-deployer-participant.ts +32 -32
  1020. package/src/main/node/plugin-uninstallation-manager.ts +74 -74
  1021. package/src/main/node/plugins-key-value-storage.spec.ts +110 -110
  1022. package/src/main/node/plugins-key-value-storage.ts +161 -161
  1023. package/src/main/node/resolvers/local-directory-plugin-deployer-resolver.ts +37 -37
  1024. package/src/main/node/resolvers/local-plugin-deployer-resolver.ts +56 -56
  1025. package/src/main/node/temp-dir-util.ts +36 -36
  1026. package/src/main/node/webview-backend-security-warnings.ts +45 -45
  1027. package/src/main/style/status-bar.css +35 -35
  1028. package/src/plugin/authentication-ext.ts +125 -125
  1029. package/src/plugin/clipboard-ext.ts +43 -37
  1030. package/src/plugin/command-registry.ts +219 -219
  1031. package/src/plugin/comments.ts +549 -549
  1032. package/src/plugin/custom-editors.ts +336 -336
  1033. package/src/plugin/debug/debug-ext.ts +499 -490
  1034. package/src/plugin/debug/plugin-debug-adapter-creator.ts +50 -50
  1035. package/src/plugin/debug/plugin-debug-adapter-session.ts +106 -106
  1036. package/src/plugin/debug/plugin-debug-adapter-tracker.ts +85 -85
  1037. package/src/plugin/decorations.ts +140 -140
  1038. package/src/plugin/dialogs.ts +96 -96
  1039. package/src/plugin/document-data.ts +366 -366
  1040. package/src/plugin/documents.ts +283 -283
  1041. package/src/plugin/editors-and-documents.ts +172 -170
  1042. package/src/plugin/env.ts +129 -113
  1043. package/src/plugin/file-system-event-service-ext-impl.ts +256 -256
  1044. package/src/plugin/file-system-ext-impl.ts +402 -402
  1045. package/src/plugin/known-commands.spec.ts +50 -50
  1046. package/src/plugin/known-commands.ts +428 -427
  1047. package/src/plugin/label-service.ts +36 -36
  1048. package/src/plugin/languages/call-hierarchy.ts +124 -124
  1049. package/src/plugin/languages/code-action.ts +162 -162
  1050. package/src/plugin/languages/color.ts +75 -75
  1051. package/src/plugin/languages/completion.ts +183 -183
  1052. package/src/plugin/languages/declaration.ts +72 -72
  1053. package/src/plugin/languages/definition.ts +73 -73
  1054. package/src/plugin/languages/diagnostics.ts +325 -325
  1055. package/src/plugin/languages/document-drop-edit.ts +44 -44
  1056. package/src/plugin/languages/document-formatting.ts +47 -47
  1057. package/src/plugin/languages/document-highlight.ts +61 -61
  1058. package/src/plugin/languages/evaluatable-expression.ts +47 -47
  1059. package/src/plugin/languages/folding.ts +46 -46
  1060. package/src/plugin/languages/hover.ts +58 -58
  1061. package/src/plugin/languages/implementation.ts +73 -73
  1062. package/src/plugin/languages/inlay-hints.ts +149 -149
  1063. package/src/plugin/languages/inline-completion.ts +126 -126
  1064. package/src/plugin/languages/inline-values.ts +50 -50
  1065. package/src/plugin/languages/lens.ts +102 -102
  1066. package/src/plugin/languages/link-provider.ts +81 -79
  1067. package/src/plugin/languages/linked-editing-range.ts +48 -48
  1068. package/src/plugin/languages/on-type-formatting.ts +50 -50
  1069. package/src/plugin/languages/outline.ts +126 -126
  1070. package/src/plugin/languages/range-formatting.ts +48 -48
  1071. package/src/plugin/languages/reference.ts +58 -58
  1072. package/src/plugin/languages/rename.ts +130 -130
  1073. package/src/plugin/languages/selection-range.ts +80 -80
  1074. package/src/plugin/languages/semantic-highlighting.ts +211 -211
  1075. package/src/plugin/languages/signature.ts +82 -82
  1076. package/src/plugin/languages/type-definition.ts +73 -73
  1077. package/src/plugin/languages/type-hierarchy.ts +117 -117
  1078. package/src/plugin/languages/util.ts +26 -26
  1079. package/src/plugin/languages/workspace-symbol.ts +66 -66
  1080. package/src/plugin/languages-utils.ts +68 -68
  1081. package/src/plugin/languages.ts +1022 -1022
  1082. package/src/plugin/localization-ext.ts +89 -84
  1083. package/src/plugin/markdown-string.ts +115 -115
  1084. package/src/plugin/message-registry.ts +70 -65
  1085. package/src/plugin/node/debug/debug.spec.ts +98 -94
  1086. package/src/plugin/node/debug/plugin-node-debug-adapter-creator.ts +167 -167
  1087. package/src/plugin/node/env-node-ext.ts +64 -69
  1088. package/src/plugin/node/plugin-container-module.ts +165 -0
  1089. package/src/plugin/notebook/notebook-document.ts +438 -438
  1090. package/src/plugin/notebook/notebook-documents.ts +58 -58
  1091. package/src/plugin/notebook/notebook-editor.ts +116 -116
  1092. package/src/plugin/notebook/notebook-editors.ts +71 -71
  1093. package/src/plugin/notebook/notebook-kernels.ts +617 -618
  1094. package/src/plugin/notebook/notebook-renderers.ts +71 -72
  1095. package/src/plugin/notebook/notebooks.ts +405 -385
  1096. package/src/plugin/notification.ts +80 -80
  1097. package/src/plugin/output-channel/log-output-channel.ts +108 -108
  1098. package/src/plugin/output-channel/output-channel-item.ts +73 -73
  1099. package/src/plugin/output-channel-registry.ts +52 -52
  1100. package/src/plugin/path.spec.ts +40 -40
  1101. package/src/plugin/path.ts +68 -68
  1102. package/src/plugin/plugin-context.ts +1495 -1478
  1103. package/src/plugin/plugin-icon-path.ts +50 -50
  1104. package/src/plugin/plugin-manager.ts +493 -439
  1105. package/src/plugin/plugin-storage.ts +138 -120
  1106. package/src/plugin/preference-registry.spec.ts +288 -283
  1107. package/src/plugin/preference-registry.ts +335 -329
  1108. package/src/plugin/prefix-sum-computer.ts +218 -218
  1109. package/src/plugin/quick-open.ts +759 -773
  1110. package/src/plugin/scm.ts +919 -919
  1111. package/src/plugin/secrets-ext.ts +104 -84
  1112. package/src/plugin/status-bar/status-bar-item.ts +193 -193
  1113. package/src/plugin/status-bar-message-registry.ts +103 -103
  1114. package/src/plugin/tabs.ts +426 -426
  1115. package/src/plugin/tasks/task-provider.ts +57 -57
  1116. package/src/plugin/tasks/tasks.ts +252 -252
  1117. package/src/plugin/telemetry-ext.ts +298 -298
  1118. package/src/plugin/terminal-ext.ts +553 -551
  1119. package/src/plugin/test-item.ts +174 -174
  1120. package/src/plugin/tests.ts +506 -506
  1121. package/src/plugin/text-editor.ts +582 -582
  1122. package/src/plugin/text-editors.ts +157 -150
  1123. package/src/plugin/theming.ts +73 -73
  1124. package/src/plugin/timeline.ts +186 -186
  1125. package/src/plugin/tree/tree-views.ts +682 -682
  1126. package/src/plugin/type-converters.spec.ts +476 -476
  1127. package/src/plugin/type-converters.ts +1748 -1712
  1128. package/src/plugin/types-impl.spec.ts +85 -85
  1129. package/src/plugin/types-impl.ts +3724 -3696
  1130. package/src/plugin/webview-views.ts +228 -227
  1131. package/src/plugin/webviews.ts +459 -433
  1132. package/src/plugin/window-state.ts +68 -68
  1133. package/src/plugin/word-helper.ts +162 -162
  1134. package/src/plugin/workspace.ts +505 -495
  1135. package/src/plugin-ext-backend-electron-module.ts +24 -24
  1136. package/src/plugin-ext-backend-module.ts +24 -24
  1137. package/src/plugin-ext-frontend-electron-module.ts +19 -19
  1138. package/src/plugin-ext-frontend-module.ts +19 -19
@@ -1,2089 +1,2113 @@
1
- import { ProxyIdentifier, RPCProtocol } from './rpc-protocol';
2
- import * as theia from '@theia/plugin';
3
- import { PluginLifecycle, PluginModel, PluginMetadata, PluginPackage, IconUrl, PluginJsonValidationContribution } from './plugin-protocol';
4
- import { QueryParameters } from './env';
5
- import { TextEditorCursorStyle } from './editor-options';
6
- import { ConfigurationTarget, TextEditorLineNumbersStyle, EndOfLine, OverviewRulerLane, FileOperationOptions, TextDocumentChangeReason, IndentAction, NotebookRendererScript } from '../plugin/types-impl';
7
- import { UriComponents } from './uri-components';
8
- import { SerializedDocumentFilter, CompletionContext, MarkdownString, Range, Completion, CompletionResultDto, MarkerData, SignatureHelp, Hover, EvaluatableExpression, InlineValue, InlineValueContext, DocumentHighlight, FormattingOptions, ChainedCacheId, Definition, DocumentLink, CodeLensSymbol, Command, TextEdit, DocumentSymbol, ReferenceContext, TextDocumentShowOptions, WorkspaceRootsChangeEvent, Location, Breakpoint, ColorPresentation, RenameLocation, SignatureHelpContext, CodeAction, CodeActionContext, FoldingContext, FoldingRange, SelectionRange, SearchInWorkspaceResult, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall, Comment, CommentOptions, CommentThreadState, CommentThreadCollapsibleState, CommentThread, CommentThreadChangedEvent, CodeActionProviderDocumentation, LinkedEditingRanges, ProvidedTerminalLink, InlayHint, CachedSession, CachedSessionItem, TypeHierarchyItem, InlineCompletion, InlineCompletions, InlineCompletionContext, DocumentDropEdit, DataTransferDTO, DocumentDropEditProviderMetadata } from './plugin-api-rpc-model';
9
- import { ExtPluginApi } from './plugin-ext-api-contribution';
10
- import { KeysToAnyValues, KeysToKeysToAnyValue } from './types';
11
- import { AuthenticationProviderAuthenticationSessionsChangeEvent, CancellationToken, Progress, ProgressOptions } from '@theia/plugin';
12
- import { DebuggerDescription } from '@theia/debug/lib/common/debug-service';
13
- import { DebugProtocol } from '@vscode/debugprotocol';
14
- import { SymbolInformation } from '@theia/core/shared/vscode-languageserver-protocol';
15
- import * as files from '@theia/filesystem/lib/common/files';
16
- import { BinaryBuffer } from '@theia/core/lib/common/buffer';
17
- import { ResourceLabelFormatter } from '@theia/core/lib/common/label-protocol';
18
- import type { InternalTimelineOptions, Timeline, TimelineChangeEvent, TimelineProviderDescriptor } from '@theia/timeline/lib/common/timeline-model';
19
- import { SerializableEnvironmentVariableCollection } from '@theia/terminal/lib/common/shell-terminal-protocol';
20
- import { ThemeType } from '@theia/core/lib/common/theme';
21
- import { Disposable } from '@theia/core/lib/common/disposable';
22
- import { PickOptions, QuickInputButtonHandle } from '@theia/core/lib/common';
23
- import { Severity } from '@theia/core/lib/common/severity';
24
- import { DebugConfiguration, DebugSessionOptions } from '@theia/debug/lib/common/debug-configuration';
25
- import * as notebookCommon from '@theia/notebook/lib/common';
26
- import { CellExecutionUpdateType, CellRange, NotebookCellExecutionState } from '@theia/notebook/lib/common';
27
- import { LanguagePackBundle } from './language-pack-service';
28
- import { AccessibilityInformation } from '@theia/core/lib/common/accessibility';
29
- import { TreeDelta } from '@theia/test/lib/common/tree-delta';
30
- import { TestItemDTO, TestOutputDTO, TestRunDTO, TestRunProfileDTO, TestRunRequestDTO, TestStateChangeDTO } from './test-types';
31
- import { ArgumentProcessor } from './commands';
32
- export interface PreferenceData {
33
- [scope: number]: any;
34
- }
35
- export interface Plugin {
36
- pluginPath: string | undefined;
37
- pluginFolder: string;
38
- pluginUri: string;
39
- model: PluginModel;
40
- rawModel: PluginPackage;
41
- lifecycle: PluginLifecycle;
42
- isUnderDevelopment: boolean;
43
- }
44
- export interface ConfigStorage {
45
- hostLogPath: string;
46
- hostStoragePath?: string;
47
- hostGlobalStoragePath: string;
48
- }
49
- export declare enum UIKind {
50
- /**
51
- * Extensions are accessed from a desktop application.
52
- */
53
- Desktop = 1,
54
- /**
55
- * Extensions are accessed from a web browser.
56
- */
57
- Web = 2
58
- }
59
- export interface EnvInit {
60
- queryParams: QueryParameters;
61
- language: string;
62
- shell: string;
63
- uiKind: UIKind;
64
- appName: string;
65
- appHost: string;
66
- }
67
- export interface PluginAPI {
68
- }
69
- export interface PluginManager {
70
- getAllPlugins(): Plugin[];
71
- getPluginById(pluginId: string): Plugin | undefined;
72
- getPluginExport(pluginId: string): PluginAPI | undefined;
73
- isRunning(pluginId: string): boolean;
74
- isActive(pluginId: string): boolean;
75
- activatePlugin(pluginId: string): PromiseLike<void>;
76
- onDidChange: theia.Event<void>;
77
- }
78
- export interface PluginAPIFactory {
79
- (plugin: Plugin): typeof theia;
80
- }
81
- export declare const emptyPlugin: Plugin;
82
- export interface PluginManagerInitializeParams {
83
- preferences: PreferenceData;
84
- globalState: KeysToKeysToAnyValue;
85
- workspaceState: KeysToKeysToAnyValue;
86
- env: EnvInit;
87
- extApi?: ExtPluginApi[];
88
- webview: WebviewInitData;
89
- jsonValidation: PluginJsonValidationContribution[];
90
- supportedActivationEvents?: string[];
91
- }
92
- export interface PluginManagerStartParams {
93
- plugins: PluginMetadata[];
94
- configStorage: ConfigStorage;
95
- activationEvents: string[];
96
- }
97
- export interface PluginManagerExt {
98
- /** initialize the manager, should be called only once */
99
- $init(params: PluginManagerInitializeParams): Promise<void>;
100
- /** load and activate plugins */
101
- $start(params: PluginManagerStartParams): Promise<void>;
102
- /** deactivate the plugin */
103
- $stop(pluginId: string): Promise<void>;
104
- /** deactivate all plugins */
105
- $stop(): Promise<void>;
106
- $updateStoragePath(path: string | undefined): Promise<void>;
107
- $activateByEvent(event: string): Promise<void>;
108
- $activatePlugin(id: string): Promise<void>;
109
- }
110
- export interface CommandRegistryMain {
111
- $registerCommand(command: theia.CommandDescription): void;
112
- $unregisterCommand(id: string): void;
113
- $registerHandler(id: string): void;
114
- $unregisterHandler(id: string): void;
115
- $executeCommand<T>(id: string, ...args: any[]): PromiseLike<T | undefined>;
116
- $getCommands(): PromiseLike<string[]>;
117
- $getKeyBinding(commandId: string): PromiseLike<theia.CommandKeyBinding[] | undefined>;
118
- registerArgumentProcessor(processor: ArgumentProcessor): void;
119
- }
120
- export interface CommandRegistryExt {
121
- $executeCommand<T>(id: string, ...ars: any[]): PromiseLike<T | undefined>;
122
- registerArgumentProcessor(processor: ArgumentProcessor): void;
123
- }
124
- export interface TerminalServiceExt {
125
- $startProfile(providerId: string, cancellationToken: theia.CancellationToken): Promise<string>;
126
- $terminalCreated(id: string, name: string): void;
127
- $terminalNameChanged(id: string, name: string): void;
128
- $terminalOpened(id: string, processId: number, terminalId: number, cols: number, rows: number): void;
129
- $terminalClosed(id: string, exitStatus: theia.TerminalExitStatus | undefined): void;
130
- $terminalOnInput(id: string, data: string): void;
131
- $terminalSizeChanged(id: string, cols: number, rows: number): void;
132
- $currentTerminalChanged(id: string | undefined): void;
133
- $terminalStateChanged(id: string): void;
134
- $initEnvironmentVariableCollections(collections: [string, string, boolean, SerializableEnvironmentVariableCollection][]): void;
135
- $provideTerminalLinks(line: string, terminalId: string, token: theia.CancellationToken): Promise<ProvidedTerminalLink[]>;
136
- $handleTerminalLink(link: ProvidedTerminalLink): Promise<void>;
137
- getEnvironmentVariableCollection(extensionIdentifier: string): theia.GlobalEnvironmentVariableCollection;
138
- $setShell(shell: string): void;
139
- }
140
- export interface OutputChannelRegistryExt {
141
- createOutputChannel(name: string, pluginInfo: PluginInfo): theia.OutputChannel;
142
- createOutputChannel(name: string, pluginInfo: PluginInfo, options: {
143
- log: true;
144
- }): theia.LogOutputChannel;
145
- }
146
- export interface ConnectionMain {
147
- $createConnection(id: string): Promise<void>;
148
- $deleteConnection(id: string): Promise<void>;
149
- $sendMessage(id: string, message: string): void;
150
- }
151
- export interface ConnectionExt {
152
- $createConnection(id: string): Promise<void>;
153
- $deleteConnection(id: string): Promise<void>;
154
- $sendMessage(id: string, message: string): void;
155
- }
156
- export interface TerminalServiceMain {
157
- /**
158
- * Create new Terminal with Terminal options.
159
- * @param options - object with parameters to create new terminal.
160
- */
161
- $createTerminal(id: string, options: theia.TerminalOptions, parentId?: string, isPseudoTerminal?: boolean): Promise<string>;
162
- /**
163
- * Send text to the terminal by id.
164
- * @param id - terminal widget id.
165
- * @param text - text content.
166
- * @param addNewLine - in case true - add new line after the text, otherwise - don't apply new line.
167
- */
168
- $sendText(id: string, text: string, addNewLine?: boolean): void;
169
- /**
170
- * Write data to the terminal by id.
171
- * @param id - terminal widget id.
172
- * @param data - data.
173
- */
174
- $write(id: string, data: string): void;
175
- /**
176
- * Resize the terminal by id.
177
- * @param id - terminal widget id.
178
- * @param cols - columns.
179
- * @param rows - rows.
180
- */
181
- $resize(id: string, cols: number, rows: number): void;
182
- /**
183
- * Show terminal on the UI panel.
184
- * @param id - terminal widget id.
185
- * @param preserveFocus - set terminal focus in case true value, and don't set focus otherwise.
186
- */
187
- $show(id: string, preserveFocus?: boolean): void;
188
- /**
189
- * Hide UI panel where is located terminal widget.
190
- * @param id - terminal widget id.
191
- */
192
- $hide(id: string): void;
193
- /**
194
- * Destroy terminal.
195
- * @param id - terminal widget id.
196
- */
197
- $dispose(id: string): void;
198
- /**
199
- * Set the terminal widget name.
200
- * @param id terminal widget id.
201
- * @param name new terminal widget name.
202
- */
203
- $setName(id: string, name: string): void;
204
- /**
205
- * Send text to the terminal by id.
206
- * @param id - terminal id.
207
- * @param text - text content.
208
- * @param addNewLine - in case true - add new line after the text, otherwise - don't apply new line.
209
- */
210
- $sendTextByTerminalId(id: number, text: string, addNewLine?: boolean): void;
211
- /**
212
- * Write data to the terminal by id.
213
- * @param id - terminal id.
214
- * @param data - data.
215
- */
216
- $writeByTerminalId(id: number, data: string): void;
217
- /**
218
- * Resize the terminal by id.
219
- * @param id - terminal id.
220
- * @param cols - columns.
221
- * @param rows - rows.
222
- */
223
- $resizeByTerminalId(id: number, cols: number, rows: number): void;
224
- /**
225
- * Show terminal on the UI panel.
226
- * @param id - terminal id.
227
- * @param preserveFocus - set terminal focus in case true value, and don't set focus otherwise.
228
- */
229
- $showByTerminalId(id: number, preserveFocus?: boolean): void;
230
- /**
231
- * Hide UI panel where is located terminal widget.
232
- * @param id - terminal id.
233
- */
234
- $hideByTerminalId(id: number): void;
235
- /**
236
- * Destroy terminal.
237
- * @param id - terminal id.
238
- * @param waitOnExit - Whether to wait for a key press before closing the terminal.
239
- */
240
- $disposeByTerminalId(id: number, waitOnExit?: boolean | string): void;
241
- $setEnvironmentVariableCollection(persistent: boolean, extensionIdentifier: string, rootUri: string, collection: SerializableEnvironmentVariableCollection): void;
242
- /**
243
- * Set the terminal widget name.
244
- * @param id terminal id.
245
- * @param name new terminal widget name.
246
- */
247
- $setNameByTerminalId(id: number, name: string): void;
248
- /**
249
- * Register a new terminal link provider.
250
- * @param providerId id of the terminal link provider to be registered.
251
- */
252
- $registerTerminalLinkProvider(providerId: string): Promise<void>;
253
- /**
254
- * Unregister the terminal link provider with the specified id.
255
- * @param providerId id of the terminal link provider to be unregistered.
256
- */
257
- $unregisterTerminalLinkProvider(providerId: string): Promise<void>;
258
- }
259
- export interface AutoFocus {
260
- autoFocusFirstEntry?: boolean;
261
- }
262
- export declare enum MainMessageType {
263
- Error = 0,
264
- Warning = 1,
265
- Info = 2
266
- }
267
- export interface MainMessageOptions {
268
- detail?: string;
269
- modal?: boolean;
270
- onCloseActionHandle?: number;
271
- }
272
- export interface MainMessageItem {
273
- title: string;
274
- isCloseAffordance?: boolean;
275
- handle?: number;
276
- }
277
- export interface MessageRegistryMain {
278
- $showMessage(type: MainMessageType, message: string, options: MainMessageOptions, actions: MainMessageItem[]): PromiseLike<number | undefined>;
279
- }
280
- export interface StatusBarMessageRegistryMain {
281
- $setMessage(id: string, name: string | undefined, text: string | undefined, priority: number, alignment: theia.StatusBarAlignment, color: string | undefined, backgroundColor: string | undefined, tooltip: string | theia.MarkdownString | undefined, command: string | undefined, accessibilityInformation: theia.AccessibilityInformation, args: any[] | undefined): PromiseLike<void>;
282
- $dispose(id: string): void;
283
- }
284
- export declare type Item = string | theia.QuickPickItem;
285
- export interface QuickOpenExt {
286
- $onItemSelected(handle: number): void;
287
- $validateInput(input: string): Promise<string | {
288
- content: string;
289
- severity: Severity;
290
- } | null | undefined> | undefined;
291
- $acceptOnDidAccept(sessionId: number): Promise<void>;
292
- $acceptDidChangeValue(sessionId: number, changedValue: string): Promise<void>;
293
- $acceptOnDidHide(sessionId: number): Promise<void>;
294
- $acceptOnDidTriggerButton(sessionId: number, btn: QuickInputButtonHandle): Promise<void>;
295
- $onDidTriggerItemButton(sessionId: number, itemHandle: number, buttonHandle: number): void;
296
- $onDidChangeActive(sessionId: number, handles: number[]): void;
297
- $onDidChangeSelection(sessionId: number, handles: number[]): void;
298
- showQuickPick(itemsOrItemsPromise: Array<theia.QuickPickItem> | Promise<Array<theia.QuickPickItem>>, options: theia.QuickPickOptions & {
299
- canPickMany: true;
300
- }, token?: theia.CancellationToken): Promise<Array<theia.QuickPickItem> | undefined>;
301
- showQuickPick(itemsOrItemsPromise: string[] | Promise<string[]>, options?: theia.QuickPickOptions, token?: theia.CancellationToken): Promise<string | undefined>;
302
- showQuickPick(itemsOrItemsPromise: Array<theia.QuickPickItem> | Promise<Array<theia.QuickPickItem>>, options?: theia.QuickPickOptions, token?: theia.CancellationToken): Promise<theia.QuickPickItem | undefined>;
303
- showQuickPick(itemsOrItemsPromise: Item[] | Promise<Item[]>, options?: theia.QuickPickOptions, token?: theia.CancellationToken): Promise<Item | Item[] | undefined>;
304
- showInput(options?: theia.InputBoxOptions, token?: theia.CancellationToken): PromiseLike<string | undefined>;
305
- createQuickPick<T extends theia.QuickPickItem>(plugin: Plugin): theia.QuickPick<T>;
306
- createInputBox(plugin: Plugin): theia.InputBox;
307
- }
308
- /**
309
- * Options to configure the behaviour of a file open dialog.
310
- */
311
- export interface OpenDialogOptionsMain {
312
- /**
313
- * Dialog title.
314
- * This parameter might be ignored, as not all operating systems display a title on open dialogs.
315
- */
316
- title?: string;
317
- /**
318
- * The resource the dialog shows when opened.
319
- */
320
- defaultUri?: string;
321
- /**
322
- * A human-readable string for the open button.
323
- */
324
- openLabel?: string;
325
- /**
326
- * Allow to select files, defaults to `true`.
327
- */
328
- canSelectFiles?: boolean;
329
- /**
330
- * Allow to select folders, defaults to `false`.
331
- */
332
- canSelectFolders?: boolean;
333
- /**
334
- * Allow to select many files or folders.
335
- */
336
- canSelectMany?: boolean;
337
- /**
338
- * A set of file filters that are used by the dialog. Each entry is a human readable label,
339
- * like "TypeScript", and an array of extensions, e.g.
340
- * ```ts
341
- * {
342
- * 'Images': ['png', 'jpg']
343
- * 'TypeScript': ['ts', 'tsx']
344
- * }
345
- * ```
346
- */
347
- filters?: {
348
- [name: string]: string[];
349
- };
350
- }
351
- /**
352
- * Options to configure the behaviour of a file save dialog.
353
- */
354
- export interface SaveDialogOptionsMain {
355
- /**
356
- * Dialog title.
357
- * This parameter might be ignored, as not all operating systems display a title on save dialogs.
358
- */
359
- title?: string;
360
- /**
361
- * The resource the dialog shows when opened.
362
- */
363
- defaultUri?: string;
364
- /**
365
- * A human-readable string for the save button.
366
- */
367
- saveLabel?: string;
368
- /**
369
- * A set of file filters that are used by the dialog. Each entry is a human readable label,
370
- * like "TypeScript", and an array of extensions, e.g.
371
- * ```ts
372
- * {
373
- * 'Images': ['png', 'jpg']
374
- * 'TypeScript': ['ts', 'tsx']
375
- * }
376
- * ```
377
- */
378
- filters?: {
379
- [name: string]: string[];
380
- };
381
- }
382
- /**
383
- * Options to configure the behaviour of a file upload dialog.
384
- */
385
- export interface UploadDialogOptionsMain {
386
- /**
387
- * The resource, where files should be uploaded.
388
- */
389
- defaultUri?: string;
390
- }
391
- export interface FileUploadResultMain {
392
- uploaded: string[];
393
- }
394
- /**
395
- * Options to configure the behaviour of the [workspace folder](#WorkspaceFolder) pick UI.
396
- */
397
- export interface WorkspaceFolderPickOptionsMain {
398
- /**
399
- * An optional string to show as place holder in the input box to guide the user what to pick on.
400
- */
401
- placeHolder?: string;
402
- /**
403
- * Set to `true` to keep the picker open when focus moves to another part of the editor or to another window.
404
- */
405
- ignoreFocusOut?: boolean;
406
- }
407
- export declare type TransferQuickPickItems = TransferQuickPickItemValue | TransferQuickPickSeparator;
408
- export interface TransferQuickPickItemValue extends theia.QuickPickItem {
409
- handle: number;
410
- type?: 'item';
411
- }
412
- export interface TransferQuickPickSeparator extends theia.QuickPickItem {
413
- handle: number;
414
- type: 'separator';
415
- }
416
- export interface TransferQuickInputButton extends theia.QuickInputButton {
417
- iconPath: theia.Uri | {
418
- light: theia.Uri;
419
- dark: theia.Uri;
420
- } | ThemeIcon;
421
- iconClass?: string;
422
- handle?: number;
423
- }
424
- export declare type TransferQuickInput = TransferQuickPick | TransferInputBox;
425
- export interface BaseTransferQuickInput {
426
- [key: string]: any;
427
- id: number;
428
- type?: 'quickPick' | 'inputBox';
429
- enabled?: boolean;
430
- busy?: boolean;
431
- visible?: boolean;
432
- }
433
- export interface TransferQuickPick extends BaseTransferQuickInput {
434
- type?: 'quickPick';
435
- value?: string;
436
- placeholder?: string;
437
- buttons?: TransferQuickInputButton[];
438
- items?: TransferQuickPickItems[];
439
- activeItems?: ReadonlyArray<theia.QuickPickItem>;
440
- selectedItems?: ReadonlyArray<theia.QuickPickItem>;
441
- canSelectMany?: boolean;
442
- ignoreFocusOut?: boolean;
443
- matchOnDescription?: boolean;
444
- matchOnDetail?: boolean;
445
- sortByLabel?: boolean;
446
- }
447
- export interface TransferInputBox extends BaseTransferQuickInput {
448
- type?: 'inputBox';
449
- value?: string;
450
- placeholder?: string;
451
- password?: boolean;
452
- buttons?: TransferQuickInputButton[];
453
- prompt?: string;
454
- validationMessage?: string;
455
- }
456
- export interface IInputBoxOptions {
457
- value?: string;
458
- valueSelection?: [number, number];
459
- prompt?: string;
460
- placeHolder?: string;
461
- password?: boolean;
462
- ignoreFocusOut?: boolean;
463
- }
464
- export interface QuickOpenMain {
465
- $show(instance: number, options: PickOptions<TransferQuickPickItemValue>, token: CancellationToken): Promise<number | number[] | undefined>;
466
- $setItems(instance: number, items: TransferQuickPickItems[]): Promise<any>;
467
- $setError(instance: number, error: Error): Promise<void>;
468
- $input(options: theia.InputBoxOptions, validateInput: boolean, token: CancellationToken): Promise<string | undefined>;
469
- $createOrUpdate<T extends theia.QuickPickItem>(params: TransferQuickInput): Promise<void>;
470
- $dispose(id: number): Promise<void>;
471
- $hide(): void;
472
- $showInputBox(options: TransferInputBox, validateInput: boolean): Promise<string | undefined>;
473
- }
474
- export interface WorkspaceMain {
475
- $pickWorkspaceFolder(options: WorkspaceFolderPickOptionsMain): Promise<theia.WorkspaceFolder | undefined>;
476
- $startFileSearch(includePattern: string, includeFolder: string | undefined, excludePatternOrDisregardExcludes: string | false, maxResults: number | undefined, token: theia.CancellationToken): PromiseLike<UriComponents[]>;
477
- $findTextInFiles(query: theia.TextSearchQuery, options: theia.FindTextInFilesOptions, searchRequestId: number, token?: theia.CancellationToken): Promise<theia.TextSearchComplete>;
478
- $registerTextDocumentContentProvider(scheme: string): Promise<void>;
479
- $unregisterTextDocumentContentProvider(scheme: string): void;
480
- $onTextDocumentContentChange(uri: string, content: string): void;
481
- $updateWorkspaceFolders(start: number, deleteCount?: number, ...rootsToAdd: string[]): Promise<void>;
482
- $getWorkspace(): Promise<files.FileStat | undefined>;
483
- $requestWorkspaceTrust(options?: theia.WorkspaceTrustRequestOptions): Promise<boolean | undefined>;
484
- $resolveProxy(url: string): Promise<string | undefined>;
485
- $registerCanonicalUriProvider(scheme: string): Promise<void | undefined>;
486
- $unregisterCanonicalUriProvider(scheme: string): void;
487
- $getCanonicalUri(uri: string, targetScheme: string, token: theia.CancellationToken): Promise<string | undefined>;
488
- }
489
- export interface WorkspaceExt {
490
- $onWorkspaceFoldersChanged(event: WorkspaceRootsChangeEvent): void;
491
- $onWorkspaceLocationChanged(event: files.FileStat | undefined): void;
492
- $provideTextDocumentContent(uri: string): Promise<string | undefined | null>;
493
- $onTextSearchResult(searchRequestId: number, done: boolean, result?: SearchInWorkspaceResult): void;
494
- $onWorkspaceTrustChanged(trust: boolean | undefined): void;
495
- $registerEditSessionIdentityProvider(scheme: string, provider: theia.EditSessionIdentityProvider): theia.Disposable;
496
- registerCanonicalUriProvider(scheme: string, provider: theia.CanonicalUriProvider): theia.Disposable;
497
- $disposeCanonicalUriProvider(scheme: string): void;
498
- getCanonicalUri(uri: theia.Uri, options: theia.CanonicalUriRequestOptions, token: CancellationToken): theia.ProviderResult<theia.Uri>;
499
- $provideCanonicalUri(uri: string, targetScheme: string, token: CancellationToken): Promise<string | undefined>;
500
- }
501
- export interface TimelineExt {
502
- $getTimeline(source: string, uri: UriComponents, options: theia.TimelineOptions, internalOptions?: InternalTimelineOptions): Promise<Timeline | undefined>;
503
- }
504
- export interface TimelineMain {
505
- $registerTimelineProvider(provider: TimelineProviderDescriptor): Promise<void>;
506
- $fireTimelineChanged(e: TimelineChangeEvent): Promise<void>;
507
- $unregisterTimelineProvider(source: string): Promise<void>;
508
- }
509
- export interface ThemingExt {
510
- $onColorThemeChange(type: ThemeType): void;
511
- }
512
- export interface ThemingMain extends Disposable {
513
- }
514
- export interface DialogsMain {
515
- $showOpenDialog(options: OpenDialogOptionsMain): Promise<string[] | undefined>;
516
- $showSaveDialog(options: SaveDialogOptionsMain): Promise<string | undefined>;
517
- $showUploadDialog(options: UploadDialogOptionsMain): Promise<string[] | undefined>;
518
- }
519
- export interface RegisterTreeDataProviderOptions {
520
- manageCheckboxStateManually?: boolean;
521
- showCollapseAll?: boolean;
522
- canSelectMany?: boolean;
523
- dragMimeTypes?: string[];
524
- dropMimeTypes?: string[];
525
- }
526
- export interface TreeViewRevealOptions {
527
- select: boolean;
528
- focus: boolean;
529
- expand: boolean | number;
530
- }
531
- export interface TreeViewsMain {
532
- $registerTreeDataProvider(treeViewId: string, options?: RegisterTreeDataProviderOptions): void;
533
- $readDroppedFile(contentId: string): Promise<BinaryBuffer>;
534
- $unregisterTreeDataProvider(treeViewId: string): void;
535
- $refresh(treeViewId: string): Promise<void>;
536
- $reveal(treeViewId: string, elementParentChain: string[], options: TreeViewRevealOptions): Promise<any>;
537
- $setMessage(treeViewId: string, message: string): void;
538
- $setTitle(treeViewId: string, title: string): void;
539
- $setDescription(treeViewId: string, description: string): void;
540
- $setBadge(treeViewId: string, badge: theia.ViewBadge | undefined): void;
541
- }
542
- export declare class DataTransferFileDTO {
543
- readonly name: string;
544
- readonly contentId: string;
545
- readonly uri?: UriComponents | undefined;
546
- constructor(name: string, contentId: string, uri?: UriComponents | undefined);
547
- static is(value: string | DataTransferFileDTO): value is DataTransferFileDTO;
548
- }
549
- export interface TreeViewsExt {
550
- $checkStateChanged(treeViewId: string, itemIds: {
551
- id: string;
552
- checked: boolean;
553
- }[]): Promise<void>;
554
- $dragStarted(treeViewId: string, treeItemIds: string[], token: CancellationToken): Promise<UriComponents[] | undefined>;
555
- $dragEnd(treeViewId: string): Promise<void>;
556
- $drop(treeViewId: string, treeItemId: string | undefined, dataTransferItems: [string, string | DataTransferFileDTO][], token: CancellationToken): Promise<void>;
557
- $getChildren(treeViewId: string, treeItemId: string | undefined): Promise<TreeViewItem[] | undefined>;
558
- $hasResolveTreeItem(treeViewId: string): Promise<boolean>;
559
- $resolveTreeItem(treeViewId: string, treeItemId: string, token: CancellationToken): Promise<TreeViewItem | undefined>;
560
- $setExpanded(treeViewId: string, treeItemId: string, expanded: boolean): Promise<any>;
561
- $setSelection(treeViewId: string, treeItemIds: string[]): Promise<void>;
562
- $setVisible(treeViewId: string, visible: boolean): Promise<void>;
563
- }
564
- export interface TreeViewItemCheckboxInfo {
565
- checked: boolean;
566
- tooltip?: string;
567
- accessibilityInformation?: AccessibilityInformation;
568
- }
569
- export interface TreeViewItem {
570
- id: string;
571
- label: string;
572
- /** Label highlights given as tuples of inclusive start index and exclusive end index. */
573
- highlights?: [number, number][];
574
- description?: string | boolean;
575
- icon?: string;
576
- iconUrl?: IconUrl;
577
- themeIcon?: ThemeIcon;
578
- resourceUri?: UriComponents;
579
- tooltip?: string | MarkdownString;
580
- collapsibleState?: TreeViewItemCollapsibleState;
581
- checkboxInfo?: TreeViewItemCheckboxInfo;
582
- contextValue?: string;
583
- command?: Command;
584
- accessibilityInformation?: theia.AccessibilityInformation;
585
- }
586
- export interface TreeViewItemReference {
587
- viewId: string;
588
- itemId: string;
589
- }
590
- export declare namespace TreeViewItemReference {
591
- function is(arg: unknown): arg is TreeViewItemReference;
592
- }
593
- /**
594
- * Collapsible state of the tree item
595
- */
596
- export declare enum TreeViewItemCollapsibleState {
597
- /**
598
- * Determines an item can be neither collapsed nor expanded. Implies it has no children.
599
- */
600
- None = 0,
601
- /**
602
- * Determines an item is collapsed
603
- */
604
- Collapsed = 1,
605
- /**
606
- * Determines an item is expanded
607
- */
608
- Expanded = 2
609
- }
610
- export interface WindowMain {
611
- $openUri(uri: UriComponents): Promise<boolean>;
612
- $asExternalUri(uri: UriComponents): Promise<UriComponents>;
613
- }
614
- export interface WindowStateExt {
615
- $onWindowStateChanged(focus: boolean): void;
616
- }
617
- export interface NotificationExt {
618
- withProgress<R>(options: ProgressOptions, task: (progress: Progress<{
619
- message?: string;
620
- increment?: number;
621
- }>, token: CancellationToken) => PromiseLike<R>): PromiseLike<R>;
622
- $acceptProgressCanceled(progressId: string): void;
623
- }
624
- export interface ScmCommandArg {
625
- sourceControlHandle: number;
626
- resourceGroupHandle?: number;
627
- resourceStateHandle?: number;
628
- }
629
- export declare namespace ScmCommandArg {
630
- function is(arg: unknown): arg is ScmCommandArg;
631
- }
632
- export interface ScmExt {
633
- createSourceControl(plugin: Plugin, id: string, label: string, rootUri?: theia.Uri): theia.SourceControl;
634
- getLastInputBox(plugin: Plugin): theia.SourceControlInputBox | undefined;
635
- $onInputBoxValueChange(sourceControlHandle: number, message: string): Promise<void>;
636
- $executeResourceCommand(sourceControlHandle: number, groupHandle: number, resourceHandle: number): Promise<void>;
637
- $validateInput(sourceControlHandle: number, value: string, cursorPosition: number): Promise<[string, number] | undefined>;
638
- $setSelectedSourceControl(selectedSourceControlHandle: number | undefined): Promise<void>;
639
- $provideOriginalResource(sourceControlHandle: number, uri: string, token: theia.CancellationToken): Promise<UriComponents | undefined>;
640
- }
641
- export declare namespace TimelineCommandArg {
642
- function is(arg: unknown): arg is TimelineCommandArg;
643
- }
644
- export interface TimelineCommandArg {
645
- timelineHandle: string;
646
- source: string;
647
- uri: string;
648
- }
649
- export interface DecorationRequest {
650
- readonly id: number;
651
- readonly uri: UriComponents;
652
- }
653
- export declare type DecorationData = [boolean, string, string, ThemeColor];
654
- export interface DecorationReply {
655
- [id: number]: DecorationData;
656
- }
657
- export declare namespace CommentsCommandArg {
658
- function is(arg: unknown): arg is CommentsCommandArg;
659
- }
660
- export interface CommentsCommandArg {
661
- commentControlHandle: number;
662
- commentThreadHandle: number;
663
- text: string;
664
- }
665
- export declare namespace CommentsContextCommandArg {
666
- function is(arg: unknown): arg is CommentsContextCommandArg;
667
- }
668
- export interface CommentsContextCommandArg {
669
- commentControlHandle: number;
670
- commentThreadHandle: number;
671
- commentUniqueId: number;
672
- }
673
- export declare namespace CommentsEditCommandArg {
674
- function is(arg: unknown): arg is CommentsEditCommandArg;
675
- }
676
- export interface CommentsEditCommandArg {
677
- commentControlHandle: number;
678
- commentThreadHandle: number;
679
- commentUniqueId: number;
680
- text: string;
681
- }
682
- export interface DecorationsExt {
683
- registerFileDecorationProvider(provider: theia.FileDecorationProvider, pluginInfo: PluginInfo): theia.Disposable;
684
- $provideDecorations(handle: number, requests: DecorationRequest[], token: CancellationToken): Promise<DecorationReply>;
685
- }
686
- export interface DecorationsMain {
687
- $registerDecorationProvider(handle: number): Promise<void>;
688
- $unregisterDecorationProvider(handle: number): void;
689
- $onDidChange(handle: number, resources: UriComponents[] | null): void;
690
- }
691
- export interface ScmMain {
692
- $registerSourceControl(sourceControlHandle: number, id: string, label: string, rootUri?: UriComponents): Promise<void>;
693
- $updateSourceControl(sourceControlHandle: number, features: SourceControlProviderFeatures): Promise<void>;
694
- $unregisterSourceControl(sourceControlHandle: number): Promise<void>;
695
- $registerGroups(sourceControlHandle: number, groups: ScmRawResourceGroup[], splices: ScmRawResourceSplices[]): void;
696
- $updateGroup(sourceControlHandle: number, groupHandle: number, features: SourceControlGroupFeatures): void;
697
- $updateGroupLabel(sourceControlHandle: number, groupHandle: number, label: string): void;
698
- $unregisterGroup(sourceControlHandle: number, groupHandle: number): void;
699
- $spliceResourceStates(sourceControlHandle: number, splices: ScmRawResourceSplices[]): void;
700
- $setInputBoxValue(sourceControlHandle: number, value: string): void;
701
- $setInputBoxPlaceholder(sourceControlHandle: number, placeholder: string): void;
702
- $setInputBoxVisible(sourceControlHandle: number, visible: boolean): void;
703
- $setInputBoxEnabled(sourceControlHandle: number, enabled: boolean): void;
704
- }
705
- export interface SourceControlProviderFeatures {
706
- hasQuickDiffProvider?: boolean;
707
- count?: number;
708
- commitTemplate?: string;
709
- acceptInputCommand?: Command;
710
- statusBarCommands?: Command[];
711
- }
712
- export interface SourceControlGroupFeatures {
713
- hideWhenEmpty: boolean | undefined;
714
- }
715
- export interface ScmRawResource {
716
- handle: number;
717
- sourceUri: UriComponents;
718
- icons: (IconUrl | ThemeIcon | undefined)[];
719
- tooltip: string;
720
- strikeThrough: boolean;
721
- faded: boolean;
722
- contextValue: string;
723
- command: Command | undefined;
724
- }
725
- export interface ScmRawResourceGroup {
726
- handle: number;
727
- id: string;
728
- label: string;
729
- features: SourceControlGroupFeatures;
730
- }
731
- export interface ScmRawResourceSplice {
732
- start: number;
733
- deleteCount: number;
734
- rawResources: ScmRawResource[];
735
- }
736
- export interface ScmRawResourceSplices {
737
- handle: number;
738
- splices: ScmRawResourceSplice[];
739
- }
740
- export interface SourceControlResourceState {
741
- readonly handle: number;
742
- /**
743
- * The uri of the underlying resource inside the workspace.
744
- */
745
- readonly resourceUri: string;
746
- /**
747
- * The command which should be run when the resource
748
- * state is open in the Source Control viewlet.
749
- */
750
- readonly command?: Command;
751
- /**
752
- * The decorations for this source control
753
- * resource state.
754
- */
755
- readonly decorations?: SourceControlResourceDecorations;
756
- readonly letter?: string;
757
- readonly colorId?: string;
758
- }
759
- /**
760
- * The decorations for a [source control resource state](#SourceControlResourceState).
761
- * Can be independently specified for light and dark themes.
762
- */
763
- export interface SourceControlResourceDecorations {
764
- /**
765
- * Whether the source control resource state should be striked-through in the UI.
766
- */
767
- readonly strikeThrough?: boolean;
768
- /**
769
- * Whether the source control resource state should be faded in the UI.
770
- */
771
- readonly faded?: boolean;
772
- /**
773
- * The title for a specific source control resource state.
774
- */
775
- readonly tooltip?: string;
776
- /**
777
- * The icon path for a specific source control resource state.
778
- */
779
- readonly iconPath?: string;
780
- }
781
- export interface NotificationMain {
782
- $startProgress(options: NotificationMain.StartProgressOptions): Promise<string>;
783
- $stopProgress(id: string): void;
784
- $updateProgress(id: string, report: NotificationMain.ProgressReport): void;
785
- }
786
- export declare namespace NotificationMain {
787
- interface StartProgressOptions {
788
- title: string;
789
- location?: string;
790
- cancellable?: boolean;
791
- }
792
- interface ProgressReport {
793
- message?: string;
794
- increment?: number;
795
- total?: number;
796
- }
797
- }
798
- export declare enum EditorPosition {
799
- ONE = 0,
800
- TWO = 1,
801
- THREE = 2,
802
- FOUR = 3,
803
- FIVE = 4,
804
- SIX = 5,
805
- SEVEN = 6,
806
- EIGHT = 7,
807
- NINE = 8
808
- }
809
- export interface Position {
810
- readonly lineNumber: number;
811
- readonly column: number;
812
- }
813
- export interface Selection {
814
- /**
815
- * The line number on which the selection has started.
816
- */
817
- readonly selectionStartLineNumber: number;
818
- /**
819
- * The column on `selectionStartLineNumber` where the selection has started.
820
- */
821
- readonly selectionStartColumn: number;
822
- /**
823
- * The line number on which the selection has ended.
824
- */
825
- readonly positionLineNumber: number;
826
- /**
827
- * The column on `positionLineNumber` where the selection has ended.
828
- */
829
- readonly positionColumn: number;
830
- }
831
- export interface TextEditorConfiguration {
832
- tabSize: number;
833
- indentSize: number;
834
- insertSpaces: boolean;
835
- cursorStyle: TextEditorCursorStyle;
836
- lineNumbers: TextEditorLineNumbersStyle;
837
- }
838
- export interface TextEditorConfigurationUpdate {
839
- tabSize?: number | 'auto';
840
- indentSize?: number | 'tabSize';
841
- insertSpaces?: boolean | 'auto';
842
- cursorStyle?: TextEditorCursorStyle;
843
- lineNumbers?: TextEditorLineNumbersStyle;
844
- }
845
- export declare enum TextEditorRevealType {
846
- Default = 0,
847
- InCenter = 1,
848
- InCenterIfOutsideViewport = 2,
849
- AtTop = 3
850
- }
851
- export interface SelectionChangeEvent {
852
- selections: Selection[];
853
- source?: string;
854
- }
855
- export interface EditorChangedPropertiesData {
856
- options?: TextEditorConfiguration;
857
- selections?: SelectionChangeEvent;
858
- visibleRanges?: Range[];
859
- }
860
- export interface TextEditorPositionData {
861
- [id: string]: EditorPosition;
862
- }
863
- export interface TextEditorsExt {
864
- $acceptEditorPropertiesChanged(id: string, props: EditorChangedPropertiesData): void;
865
- $acceptEditorPositionData(data: TextEditorPositionData): void;
866
- }
867
- export interface SingleEditOperation {
868
- range?: Range;
869
- text?: string;
870
- forceMoveMarkers?: boolean;
871
- }
872
- export interface UndoStopOptions {
873
- undoStopBefore: boolean;
874
- undoStopAfter: boolean;
875
- }
876
- export interface ApplyEditsOptions extends UndoStopOptions {
877
- setEndOfLine: EndOfLine;
878
- }
879
- export interface ThemeColor {
880
- id: string;
881
- }
882
- export interface ThemeIcon {
883
- id: string;
884
- color?: ThemeColor;
885
- }
886
- /**
887
- * Describes the behavior of decorations when typing/editing near their edges.
888
- */
889
- export declare enum TrackedRangeStickiness {
890
- AlwaysGrowsWhenTypingAtEdges = 0,
891
- NeverGrowsWhenTypingAtEdges = 1,
892
- GrowsOnlyWhenTypingBefore = 2,
893
- GrowsOnlyWhenTypingAfter = 3
894
- }
895
- export interface ContentDecorationRenderOptions {
896
- contentText?: string;
897
- contentIconPath?: UriComponents;
898
- border?: string;
899
- borderColor?: string | ThemeColor;
900
- fontStyle?: string;
901
- fontWeight?: string;
902
- textDecoration?: string;
903
- color?: string | ThemeColor;
904
- backgroundColor?: string | ThemeColor;
905
- margin?: string;
906
- width?: string;
907
- height?: string;
908
- }
909
- export interface ThemeDecorationRenderOptions {
910
- backgroundColor?: string | ThemeColor;
911
- outline?: string;
912
- outlineColor?: string | ThemeColor;
913
- outlineStyle?: string;
914
- outlineWidth?: string;
915
- border?: string;
916
- borderColor?: string | ThemeColor;
917
- borderRadius?: string;
918
- borderSpacing?: string;
919
- borderStyle?: string;
920
- borderWidth?: string;
921
- fontStyle?: string;
922
- fontWeight?: string;
923
- textDecoration?: string;
924
- cursor?: string;
925
- color?: string | ThemeColor;
926
- opacity?: string;
927
- letterSpacing?: string;
928
- gutterIconPath?: UriComponents;
929
- gutterIconSize?: string;
930
- overviewRulerColor?: string | ThemeColor;
931
- before?: ContentDecorationRenderOptions;
932
- after?: ContentDecorationRenderOptions;
933
- }
934
- export interface DecorationRenderOptions extends ThemeDecorationRenderOptions {
935
- isWholeLine?: boolean;
936
- rangeBehavior?: TrackedRangeStickiness;
937
- overviewRulerLane?: OverviewRulerLane;
938
- light?: ThemeDecorationRenderOptions;
939
- dark?: ThemeDecorationRenderOptions;
940
- }
941
- export interface ThemeDecorationInstanceRenderOptions {
942
- before?: ContentDecorationRenderOptions;
943
- after?: ContentDecorationRenderOptions;
944
- }
945
- export interface DecorationInstanceRenderOptions extends ThemeDecorationInstanceRenderOptions {
946
- light?: ThemeDecorationInstanceRenderOptions;
947
- dark?: ThemeDecorationInstanceRenderOptions;
948
- }
949
- export interface DecorationOptions {
950
- range: Range;
951
- hoverMessage?: MarkdownString | MarkdownString[];
952
- renderOptions?: DecorationInstanceRenderOptions;
953
- }
954
- export interface TextEditorsMain {
955
- $tryShowTextDocument(uri: UriComponents, options?: TextDocumentShowOptions): Promise<void>;
956
- $registerTextEditorDecorationType(key: string, options: DecorationRenderOptions): void;
957
- $removeTextEditorDecorationType(key: string): void;
958
- $tryHideEditor(id: string): Promise<void>;
959
- $trySetOptions(id: string, options: TextEditorConfigurationUpdate): Promise<void>;
960
- $trySetDecorations(id: string, key: string, ranges: DecorationOptions[]): Promise<void>;
961
- $trySetDecorationsFast(id: string, key: string, ranges: number[]): Promise<void>;
962
- $tryRevealRange(id: string, range: Range, revealType: TextEditorRevealType): Promise<void>;
963
- $trySetSelections(id: string, selections: Selection[]): Promise<void>;
964
- $tryApplyEdits(id: string, modelVersionId: number, edits: SingleEditOperation[], opts: ApplyEditsOptions): Promise<boolean>;
965
- $tryApplyWorkspaceEdit(workspaceEditDto: WorkspaceEditDto, metadata?: WorkspaceEditMetadataDto): Promise<boolean>;
966
- $tryInsertSnippet(id: string, template: string, selections: Range[], opts: UndoStopOptions): Promise<boolean>;
967
- $saveAll(includeUntitled?: boolean): Promise<boolean>;
968
- }
969
- export interface ModelAddedData {
970
- uri: UriComponents;
971
- versionId: number;
972
- lines: string[];
973
- languageId?: string;
974
- EOL: string;
975
- modeId: string;
976
- isDirty: boolean;
977
- }
978
- export interface TextEditorAddData {
979
- id: string;
980
- documentUri: UriComponents;
981
- options: TextEditorConfiguration;
982
- selections: Selection[];
983
- visibleRanges: Range[];
984
- editorPosition?: EditorPosition;
985
- }
986
- export interface EditorsAndDocumentsDelta {
987
- removedDocuments?: UriComponents[];
988
- addedDocuments?: ModelAddedData[];
989
- removedEditors?: string[];
990
- addedEditors?: TextEditorAddData[];
991
- /**
992
- * undefined means no changes
993
- * null means no active
994
- * string means id of active
995
- */
996
- newActiveEditor?: string | null;
997
- }
998
- export interface EditorsAndDocumentsExt {
999
- $acceptEditorsAndDocumentsDelta(delta: EditorsAndDocumentsDelta): void;
1000
- }
1001
- export interface ModelContentChange {
1002
- readonly range: Range;
1003
- readonly rangeOffset: number;
1004
- readonly rangeLength: number;
1005
- readonly text: string;
1006
- }
1007
- export interface ModelChangedEvent {
1008
- readonly changes: ModelContentChange[];
1009
- readonly eol: string;
1010
- readonly versionId: number;
1011
- readonly reason: TextDocumentChangeReason | undefined;
1012
- }
1013
- export interface DocumentsExt {
1014
- $acceptModelModeChanged(startUrl: UriComponents, oldModeId: string, newModeId: string): void;
1015
- $acceptModelSaved(strUrl: UriComponents): void;
1016
- $acceptModelWillSave(strUrl: UriComponents, reason: theia.TextDocumentSaveReason, saveTimeout: number): Promise<SingleEditOperation[]>;
1017
- $acceptDirtyStateChanged(strUrl: UriComponents, isDirty: boolean): void;
1018
- $acceptModelChanged(strUrl: UriComponents, e: ModelChangedEvent, isDirty: boolean): void;
1019
- }
1020
- export interface DocumentsMain {
1021
- $tryCreateDocument(options?: {
1022
- language?: string;
1023
- content?: string;
1024
- }): Promise<UriComponents>;
1025
- $tryShowDocument(uri: UriComponents, options?: TextDocumentShowOptions): Promise<void>;
1026
- $tryOpenDocument(uri: UriComponents): Promise<boolean>;
1027
- $trySaveDocument(uri: UriComponents): Promise<boolean>;
1028
- $tryCloseDocument(uri: UriComponents): Promise<boolean>;
1029
- }
1030
- export interface EnvMain {
1031
- $getEnvVariable(envVarName: string): Promise<string | undefined>;
1032
- $getClientOperatingSystem(): Promise<theia.OperatingSystem>;
1033
- }
1034
- export interface PreferenceRegistryMain {
1035
- $updateConfigurationOption(target: boolean | ConfigurationTarget | undefined, key: string, value: any, resource?: string, withLanguageOverride?: boolean): PromiseLike<void>;
1036
- $removeConfigurationOption(target: boolean | ConfigurationTarget | undefined, key: string, resource?: string, withLanguageOverride?: boolean): PromiseLike<void>;
1037
- }
1038
- export interface PreferenceChangeExt {
1039
- preferenceName: string;
1040
- newValue: any;
1041
- /**
1042
- * The URI the folder affected, or undefined if User scope.
1043
- */
1044
- scope?: string;
1045
- }
1046
- export interface TerminalOptionsExt {
1047
- attributes?: {
1048
- [key: string]: string;
1049
- };
1050
- }
1051
- export interface PreferenceRegistryExt {
1052
- $acceptConfigurationChanged(data: {
1053
- [key: string]: any;
1054
- }, eventData: PreferenceChangeExt[]): void;
1055
- }
1056
- export interface OutputChannelRegistryMain {
1057
- $append(channelName: string, value: string, pluginInfo: PluginInfo): PromiseLike<void>;
1058
- $clear(channelName: string): PromiseLike<void>;
1059
- $dispose(channelName: string): PromiseLike<void>;
1060
- $reveal(channelName: string, preserveFocus: boolean): PromiseLike<void>;
1061
- $close(channelName: string): PromiseLike<void>;
1062
- }
1063
- export declare type CharacterPair = [string, string];
1064
- export interface CommentRule {
1065
- lineComment?: string;
1066
- blockComment?: CharacterPair;
1067
- }
1068
- export interface SerializedRegExp {
1069
- pattern: string;
1070
- flags?: string;
1071
- }
1072
- export interface SerializedIndentationRule {
1073
- decreaseIndentPattern?: SerializedRegExp;
1074
- increaseIndentPattern?: SerializedRegExp;
1075
- indentNextLinePattern?: SerializedRegExp;
1076
- unIndentedLinePattern?: SerializedRegExp;
1077
- }
1078
- export interface SerializedOnEnterRule {
1079
- beforeText: SerializedRegExp;
1080
- afterText?: SerializedRegExp;
1081
- previousLineText?: SerializedRegExp;
1082
- action: SerializedEnterAction;
1083
- }
1084
- export interface SerializedEnterAction {
1085
- indentAction: IndentAction;
1086
- outdentCurrentLine?: boolean;
1087
- appendText?: string;
1088
- removeText?: number;
1089
- }
1090
- export interface SerializedAutoClosingPair {
1091
- open: string;
1092
- close: string;
1093
- notIn?: string[];
1094
- }
1095
- export interface SerializedLanguageConfiguration {
1096
- comments?: CommentRule;
1097
- brackets?: CharacterPair[];
1098
- wordPattern?: SerializedRegExp;
1099
- indentationRules?: SerializedIndentationRule;
1100
- onEnterRules?: SerializedOnEnterRule[];
1101
- autoClosingPairs?: SerializedAutoClosingPair[];
1102
- }
1103
- export interface CodeActionDto {
1104
- title: string;
1105
- edit?: WorkspaceEditDto;
1106
- diagnostics?: MarkerData[];
1107
- command?: Command;
1108
- kind?: string;
1109
- isPreferred?: boolean;
1110
- disabled?: string;
1111
- }
1112
- export interface WorkspaceEditEntryMetadataDto {
1113
- needsConfirmation: boolean;
1114
- label: string;
1115
- description?: string;
1116
- iconPath?: {
1117
- id: string;
1118
- } | {
1119
- light: UriComponents;
1120
- dark: UriComponents;
1121
- } | ThemeIcon;
1122
- }
1123
- export interface WorkspaceFileEditDto {
1124
- oldResource?: UriComponents;
1125
- newResource?: UriComponents;
1126
- options?: FileOperationOptions;
1127
- metadata?: WorkspaceEditEntryMetadataDto;
1128
- }
1129
- export interface WorkspaceTextEditDto {
1130
- resource: UriComponents;
1131
- modelVersionId?: number;
1132
- textEdit: TextEdit & {
1133
- insertAsSnippet?: boolean;
1134
- };
1135
- metadata?: WorkspaceEditEntryMetadataDto;
1136
- }
1137
- export declare namespace WorkspaceTextEditDto {
1138
- function is(arg: WorkspaceTextEditDto | WorkspaceFileEditDto): arg is WorkspaceTextEditDto;
1139
- }
1140
- export interface WorkspaceEditMetadataDto {
1141
- isRefactoring?: boolean;
1142
- }
1143
- export declare type CellEditOperationDto = {
1144
- editType: notebookCommon.CellEditType.Metadata;
1145
- index: number;
1146
- metadata: Record<string, unknown>;
1147
- } | {
1148
- editType: notebookCommon.CellEditType.DocumentMetadata;
1149
- metadata: Record<string, unknown>;
1150
- } | {
1151
- editType: notebookCommon.CellEditType.Replace;
1152
- index: number;
1153
- count: number;
1154
- cells: NotebookCellDataDto[];
1155
- };
1156
- export interface NotebookWorkspaceEditMetadataDto {
1157
- needsConfirmation: boolean;
1158
- label: string;
1159
- description?: string;
1160
- }
1161
- export interface WorkspaceNotebookCellEditDto {
1162
- metadata?: NotebookWorkspaceEditMetadataDto;
1163
- resource: UriComponents;
1164
- cellEdit: CellEditOperationDto;
1165
- }
1166
- export interface WorkspaceEditDto {
1167
- edits: Array<WorkspaceTextEditDto | WorkspaceFileEditDto | WorkspaceNotebookCellEditDto>;
1168
- }
1169
- export interface CommandProperties {
1170
- command: string;
1171
- args?: string[];
1172
- options?: {
1173
- cwd?: string;
1174
- [key: string]: any;
1175
- };
1176
- }
1177
- export declare type TaskGroupKind = 'build' | 'test' | 'rebuild' | 'clean';
1178
- export interface TaskDto {
1179
- type: string;
1180
- taskType?: 'shell' | 'process' | 'customExecution';
1181
- executionId?: string;
1182
- label: string;
1183
- source?: string;
1184
- scope: string | number;
1185
- problemMatcher?: any;
1186
- group?: {
1187
- kind: TaskGroupKind;
1188
- isDefault: boolean;
1189
- };
1190
- detail?: string;
1191
- presentation?: TaskPresentationOptionsDTO;
1192
- runOptions?: RunOptionsDTO;
1193
- [key: string]: any;
1194
- }
1195
- export interface RunOptionsDTO {
1196
- reevaluateOnRerun?: boolean;
1197
- }
1198
- export interface TaskPresentationOptionsDTO {
1199
- reveal?: number;
1200
- focus?: boolean;
1201
- echo?: boolean;
1202
- panel?: number;
1203
- showReuseMessage?: boolean;
1204
- clear?: boolean;
1205
- close?: boolean;
1206
- }
1207
- export interface TaskExecutionDto {
1208
- id: number;
1209
- task: TaskDto;
1210
- }
1211
- export interface ProcessTaskDto extends TaskDto, CommandProperties {
1212
- windows?: CommandProperties;
1213
- }
1214
- export interface PluginInfo {
1215
- id: string;
1216
- name: string;
1217
- displayName?: string;
1218
- }
1219
- export interface LanguageStatus {
1220
- readonly id: string;
1221
- readonly name: string;
1222
- readonly selector: SerializedDocumentFilter[];
1223
- readonly severity: Severity;
1224
- readonly label: string;
1225
- readonly detail: string;
1226
- readonly busy: boolean;
1227
- readonly source: string;
1228
- readonly command: Command | undefined;
1229
- readonly accessibilityInfo: theia.AccessibilityInformation | undefined;
1230
- }
1231
- export interface LanguagesExt {
1232
- $provideCompletionItems(handle: number, resource: UriComponents, position: Position, context: CompletionContext, token: CancellationToken): Promise<CompletionResultDto | undefined>;
1233
- $resolveCompletionItem(handle: number, chainedId: ChainedCacheId, token: CancellationToken): Promise<Completion | undefined>;
1234
- $releaseCompletionItems(handle: number, id: number): void;
1235
- $provideImplementation(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<Definition | undefined>;
1236
- $provideTypeDefinition(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<Definition | undefined>;
1237
- $provideDefinition(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<Definition | undefined>;
1238
- $provideDeclaration(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<Definition | undefined>;
1239
- $provideReferences(handle: number, resource: UriComponents, position: Position, context: ReferenceContext, token: CancellationToken): Promise<Location[] | undefined>;
1240
- $provideSignatureHelp(handle: number, resource: UriComponents, position: Position, context: SignatureHelpContext, token: CancellationToken): Promise<SignatureHelp | undefined>;
1241
- $releaseSignatureHelp(handle: number, id: number): void;
1242
- $provideHover(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<Hover | undefined>;
1243
- $provideEvaluatableExpression(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<EvaluatableExpression | undefined>;
1244
- $provideInlineValues(handle: number, resource: UriComponents, range: Range, context: InlineValueContext, token: CancellationToken): Promise<InlineValue[] | undefined>;
1245
- $provideDocumentHighlights(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<DocumentHighlight[] | undefined>;
1246
- $provideDocumentFormattingEdits(handle: number, resource: UriComponents, options: FormattingOptions, token: CancellationToken): Promise<TextEdit[] | undefined>;
1247
- $provideDocumentRangeFormattingEdits(handle: number, resource: UriComponents, range: Range, options: FormattingOptions, token: CancellationToken): Promise<TextEdit[] | undefined>;
1248
- $provideOnTypeFormattingEdits(handle: number, resource: UriComponents, position: Position, ch: string, options: FormattingOptions, token: CancellationToken): Promise<TextEdit[] | undefined>;
1249
- $provideDocumentDropEdits(handle: number, resource: UriComponents, position: Position, dataTransfer: DataTransferDTO, token: CancellationToken): Promise<DocumentDropEdit | undefined>;
1250
- $provideDocumentLinks(handle: number, resource: UriComponents, token: CancellationToken): Promise<DocumentLink[] | undefined>;
1251
- $resolveDocumentLink(handle: number, link: DocumentLink, token: CancellationToken): Promise<DocumentLink | undefined>;
1252
- $releaseDocumentLinks(handle: number, ids: number[]): void;
1253
- $provideCodeLenses(handle: number, resource: UriComponents, token: CancellationToken): Promise<CodeLensSymbol[] | undefined>;
1254
- $resolveCodeLens(handle: number, resource: UriComponents, symbol: CodeLensSymbol, token: CancellationToken): Promise<CodeLensSymbol | undefined>;
1255
- $releaseCodeLenses(handle: number, ids: number[]): void;
1256
- $provideCodeActions(handle: number, resource: UriComponents, rangeOrSelection: Range | Selection, context: CodeActionContext, token: CancellationToken): Promise<CodeAction[] | undefined>;
1257
- $releaseCodeActions(handle: number, cacheIds: number[]): void;
1258
- $resolveCodeAction(handle: number, cacheId: number, token: CancellationToken): Promise<WorkspaceEditDto | undefined>;
1259
- $provideDocumentSymbols(handle: number, resource: UriComponents, token: CancellationToken): Promise<DocumentSymbol[] | undefined>;
1260
- $provideWorkspaceSymbols(handle: number, query: string, token: CancellationToken): PromiseLike<SymbolInformation[]>;
1261
- $resolveWorkspaceSymbol(handle: number, symbol: SymbolInformation, token: CancellationToken): PromiseLike<SymbolInformation | undefined>;
1262
- $provideFoldingRange(handle: number, resource: UriComponents, context: FoldingContext, token: CancellationToken): PromiseLike<FoldingRange[] | undefined>;
1263
- $provideSelectionRanges(handle: number, resource: UriComponents, positions: Position[], token: CancellationToken): PromiseLike<SelectionRange[][]>;
1264
- $provideDocumentColors(handle: number, resource: UriComponents, token: CancellationToken): PromiseLike<RawColorInfo[]>;
1265
- $provideColorPresentations(handle: number, resource: UriComponents, colorInfo: RawColorInfo, token: CancellationToken): PromiseLike<ColorPresentation[]>;
1266
- $provideInlayHints(handle: number, resource: UriComponents, range: Range, token: CancellationToken): Promise<InlayHintsDto | undefined>;
1267
- $resolveInlayHint(handle: number, id: ChainedCacheId, token: CancellationToken): Promise<InlayHintDto | undefined>;
1268
- $releaseInlayHints(handle: number, id: number): void;
1269
- $provideRenameEdits(handle: number, resource: UriComponents, position: Position, newName: string, token: CancellationToken): PromiseLike<WorkspaceEditDto | undefined>;
1270
- $resolveRenameLocation(handle: number, resource: UriComponents, position: Position, token: CancellationToken): PromiseLike<RenameLocation | undefined>;
1271
- $provideDocumentSemanticTokens(handle: number, resource: UriComponents, previousResultId: number, token: CancellationToken): Promise<BinaryBuffer | null>;
1272
- $releaseDocumentSemanticTokens(handle: number, semanticColoringResultId: number): void;
1273
- $provideDocumentRangeSemanticTokens(handle: number, resource: UriComponents, range: Range, token: CancellationToken): Promise<BinaryBuffer | null>;
1274
- $provideRootDefinition(handle: number, resource: UriComponents, location: Position, token: CancellationToken): Promise<CallHierarchyItem[] | undefined>;
1275
- $provideCallers(handle: number, definition: CallHierarchyItem, token: CancellationToken): Promise<CallHierarchyIncomingCall[] | undefined>;
1276
- $provideCallees(handle: number, definition: CallHierarchyItem, token: CancellationToken): Promise<CallHierarchyOutgoingCall[] | undefined>;
1277
- $provideLinkedEditingRanges(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<LinkedEditingRanges | undefined>;
1278
- $releaseCallHierarchy(handle: number, session?: string): Promise<boolean>;
1279
- $prepareTypeHierarchy(handle: number, resource: UriComponents, location: Position, token: theia.CancellationToken): Promise<TypeHierarchyItem[] | undefined>;
1280
- $provideSuperTypes(handle: number, sessionId: string, itemId: string, token: theia.CancellationToken): Promise<TypeHierarchyItem[] | undefined>;
1281
- $provideSubTypes(handle: number, sessionId: string, itemId: string, token: theia.CancellationToken): Promise<TypeHierarchyItem[] | undefined>;
1282
- $releaseTypeHierarchy(handle: number, session?: string): Promise<boolean>;
1283
- $provideInlineCompletions(handle: number, resource: UriComponents, position: Position, context: InlineCompletionContext, token: CancellationToken): Promise<IdentifiableInlineCompletions | undefined>;
1284
- $freeInlineCompletionsList(handle: number, pid: number): void;
1285
- }
1286
- export declare const LanguagesMainFactory: unique symbol;
1287
- export interface LanguagesMainFactory {
1288
- (proxy: RPCProtocol): LanguagesMain;
1289
- }
1290
- export declare const OutputChannelRegistryFactory: unique symbol;
1291
- export interface OutputChannelRegistryFactory {
1292
- (): OutputChannelRegistryMain;
1293
- }
1294
- export interface LanguagesMain {
1295
- $getLanguages(): Promise<string[]>;
1296
- $changeLanguage(resource: UriComponents, languageId: string): Promise<void>;
1297
- $setLanguageConfiguration(handle: number, languageId: string, configuration: SerializedLanguageConfiguration): void;
1298
- $unregister(handle: number): void;
1299
- $registerCompletionSupport(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], triggerCharacters: string[], supportsResolveDetails: boolean): void;
1300
- $registerImplementationProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1301
- $registerTypeDefinitionProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1302
- $registerDefinitionProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1303
- $registerDeclarationProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1304
- $registerReferenceProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1305
- $registerSignatureHelpProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], metadata: theia.SignatureHelpProviderMetadata): void;
1306
- $registerHoverProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1307
- $registerEvaluatableExpressionProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1308
- $registerInlineValuesProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1309
- $emitInlineValuesEvent(eventHandle: number, event?: any): void;
1310
- $registerDocumentHighlightProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1311
- $registerQuickFixProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], codeActionKinds?: string[], documentation?: CodeActionProviderDocumentation): void;
1312
- $clearDiagnostics(id: string): void;
1313
- $changeDiagnostics(id: string, delta: [string, MarkerData[]][]): void;
1314
- $registerDocumentFormattingSupport(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1315
- $registerDocumentDropEditProvider(handle: number, selector: SerializedDocumentFilter[], metadata?: DocumentDropEditProviderMetadata): void;
1316
- $registerRangeFormattingSupport(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1317
- $registerOnTypeFormattingProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], autoFormatTriggerCharacters: string[]): void;
1318
- $registerDocumentLinkProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1319
- $registerCodeLensSupport(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], eventHandle?: number): void;
1320
- $emitCodeLensEvent(eventHandle: number, event?: any): void;
1321
- $registerOutlineSupport(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], displayName?: string): void;
1322
- $registerWorkspaceSymbolProvider(handle: number, pluginInfo: PluginInfo): void;
1323
- $registerFoldingRangeProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], eventHandle?: number): void;
1324
- $emitFoldingRangeEvent(handle: number, event?: any): void;
1325
- $registerSelectionRangeProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1326
- $registerDocumentColorProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1327
- $registerInlayHintsProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], displayName?: string, eventHandle?: number): void;
1328
- $emitInlayHintsEvent(eventHandle: number, event?: any): void;
1329
- $registerRenameProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], supportsResolveInitialValues: boolean): void;
1330
- $registerDocumentSemanticTokensProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], legend: theia.SemanticTokensLegend, eventHandle: number | undefined): void;
1331
- $emitDocumentSemanticTokensEvent(eventHandle: number): void;
1332
- $registerDocumentRangeSemanticTokensProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], legend: theia.SemanticTokensLegend): void;
1333
- $registerCallHierarchyProvider(handle: number, selector: SerializedDocumentFilter[]): void;
1334
- $registerLinkedEditingRangeProvider(handle: number, selector: SerializedDocumentFilter[]): void;
1335
- $registerTypeHierarchyProvider(handle: number, selector: SerializedDocumentFilter[]): void;
1336
- $setLanguageStatus(handle: number, status: LanguageStatus): void;
1337
- $removeLanguageStatus(handle: number): void;
1338
- $registerInlineCompletionsSupport(handle: number, selector: SerializedDocumentFilter[]): void;
1339
- }
1340
- export interface WebviewInitData {
1341
- webviewResourceRoot: string;
1342
- webviewCspSource: string;
1343
- }
1344
- export interface WebviewPanelViewState {
1345
- readonly active: boolean;
1346
- readonly visible: boolean;
1347
- readonly position: number;
1348
- }
1349
- export interface WebviewsExt {
1350
- $onMessage(handle: string, message: any): void;
1351
- $onDidChangeWebviewPanelViewState(handle: string, newState: WebviewPanelViewState): void;
1352
- $onDidDisposeWebviewPanel(handle: string): PromiseLike<void>;
1353
- $deserializeWebviewPanel(newWebviewHandle: string, viewType: string, title: string, state: any, viewState: WebviewPanelViewState, options: theia.WebviewOptions & theia.WebviewPanelOptions): PromiseLike<void>;
1354
- }
1355
- export interface WebviewsMain {
1356
- $createWebviewPanel(handle: string, viewType: string, title: string, showOptions: theia.WebviewPanelShowOptions, options: theia.WebviewPanelOptions & theia.WebviewOptions): void;
1357
- $disposeWebview(handle: string): void;
1358
- $reveal(handle: string, showOptions: theia.WebviewPanelShowOptions): void;
1359
- $setTitle(handle: string, value: string): void;
1360
- $setIconPath(handle: string, value: IconUrl | undefined): void;
1361
- $setBadge(handle: string, badge: theia.ViewBadge | undefined): void;
1362
- $setHtml(handle: string, value: string): void;
1363
- $setOptions(handle: string, options: theia.WebviewOptions): void;
1364
- $postMessage(handle: string, value: any): Thenable<boolean>;
1365
- $registerSerializer(viewType: string): void;
1366
- $unregisterSerializer(viewType: string): void;
1367
- }
1368
- export interface WebviewViewsExt {
1369
- $resolveWebviewView(handle: string, viewType: string, title: string | undefined, state: any, cancellation: CancellationToken): Promise<void>;
1370
- $onDidChangeWebviewViewVisibility(handle: string, visible: boolean): void;
1371
- $disposeWebviewView(handle: string): void;
1372
- }
1373
- export interface WebviewViewsMain extends Disposable {
1374
- $registerWebviewViewProvider(viewType: string, options: {
1375
- retainContextWhenHidden?: boolean;
1376
- serializeBuffersForPostMessage: boolean;
1377
- }): void;
1378
- $unregisterWebviewViewProvider(viewType: string): void;
1379
- $setWebviewViewTitle(handle: string, value: string | undefined): void;
1380
- $setWebviewViewDescription(handle: string, value: string | undefined): void;
1381
- $setBadge(handle: string, badge: theia.ViewBadge | undefined): void;
1382
- $show(handle: string, preserveFocus: boolean): void;
1383
- }
1384
- export interface CustomEditorsExt {
1385
- $resolveWebviewEditor<T>(resource: UriComponents, newWebviewHandle: string, viewType: string, title: string, widgetOpenerOptions: T | undefined, options: theia.WebviewPanelOptions, cancellation: CancellationToken): Promise<void>;
1386
- $createCustomDocument(resource: UriComponents, viewType: string, openContext: theia.CustomDocumentOpenContext, cancellation: CancellationToken): Promise<{
1387
- editable: boolean;
1388
- }>;
1389
- $disposeCustomDocument(resource: UriComponents, viewType: string): Promise<void>;
1390
- $undo(resource: UriComponents, viewType: string, editId: number, isDirty: boolean): Promise<void>;
1391
- $redo(resource: UriComponents, viewType: string, editId: number, isDirty: boolean): Promise<void>;
1392
- $revert(resource: UriComponents, viewType: string, cancellation: CancellationToken): Promise<void>;
1393
- $disposeEdits(resourceComponents: UriComponents, viewType: string, editIds: number[]): void;
1394
- $onSave(resource: UriComponents, viewType: string, cancellation: CancellationToken): Promise<void>;
1395
- $onSaveAs(resource: UriComponents, viewType: string, targetResource: UriComponents, cancellation: CancellationToken): Promise<void>;
1396
- $onMoveCustomEditor(handle: string, newResource: UriComponents, viewType: string): Promise<void>;
1397
- }
1398
- export interface CustomTextEditorCapabilities {
1399
- readonly supportsMove?: boolean;
1400
- }
1401
- export interface CustomEditorsMain {
1402
- $registerTextEditorProvider(viewType: string, options: theia.WebviewPanelOptions, capabilities: CustomTextEditorCapabilities): void;
1403
- $registerCustomEditorProvider(viewType: string, options: theia.WebviewPanelOptions, supportsMultipleEditorsPerDocument: boolean): void;
1404
- $unregisterEditorProvider(viewType: string): void;
1405
- $createCustomEditorPanel<T>(handle: string, title: string, widgetOpenerOptions: T | undefined, options: theia.WebviewPanelOptions & theia.WebviewOptions): Promise<void>;
1406
- $onDidEdit(resource: UriComponents, viewType: string, editId: number, label: string | undefined): void;
1407
- $onContentChange(resource: UriComponents, viewType: string): void;
1408
- }
1409
- export interface StorageMain {
1410
- $set(key: string, value: KeysToAnyValues, isGlobal: boolean): Promise<boolean>;
1411
- $get(key: string, isGlobal: boolean): Promise<KeysToAnyValues>;
1412
- $getAll(isGlobal: boolean): Promise<KeysToKeysToAnyValue>;
1413
- }
1414
- export interface StorageExt {
1415
- $updatePluginsWorkspaceData(data: KeysToKeysToAnyValue): void;
1416
- }
1417
- /**
1418
- * A DebugConfigurationProviderTriggerKind specifies when the `provideDebugConfigurations` method of a `DebugConfigurationProvider` should be called.
1419
- * Currently there are two situations:
1420
- * (1) providing debug configurations to populate a newly created `launch.json`
1421
- * (2) providing dynamically generated configurations when the user asks for them through the UI (e.g. via the "Select and Start Debugging" command).
1422
- * A trigger kind is used when registering a `DebugConfigurationProvider` with {@link debug.registerDebugConfigurationProvider}.
1423
- */
1424
- export declare enum DebugConfigurationProviderTriggerKind {
1425
- /**
1426
- * `DebugConfigurationProvider.provideDebugConfigurations` is called to provide the initial debug
1427
- * configurations for a newly created launch.json.
1428
- */
1429
- Initial = 1,
1430
- /**
1431
- * `DebugConfigurationProvider.provideDebugConfigurations` is called to provide dynamically generated debug configurations when the user asks for them through the UI
1432
- * (e.g. via the "Select and Start Debugging" command).
1433
- */
1434
- Dynamic = 2
1435
- }
1436
- export interface DebugConfigurationProvider {
1437
- readonly handle: number;
1438
- readonly type: string;
1439
- readonly triggerKind: DebugConfigurationProviderTriggerKind;
1440
- provideDebugConfigurations?(folder: string | undefined): Promise<theia.DebugConfiguration[]>;
1441
- resolveDebugConfiguration?(folder: string | undefined, debugConfiguration: theia.DebugConfiguration): Promise<theia.DebugConfiguration | undefined | null>;
1442
- resolveDebugConfigurationWithSubstitutedVariables?(folder: string | undefined, debugConfiguration: theia.DebugConfiguration): Promise<theia.DebugConfiguration | undefined | null>;
1443
- }
1444
- export interface DebugConfigurationProviderDescriptor {
1445
- readonly handle: number;
1446
- readonly type: string;
1447
- readonly trigger: DebugConfigurationProviderTriggerKind;
1448
- readonly provideDebugConfiguration: boolean;
1449
- readonly resolveDebugConfigurations: boolean;
1450
- readonly resolveDebugConfigurationWithSubstitutedVariables: boolean;
1451
- }
1452
- export interface DebugExt {
1453
- $onSessionCustomEvent(sessionId: string, event: string, body?: any): void;
1454
- $breakpointsDidChange(added: Breakpoint[], removed: string[], changed: Breakpoint[]): void;
1455
- $sessionDidCreate(sessionId: string): void;
1456
- $sessionDidStart(sessionId: string): void;
1457
- $sessionDidDestroy(sessionId: string): void;
1458
- $sessionDidChange(sessionId: string | undefined): void;
1459
- $provideDebugConfigurationsByHandle(handle: number, workspaceFolder: string | undefined): Promise<theia.DebugConfiguration[]>;
1460
- $resolveDebugConfigurationByHandle(handle: number, workspaceFolder: string | undefined, debugConfiguration: theia.DebugConfiguration): Promise<theia.DebugConfiguration | undefined | null>;
1461
- $resolveDebugConfigurationWithSubstitutedVariablesByHandle(handle: number, workspaceFolder: string | undefined, debugConfiguration: DebugConfiguration): Promise<theia.DebugConfiguration | undefined | null>;
1462
- $createDebugSession(debugConfiguration: DebugConfiguration, workspaceFolder: string | undefined): Promise<string>;
1463
- $terminateDebugSession(sessionId: string): Promise<void>;
1464
- $getTerminalCreationOptions(debugType: string): Promise<TerminalOptionsExt | undefined>;
1465
- }
1466
- export interface DebugMain {
1467
- $appendToDebugConsole(value: string): Promise<void>;
1468
- $appendLineToDebugConsole(value: string): Promise<void>;
1469
- $registerDebuggerContribution(description: DebuggerDescription): Promise<void>;
1470
- $unregisterDebuggerConfiguration(debugType: string): Promise<void>;
1471
- $registerDebugConfigurationProvider(description: DebugConfigurationProviderDescriptor): void;
1472
- $unregisterDebugConfigurationProvider(handle: number): Promise<void>;
1473
- $addBreakpoints(breakpoints: Breakpoint[]): Promise<void>;
1474
- $removeBreakpoints(breakpoints: string[]): Promise<void>;
1475
- $startDebugging(folder: theia.WorkspaceFolder | undefined, nameOrConfiguration: string | theia.DebugConfiguration, options: DebugSessionOptions): Promise<boolean>;
1476
- $stopDebugging(sessionId?: string): Promise<void>;
1477
- $customRequest(sessionId: string, command: string, args?: any): Promise<DebugProtocol.Response>;
1478
- $getDebugProtocolBreakpoint(sessionId: string, breakpointId: string): Promise<theia.DebugProtocolBreakpoint | undefined>;
1479
- }
1480
- export interface FileSystemExt {
1481
- $acceptProviderInfos(scheme: string, capabilities?: files.FileSystemProviderCapabilities): void;
1482
- $stat(handle: number, resource: UriComponents): Promise<files.Stat>;
1483
- $readdir(handle: number, resource: UriComponents): Promise<[string, files.FileType][]>;
1484
- $readFile(handle: number, resource: UriComponents): Promise<BinaryBuffer>;
1485
- $writeFile(handle: number, resource: UriComponents, content: BinaryBuffer, opts: files.FileWriteOptions): Promise<void>;
1486
- $rename(handle: number, resource: UriComponents, target: UriComponents, opts: files.FileOverwriteOptions): Promise<void>;
1487
- $copy(handle: number, resource: UriComponents, target: UriComponents, opts: files.FileOverwriteOptions): Promise<void>;
1488
- $mkdir(handle: number, resource: UriComponents): Promise<void>;
1489
- $delete(handle: number, resource: UriComponents, opts: files.FileDeleteOptions): Promise<void>;
1490
- $watch(handle: number, session: number, resource: UriComponents, opts: files.WatchOptions): void;
1491
- $unwatch(handle: number, session: number): void;
1492
- $open(handle: number, resource: UriComponents, opts: files.FileOpenOptions): Promise<number>;
1493
- $close(handle: number, fd: number): Promise<void>;
1494
- $read(handle: number, fd: number, pos: number, length: number): Promise<BinaryBuffer>;
1495
- $write(handle: number, fd: number, pos: number, data: BinaryBuffer): Promise<number>;
1496
- }
1497
- export interface IFileChangeDto {
1498
- resource: UriComponents;
1499
- type: files.FileChangeType;
1500
- }
1501
- export interface FileSystemMain {
1502
- $registerFileSystemProvider(handle: number, scheme: string, capabilities: files.FileSystemProviderCapabilities): void;
1503
- $unregisterProvider(handle: number): void;
1504
- $onFileSystemChange(handle: number, resource: IFileChangeDto[]): void;
1505
- $stat(uri: UriComponents): Promise<files.Stat>;
1506
- $readdir(resource: UriComponents): Promise<[string, files.FileType][]>;
1507
- $readFile(resource: UriComponents): Promise<BinaryBuffer>;
1508
- $writeFile(resource: UriComponents, content: BinaryBuffer): Promise<void>;
1509
- $rename(resource: UriComponents, target: UriComponents, opts: files.FileOverwriteOptions): Promise<void>;
1510
- $copy(resource: UriComponents, target: UriComponents, opts: files.FileOverwriteOptions): Promise<void>;
1511
- $mkdir(resource: UriComponents): Promise<void>;
1512
- $delete(resource: UriComponents, opts: files.FileDeleteOptions): Promise<void>;
1513
- }
1514
- export interface FileSystemEvents {
1515
- created: UriComponents[];
1516
- changed: UriComponents[];
1517
- deleted: UriComponents[];
1518
- }
1519
- export interface ExtHostFileSystemEventServiceShape {
1520
- $onFileEvent(events: FileSystemEvents): void;
1521
- $onWillRunFileOperation(operation: files.FileOperation, target: UriComponents, source: UriComponents | undefined, timeout: number, token: CancellationToken): Promise<any>;
1522
- $onDidRunFileOperation(operation: files.FileOperation, target: UriComponents, source: UriComponents | undefined): void;
1523
- }
1524
- export interface ClipboardMain {
1525
- $readText(): Promise<string>;
1526
- $writeText(value: string): Promise<void>;
1527
- }
1528
- export interface CommentsExt {
1529
- $createCommentThreadTemplate(commentControllerHandle: number, uriComponents: UriComponents, range: Range): void;
1530
- $updateCommentThreadTemplate(commentControllerHandle: number, threadHandle: number, range: Range): Promise<void>;
1531
- $deleteCommentThread(commentControllerHandle: number, commentThreadHandle: number): Promise<void>;
1532
- $provideCommentingRanges(commentControllerHandle: number, uriComponents: UriComponents, token: CancellationToken): Promise<Range[] | undefined>;
1533
- }
1534
- export interface CommentProviderFeatures {
1535
- options?: CommentOptions;
1536
- }
1537
- export declare type CommentThreadChanges = Partial<{
1538
- range: Range;
1539
- label: string;
1540
- contextValue: string;
1541
- comments: Comment[];
1542
- collapseState: CommentThreadCollapsibleState;
1543
- state: CommentThreadState;
1544
- canReply: boolean;
1545
- }>;
1546
- export interface CommentsMain {
1547
- $registerCommentController(handle: number, id: string, label: string): void;
1548
- $unregisterCommentController(handle: number): void;
1549
- $updateCommentControllerFeatures(handle: number, features: CommentProviderFeatures): void;
1550
- $createCommentThread(handle: number, commentThreadHandle: number, threadId: string, resource: UriComponents, range: Range, extensionId: string): CommentThread | undefined;
1551
- $updateCommentThread(handle: number, commentThreadHandle: number, threadId: string, resource: UriComponents, changes: CommentThreadChanges): void;
1552
- $deleteCommentThread(handle: number, commentThreadHandle: number): void;
1553
- $onDidCommentThreadsChange(handle: number, event: CommentThreadChangedEvent): void;
1554
- }
1555
- export declare const enum TabInputKind {
1556
- UnknownInput = 0,
1557
- TextInput = 1,
1558
- TextDiffInput = 2,
1559
- TextMergeInput = 3,
1560
- NotebookInput = 4,
1561
- NotebookDiffInput = 5,
1562
- CustomEditorInput = 6,
1563
- WebviewEditorInput = 7,
1564
- TerminalEditorInput = 8,
1565
- InteractiveEditorInput = 9
1566
- }
1567
- export interface UnknownInputDto {
1568
- kind: TabInputKind.UnknownInput;
1569
- }
1570
- export interface TextInputDto {
1571
- kind: TabInputKind.TextInput;
1572
- uri: UriComponents;
1573
- }
1574
- export interface TextDiffInputDto {
1575
- kind: TabInputKind.TextDiffInput;
1576
- original: UriComponents;
1577
- modified: UriComponents;
1578
- }
1579
- export interface TextMergeInputDto {
1580
- kind: TabInputKind.TextMergeInput;
1581
- base: UriComponents;
1582
- input1: UriComponents;
1583
- input2: UriComponents;
1584
- result: UriComponents;
1585
- }
1586
- export interface NotebookInputDto {
1587
- kind: TabInputKind.NotebookInput;
1588
- notebookType: string;
1589
- uri: UriComponents;
1590
- }
1591
- export interface NotebookDiffInputDto {
1592
- kind: TabInputKind.NotebookDiffInput;
1593
- notebookType: string;
1594
- original: UriComponents;
1595
- modified: UriComponents;
1596
- }
1597
- export interface CustomInputDto {
1598
- kind: TabInputKind.CustomEditorInput;
1599
- viewType: string;
1600
- uri: UriComponents;
1601
- }
1602
- export interface WebviewInputDto {
1603
- kind: TabInputKind.WebviewEditorInput;
1604
- viewType: string;
1605
- }
1606
- export interface InteractiveEditorInputDto {
1607
- kind: TabInputKind.InteractiveEditorInput;
1608
- uri: UriComponents;
1609
- inputBoxUri: UriComponents;
1610
- }
1611
- export interface TabInputDto {
1612
- kind: TabInputKind.TerminalEditorInput;
1613
- }
1614
- export declare type EditorGroupColumn = number;
1615
- export declare type AnyInputDto = UnknownInputDto | TextInputDto | TextDiffInputDto | TextMergeInputDto | NotebookInputDto | NotebookDiffInputDto | CustomInputDto | WebviewInputDto | InteractiveEditorInputDto | TabInputDto;
1616
- export interface TabGroupDto {
1617
- isActive: boolean;
1618
- viewColumn: EditorGroupColumn;
1619
- tabs: TabDto[];
1620
- groupId: number;
1621
- }
1622
- export declare const enum TabModelOperationKind {
1623
- TAB_OPEN = 0,
1624
- TAB_CLOSE = 1,
1625
- TAB_UPDATE = 2,
1626
- TAB_MOVE = 3
1627
- }
1628
- export interface TabOperation {
1629
- readonly kind: TabModelOperationKind.TAB_OPEN | TabModelOperationKind.TAB_CLOSE | TabModelOperationKind.TAB_UPDATE | TabModelOperationKind.TAB_MOVE;
1630
- readonly index: number;
1631
- readonly tabDto: TabDto;
1632
- readonly groupId: number;
1633
- readonly oldIndex?: number;
1634
- }
1635
- export interface TabDto {
1636
- id: string;
1637
- label: string;
1638
- input: AnyInputDto;
1639
- editorId?: string;
1640
- isActive: boolean;
1641
- isPinned: boolean;
1642
- isPreview: boolean;
1643
- isDirty: boolean;
1644
- }
1645
- export interface TabsExt {
1646
- $acceptEditorTabModel(tabGroups: TabGroupDto[]): void;
1647
- $acceptTabGroupUpdate(groupDto: TabGroupDto): void;
1648
- $acceptTabOperation(operation: TabOperation): void;
1649
- }
1650
- export interface TabsMain {
1651
- $moveTab(tabId: string, index: number, viewColumn: EditorGroupColumn, preserveFocus?: boolean): void;
1652
- $closeTab(tabIds: string[], preserveFocus?: boolean): Promise<boolean>;
1653
- $closeGroup(groupIds: number[], preserveFocus?: boolean): Promise<boolean>;
1654
- }
1655
- export interface TelemetryMain {
1656
- }
1657
- export interface TelemetryExt {
1658
- }
1659
- export declare const enum TestingResourceExt {
1660
- Workspace = 0,
1661
- TextDocument = 1
1662
- }
1663
- export interface TestingExt {
1664
- $onCancelTestRun(controllerId: string, runId: string): void;
1665
- /** Configures a test run config. */
1666
- $onConfigureRunProfile(controllerId: string, profileId: string): void;
1667
- $onRunControllerTests(reqs: TestRunRequestDTO[]): void;
1668
- /** Asks the controller to refresh its tests */
1669
- $refreshTests(controllerId: string, token: CancellationToken): Promise<void>;
1670
- $onResolveChildren(controllerId: string, path: string[]): void;
1671
- }
1672
- export interface TestControllerUpdate {
1673
- label: string;
1674
- canRefresh: boolean;
1675
- canResolve: boolean;
1676
- }
1677
- export interface TestingMain {
1678
- /** Registers that there's a test controller with the given ID */
1679
- $registerTestController(controllerId: string, label: string): void;
1680
- /** Updates the label of an existing test controller. */
1681
- $updateController(controllerId: string, patch: Partial<TestControllerUpdate>): void;
1682
- /** Disposes of the test controller with the given ID */
1683
- $unregisterTestController(controllerId: string): void;
1684
- $notifyDelta(controllerId: string, diff: TreeDelta<string, TestItemDTO>[]): void;
1685
- /** Called when a new test run profile is available */
1686
- $notifyTestRunProfileCreated(controllerId: string, profile: TestRunProfileDTO): void;
1687
- /** Updates an existing test run profile */
1688
- $updateTestRunProfile(controllerId: string, profileId: string, update: Partial<TestRunProfileDTO>): void;
1689
- /** Removes a previously-published test run profile */
1690
- $removeTestRunProfile(controllerId: string, profileId: string): void;
1691
- $notifyTestRunCreated(controllerId: string, run: TestRunDTO): void;
1692
- $notifyTestStateChanged(controllerId: string, runId: string, stateChanges: TestStateChangeDTO[], outputChanges: TestOutputDTO[]): void;
1693
- $notifyTestRunEnded(controllerId: string, runId: string): void;
1694
- }
1695
- export declare const PLUGIN_RPC_CONTEXT: {
1696
- AUTHENTICATION_MAIN: ProxyIdentifier<AuthenticationMain>;
1697
- COMMAND_REGISTRY_MAIN: ProxyIdentifier<CommandRegistryMain>;
1698
- QUICK_OPEN_MAIN: ProxyIdentifier<QuickOpenMain>;
1699
- DIALOGS_MAIN: ProxyIdentifier<DialogsMain>;
1700
- WORKSPACE_MAIN: ProxyIdentifier<WorkspaceMain>;
1701
- MESSAGE_REGISTRY_MAIN: ProxyIdentifier<MessageRegistryMain>;
1702
- TEXT_EDITORS_MAIN: ProxyIdentifier<TextEditorsMain>;
1703
- DOCUMENTS_MAIN: ProxyIdentifier<DocumentsMain>;
1704
- NOTEBOOKS_MAIN: ProxyIdentifier<NotebooksMain>;
1705
- NOTEBOOK_DOCUMENTS_MAIN: ProxyIdentifier<NotebookDocumentsMain>;
1706
- NOTEBOOK_EDITORS_MAIN: ProxyIdentifier<NotebookEditorsMain>;
1707
- NOTEBOOK_DOCUMENTS_AND_EDITORS_MAIN: ProxyIdentifier<NotebookDocumentsAndEditorsMain>;
1708
- NOTEBOOK_RENDERERS_MAIN: ProxyIdentifier<NotebookRenderersMain>;
1709
- NOTEBOOK_KERNELS_MAIN: ProxyIdentifier<NotebookKernelsMain>;
1710
- STATUS_BAR_MESSAGE_REGISTRY_MAIN: ProxyIdentifier<StatusBarMessageRegistryMain>;
1711
- ENV_MAIN: ProxyIdentifier<EnvMain>;
1712
- NOTIFICATION_MAIN: ProxyIdentifier<NotificationMain>;
1713
- TERMINAL_MAIN: ProxyIdentifier<TerminalServiceMain>;
1714
- TREE_VIEWS_MAIN: ProxyIdentifier<TreeViewsMain>;
1715
- PREFERENCE_REGISTRY_MAIN: ProxyIdentifier<PreferenceRegistryMain>;
1716
- OUTPUT_CHANNEL_REGISTRY_MAIN: ProxyIdentifier<OutputChannelRegistryMain>;
1717
- LANGUAGES_MAIN: ProxyIdentifier<LanguagesMain>;
1718
- CONNECTION_MAIN: ProxyIdentifier<ConnectionMain>;
1719
- WEBVIEWS_MAIN: ProxyIdentifier<WebviewsMain>;
1720
- CUSTOM_EDITORS_MAIN: ProxyIdentifier<CustomEditorsMain>;
1721
- WEBVIEW_VIEWS_MAIN: ProxyIdentifier<WebviewViewsMain>;
1722
- STORAGE_MAIN: ProxyIdentifier<StorageMain>;
1723
- TASKS_MAIN: ProxyIdentifier<TasksMain>;
1724
- DEBUG_MAIN: ProxyIdentifier<DebugMain>;
1725
- FILE_SYSTEM_MAIN: ProxyIdentifier<FileSystemMain>;
1726
- SCM_MAIN: ProxyIdentifier<ScmMain>;
1727
- SECRETS_MAIN: ProxyIdentifier<SecretsMain>;
1728
- DECORATIONS_MAIN: ProxyIdentifier<DecorationsMain>;
1729
- WINDOW_MAIN: ProxyIdentifier<WindowMain>;
1730
- CLIPBOARD_MAIN: ProxyIdentifier<ClipboardMain>;
1731
- LABEL_SERVICE_MAIN: ProxyIdentifier<LabelServiceMain>;
1732
- TIMELINE_MAIN: ProxyIdentifier<TimelineMain>;
1733
- THEMING_MAIN: ProxyIdentifier<ThemingMain>;
1734
- COMMENTS_MAIN: ProxyIdentifier<CommentsMain>;
1735
- TABS_MAIN: ProxyIdentifier<TabsMain>;
1736
- TELEMETRY_MAIN: ProxyIdentifier<TelemetryMain>;
1737
- LOCALIZATION_MAIN: ProxyIdentifier<LocalizationMain>;
1738
- TESTING_MAIN: ProxyIdentifier<TestingMain>;
1739
- };
1740
- export declare const MAIN_RPC_CONTEXT: {
1741
- AUTHENTICATION_EXT: ProxyIdentifier<AuthenticationExt>;
1742
- HOSTED_PLUGIN_MANAGER_EXT: ProxyIdentifier<PluginManagerExt>;
1743
- COMMAND_REGISTRY_EXT: ProxyIdentifier<CommandRegistryExt>;
1744
- QUICK_OPEN_EXT: ProxyIdentifier<QuickOpenExt>;
1745
- WINDOW_STATE_EXT: ProxyIdentifier<WindowStateExt>;
1746
- NOTIFICATION_EXT: ProxyIdentifier<NotificationExt>;
1747
- WORKSPACE_EXT: ProxyIdentifier<WorkspaceExt>;
1748
- TEXT_EDITORS_EXT: ProxyIdentifier<TextEditorsExt>;
1749
- EDITORS_AND_DOCUMENTS_EXT: ProxyIdentifier<EditorsAndDocumentsExt>;
1750
- DOCUMENTS_EXT: ProxyIdentifier<DocumentsExt>;
1751
- NOTEBOOKS_EXT: ProxyIdentifier<NotebooksExt>;
1752
- NOTEBOOK_DOCUMENTS_EXT: ProxyIdentifier<NotebookDocumentsExt>;
1753
- NOTEBOOK_EDITORS_EXT: ProxyIdentifier<NotebookEditorsExt>;
1754
- NOTEBOOK_RENDERERS_EXT: ProxyIdentifier<NotebookRenderersExt>;
1755
- NOTEBOOK_KERNELS_EXT: ProxyIdentifier<NotebookKernelsExt>;
1756
- TERMINAL_EXT: ProxyIdentifier<TerminalServiceExt>;
1757
- OUTPUT_CHANNEL_REGISTRY_EXT: ProxyIdentifier<OutputChannelRegistryExt>;
1758
- TREE_VIEWS_EXT: ProxyIdentifier<TreeViewsExt>;
1759
- PREFERENCE_REGISTRY_EXT: ProxyIdentifier<PreferenceRegistryExt>;
1760
- LANGUAGES_EXT: ProxyIdentifier<LanguagesExt>;
1761
- CONNECTION_EXT: ProxyIdentifier<ConnectionExt>;
1762
- WEBVIEWS_EXT: ProxyIdentifier<WebviewsExt>;
1763
- CUSTOM_EDITORS_EXT: ProxyIdentifier<CustomEditorsExt>;
1764
- WEBVIEW_VIEWS_EXT: ProxyIdentifier<WebviewViewsExt>;
1765
- STORAGE_EXT: ProxyIdentifier<StorageExt>;
1766
- TASKS_EXT: ProxyIdentifier<TasksExt>;
1767
- DEBUG_EXT: ProxyIdentifier<DebugExt>;
1768
- FILE_SYSTEM_EXT: ProxyIdentifier<FileSystemExt>;
1769
- ExtHostFileSystemEventService: ProxyIdentifier<ExtHostFileSystemEventServiceShape>;
1770
- SCM_EXT: ProxyIdentifier<ScmExt>;
1771
- SECRETS_EXT: ProxyIdentifier<SecretsExt>;
1772
- DECORATIONS_EXT: ProxyIdentifier<DecorationsExt>;
1773
- LABEL_SERVICE_EXT: ProxyIdentifier<LabelServiceExt>;
1774
- TIMELINE_EXT: ProxyIdentifier<TimelineExt>;
1775
- THEMING_EXT: ProxyIdentifier<ThemingExt>;
1776
- COMMENTS_EXT: ProxyIdentifier<CommentsExt>;
1777
- TABS_EXT: ProxyIdentifier<TabsExt>;
1778
- TELEMETRY_EXT: ProxyIdentifier<TelemetryExt>;
1779
- TESTING_EXT: ProxyIdentifier<TestingExt>;
1780
- };
1781
- export interface TasksExt {
1782
- $initLoadedTasks(executions: TaskExecutionDto[]): Promise<void>;
1783
- $provideTasks(handle: number): Promise<TaskDto[]>;
1784
- $resolveTask(handle: number, task: TaskDto, token?: CancellationToken): Promise<TaskDto>;
1785
- $onDidStartTask(execution: TaskExecutionDto, terminalId: number): void;
1786
- $onDidEndTask(id: number): void;
1787
- $onDidStartTaskProcess(processId: number | undefined, execution: TaskExecutionDto): void;
1788
- $onDidEndTaskProcess(exitCode: number | undefined, taskId: number): void;
1789
- }
1790
- export interface TasksMain {
1791
- $registerTaskProvider(handle: number, type: string): void;
1792
- $fetchTasks(taskVersion: string | undefined, taskType: string | undefined): Promise<TaskDto[]>;
1793
- $executeTask(taskDto: TaskDto): Promise<TaskExecutionDto | undefined>;
1794
- $taskExecutions(): Promise<TaskExecutionDto[]>;
1795
- $unregister(handle: number): void;
1796
- $terminateTask(id: number): void;
1797
- $customExecutionComplete(id: number, exitCode: number | undefined): void;
1798
- }
1799
- export interface AuthenticationExt {
1800
- $getSessions(id: string, scopes?: string[]): Promise<ReadonlyArray<theia.AuthenticationSession>>;
1801
- $createSession(id: string, scopes: string[]): Promise<theia.AuthenticationSession>;
1802
- $removeSession(id: string, sessionId: string): Promise<void>;
1803
- $onDidChangeAuthenticationSessions(provider: theia.AuthenticationProviderInformation): Promise<void>;
1804
- }
1805
- export interface AuthenticationMain {
1806
- $registerAuthenticationProvider(id: string, label: string, supportsMultipleAccounts: boolean): void;
1807
- $unregisterAuthenticationProvider(id: string): void;
1808
- $onDidChangeSessions(providerId: string, event: AuthenticationProviderAuthenticationSessionsChangeEvent): void;
1809
- $getSession(providerId: string, scopes: readonly string[], extensionId: string, extensionName: string, options: theia.AuthenticationGetSessionOptions): Promise<theia.AuthenticationSession | undefined>;
1810
- }
1811
- export interface NotebookOutputItemDto {
1812
- readonly mime: string;
1813
- readonly valueBytes: BinaryBuffer;
1814
- }
1815
- export interface NotebookOutputDto {
1816
- outputId: string;
1817
- items: NotebookOutputItemDto[];
1818
- metadata?: Record<string, unknown>;
1819
- }
1820
- export interface NotebookCellDataDto {
1821
- source: string;
1822
- language: string;
1823
- cellKind: notebookCommon.CellKind;
1824
- outputs: NotebookOutputDto[];
1825
- metadata?: notebookCommon.NotebookCellMetadata;
1826
- internalMetadata?: notebookCommon.NotebookCellInternalMetadata;
1827
- }
1828
- export interface NotebookDataDto {
1829
- readonly cells: NotebookCellDataDto[];
1830
- readonly metadata: notebookCommon.NotebookDocumentMetadata;
1831
- }
1832
- export interface NotebookCellDto {
1833
- handle: number;
1834
- uri: UriComponents;
1835
- eol: string;
1836
- source: string[];
1837
- language: string;
1838
- mime?: string;
1839
- cellKind: notebookCommon.CellKind;
1840
- outputs: NotebookOutputDto[];
1841
- metadata?: notebookCommon.NotebookCellMetadata;
1842
- internalMetadata?: notebookCommon.NotebookCellInternalMetadata;
1843
- }
1844
- export interface NotebookModelAddedData {
1845
- uri: UriComponents;
1846
- versionId: number;
1847
- cells: NotebookCellDto[];
1848
- viewType: string;
1849
- metadata?: notebookCommon.NotebookDocumentMetadata;
1850
- }
1851
- export interface NotebookEditorAddData {
1852
- id: string;
1853
- documentUri: UriComponents;
1854
- selections: CellRange[];
1855
- visibleRanges: CellRange[];
1856
- viewColumn?: number;
1857
- }
1858
- export interface NotebookDocumentsAndEditorsDelta {
1859
- removedDocuments?: UriComponents[];
1860
- addedDocuments?: NotebookModelAddedData[];
1861
- removedEditors?: string[];
1862
- addedEditors?: NotebookEditorAddData[];
1863
- newActiveEditor?: string | null;
1864
- visibleEditors?: string[];
1865
- }
1866
- export declare type NotebookCellStatusBarEntryDto = notebookCommon.NotebookCellStatusBarItem;
1867
- export interface NotebookCellStatusBarListDto {
1868
- items: NotebookCellStatusBarEntryDto[];
1869
- cacheId: number;
1870
- }
1871
- export declare type NotebookRawContentEventDto = {
1872
- readonly kind: notebookCommon.NotebookCellsChangeType.ModelChange;
1873
- readonly changes: notebookCommon.NotebookCellTextModelSplice<NotebookCellDto>[];
1874
- } | {
1875
- readonly kind: notebookCommon.NotebookCellsChangeType.Move;
1876
- readonly index: number;
1877
- readonly length: number;
1878
- readonly newIdx: number;
1879
- } | {
1880
- readonly kind: notebookCommon.NotebookCellsChangeType.Output;
1881
- readonly index: number;
1882
- readonly outputs: NotebookOutputDto[];
1883
- } | {
1884
- readonly kind: notebookCommon.NotebookCellsChangeType.OutputItem;
1885
- readonly index: number;
1886
- readonly outputId: string;
1887
- readonly outputItems: NotebookOutputItemDto[];
1888
- readonly append: boolean;
1889
- } | notebookCommon.NotebookCellsChangeLanguageEvent | notebookCommon.NotebookCellsChangeMetadataEvent | notebookCommon.NotebookCellsChangeInternalMetadataEvent | notebookCommon.NotebookCellContentChangeEvent;
1890
- export interface NotebookCellsChangedEventDto {
1891
- readonly rawEvents: NotebookRawContentEventDto[];
1892
- readonly versionId: number;
1893
- }
1894
- export interface NotebookSelectionChangeEvent {
1895
- selections: CellRange[];
1896
- }
1897
- export interface NotebookVisibleRangesEvent {
1898
- ranges: CellRange[];
1899
- }
1900
- export interface NotebookEditorPropertiesChangeData {
1901
- visibleRanges?: NotebookVisibleRangesEvent;
1902
- selections?: NotebookSelectionChangeEvent;
1903
- }
1904
- export declare enum NotebookEditorRevealType {
1905
- Default = 0,
1906
- InCenter = 1,
1907
- InCenterIfOutsideViewport = 2,
1908
- AtTop = 3
1909
- }
1910
- export interface NotebookDocumentShowOptions {
1911
- position?: EditorGroupColumn;
1912
- preserveFocus?: boolean;
1913
- pinned?: boolean;
1914
- selections?: CellRange[];
1915
- }
1916
- export interface NotebookKernelDto {
1917
- id: string;
1918
- notebookType: string;
1919
- extensionId: string;
1920
- label: string;
1921
- detail?: string;
1922
- description?: string;
1923
- supportedLanguages?: string[];
1924
- supportsInterrupt?: boolean;
1925
- supportsExecutionOrder?: boolean;
1926
- preloads?: {
1927
- uri: UriComponents;
1928
- provides: readonly string[];
1929
- }[];
1930
- rendererScripts?: NotebookRendererScript[];
1931
- }
1932
- export declare type CellExecuteUpdateDto = CellExecuteOutputEditDto | CellExecuteOutputItemEditDto | CellExecutionStateUpdateDto;
1933
- export interface CellExecuteOutputEditDto {
1934
- editType: CellExecutionUpdateType.Output;
1935
- cellHandle: number;
1936
- append?: boolean;
1937
- outputs: NotebookOutputDto[];
1938
- }
1939
- export interface CellExecuteOutputItemEditDto {
1940
- editType: CellExecutionUpdateType.OutputItems;
1941
- append?: boolean;
1942
- outputId: string;
1943
- items: NotebookOutputItemDto[];
1944
- }
1945
- export interface CellExecutionStateUpdateDto {
1946
- editType: CellExecutionUpdateType.ExecutionState;
1947
- executionOrder?: number;
1948
- runStartTime?: number;
1949
- didPause?: boolean;
1950
- isPaused?: boolean;
1951
- }
1952
- export interface CellExecutionCompleteDto {
1953
- runEndTime?: number;
1954
- lastRunSuccess?: boolean;
1955
- }
1956
- export interface NotebookKernelSourceActionDto {
1957
- readonly label: string;
1958
- readonly description?: string;
1959
- readonly detail?: string;
1960
- readonly command?: string | Command;
1961
- readonly documentation?: UriComponents | string;
1962
- }
1963
- export interface NotebookEditorAddData {
1964
- id: string;
1965
- documentUri: UriComponents;
1966
- selections: CellRange[];
1967
- visibleRanges: CellRange[];
1968
- viewColumn?: number;
1969
- }
1970
- export interface NotebooksExt extends NotebookDocumentsAndEditorsExt {
1971
- $provideNotebookCellStatusBarItems(handle: number, uri: UriComponents, index: number, token: CancellationToken): Promise<NotebookCellStatusBarListDto | undefined>;
1972
- $releaseNotebookCellStatusBarItems(id: number): void;
1973
- $dataToNotebook(handle: number, data: BinaryBuffer, token: CancellationToken): Promise<NotebookDataDto>;
1974
- $notebookToData(handle: number, data: NotebookDataDto, token: CancellationToken): Promise<BinaryBuffer>;
1975
- }
1976
- export interface NotebooksMain extends Disposable {
1977
- $registerNotebookSerializer(handle: number, viewType: string, options: notebookCommon.TransientOptions): void;
1978
- $unregisterNotebookSerializer(handle: number): void;
1979
- $registerNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined, viewType: string): Promise<void>;
1980
- $unregisterNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined): Promise<void>;
1981
- $emitCellStatusBarEvent(eventHandle: number): void;
1982
- }
1983
- export interface NotebookKernelsExt {
1984
- $acceptNotebookAssociation(handle: number, uri: UriComponents, value: boolean): void;
1985
- $executeCells(handle: number, uri: UriComponents, handles: number[]): Promise<void>;
1986
- $cancelCells(handle: number, uri: UriComponents, handles: number[]): Promise<void>;
1987
- $acceptKernelMessageFromRenderer(handle: number, editorId: string, message: any): void;
1988
- $cellExecutionChanged(uri: UriComponents, cellHandle: number, state: NotebookCellExecutionState | undefined): void;
1989
- $provideKernelSourceActions(handle: number, token: CancellationToken): Promise<NotebookKernelSourceActionDto[]>;
1990
- }
1991
- export interface NotebookKernelsMain extends Disposable {
1992
- $postMessage(handle: number, editorId: string | undefined, message: any): Promise<boolean>;
1993
- $addKernel(handle: number, data: NotebookKernelDto): Promise<void>;
1994
- $updateKernel(handle: number, data: Partial<NotebookKernelDto>): void;
1995
- $removeKernel(handle: number): void;
1996
- $updateNotebookPriority(handle: number, uri: UriComponents, value: number | undefined): void;
1997
- $createExecution(handle: number, controllerId: string, uri: UriComponents, cellHandle: number): void;
1998
- $updateExecution(handle: number, data: CellExecuteUpdateDto[]): void;
1999
- $completeExecution(handle: number, data: CellExecutionCompleteDto): void;
2000
- $createNotebookExecution(handle: number, controllerId: string, uri: UriComponents): void;
2001
- $beginNotebookExecution(handle: number): void;
2002
- $completeNotebookExecution(handle: number): void;
2003
- $addKernelDetectionTask(handle: number, notebookType: string): Promise<void>;
2004
- $removeKernelDetectionTask(handle: number): void;
2005
- $addKernelSourceActionProvider(handle: number, eventHandle: number, notebookType: string): Promise<void>;
2006
- $removeKernelSourceActionProvider(handle: number, eventHandle: number): void;
2007
- $emitNotebookKernelSourceActionsChangeEvent(eventHandle: number): void;
2008
- }
2009
- export interface NotebookDocumentsMain extends Disposable {
2010
- $tryCreateNotebook(options: {
2011
- viewType: string;
2012
- content?: NotebookDataDto;
2013
- }): Promise<UriComponents>;
2014
- $tryOpenNotebook(uriComponents: UriComponents): Promise<UriComponents>;
2015
- $trySaveNotebook(uri: UriComponents): Promise<boolean>;
2016
- }
2017
- export interface NotebookDocumentsExt {
2018
- $acceptModelChanged(uriComponents: UriComponents, event: NotebookCellsChangedEventDto, isDirty: boolean, newMetadata?: notebookCommon.NotebookDocumentMetadata): void;
2019
- $acceptDirtyStateChanged(uriComponents: UriComponents, isDirty: boolean): void;
2020
- $acceptModelSaved(uriComponents: UriComponents): void;
2021
- }
2022
- export interface NotebookDocumentsAndEditorsExt {
2023
- $acceptDocumentsAndEditorsDelta(delta: NotebookDocumentsAndEditorsDelta): Promise<void>;
2024
- }
2025
- export interface NotebookDocumentsAndEditorsMain extends Disposable {
2026
- }
2027
- export declare type NotebookEditorViewColumnInfo = Record<string, number>;
2028
- export interface NotebookEditorsExt {
2029
- $acceptEditorPropertiesChanged(id: string, data: NotebookEditorPropertiesChangeData): void;
2030
- $acceptEditorViewColumns(data: NotebookEditorViewColumnInfo): void;
2031
- }
2032
- export interface NotebookEditorsMain extends Disposable {
2033
- $tryShowNotebookDocument(uriComponents: UriComponents, viewType: string, options: NotebookDocumentShowOptions): Promise<string>;
2034
- $tryRevealRange(id: string, range: CellRange, revealType: NotebookEditorRevealType): Promise<void>;
2035
- $trySetSelections(id: string, range: CellRange[]): void;
2036
- }
2037
- export interface NotebookRenderersExt {
2038
- $postRendererMessage(editorId: string, rendererId: string, message: unknown): void;
2039
- }
2040
- export interface NotebookRenderersMain extends Disposable {
2041
- $postMessage(editorId: string | undefined, rendererId: string, message: unknown): Promise<boolean>;
2042
- }
2043
- export interface RawColorInfo {
2044
- color: [number, number, number, number];
2045
- range: Range;
2046
- }
2047
- export interface LabelServiceExt {
2048
- $registerResourceLabelFormatter(formatter: ResourceLabelFormatter): theia.Disposable;
2049
- }
2050
- export interface LabelServiceMain {
2051
- $registerResourceLabelFormatter(handle: number, formatter: ResourceLabelFormatter): void;
2052
- $unregisterResourceLabelFormatter(handle: number): void;
2053
- }
2054
- export interface SecretsExt {
2055
- $onDidChangePassword(e: {
2056
- extensionId: string;
2057
- key: string;
2058
- }): Promise<void>;
2059
- }
2060
- export interface SecretsMain {
2061
- $getPassword(extensionId: string, key: string): Promise<string | undefined>;
2062
- $setPassword(extensionId: string, key: string, value: string): Promise<void>;
2063
- $deletePassword(extensionId: string, key: string): Promise<void>;
2064
- }
2065
- export declare type InlayHintDto = CachedSessionItem<InlayHint>;
2066
- export declare type InlayHintsDto = CachedSession<{
2067
- hints: InlayHint[];
2068
- }>;
2069
- export interface IdentifiableInlineCompletions extends InlineCompletions<IdentifiableInlineCompletion> {
2070
- pid: number;
2071
- }
2072
- export interface IdentifiableInlineCompletion extends InlineCompletion {
2073
- idx: number;
2074
- }
2075
- export interface LocalizationExt {
2076
- translateMessage(pluginId: string, details: StringDetails): string;
2077
- getBundle(pluginId: string): Record<string, string> | undefined;
2078
- getBundleUri(pluginId: string): theia.Uri | undefined;
2079
- initializeLocalizedMessages(plugin: Plugin, currentLanguage: string): Promise<void>;
2080
- }
2081
- export interface StringDetails {
2082
- message: string;
2083
- args?: Record<string | number, any>;
2084
- comment?: string | string[];
2085
- }
2086
- export interface LocalizationMain {
2087
- $fetchBundle(id: string): Promise<LanguagePackBundle | undefined>;
2088
- }
1
+ import { ProxyIdentifier, RPCProtocol } from './rpc-protocol';
2
+ import * as theia from '@theia/plugin';
3
+ import { PluginLifecycle, PluginModel, PluginMetadata, PluginPackage, IconUrl, PluginJsonValidationContribution } from './plugin-protocol';
4
+ import { QueryParameters } from './env';
5
+ import { TextEditorCursorStyle } from './editor-options';
6
+ import { ConfigurationTarget, TextEditorLineNumbersStyle, EndOfLine, OverviewRulerLane, FileOperationOptions, TextDocumentChangeReason, IndentAction, NotebookRendererScript } from '../plugin/types-impl';
7
+ import { UriComponents } from './uri-components';
8
+ import { SerializedDocumentFilter, CompletionContext, MarkdownString, Range, Completion, CompletionResultDto, MarkerData, SignatureHelp, Hover, EvaluatableExpression, InlineValue, InlineValueContext, DocumentHighlight, FormattingOptions, ChainedCacheId, Definition, DocumentLink, CodeLensSymbol, Command, TextEdit, DocumentSymbol, ReferenceContext, TextDocumentShowOptions, WorkspaceRootsChangeEvent, Location, Breakpoint, ColorPresentation, RenameLocation, SignatureHelpContext, CodeAction, CodeActionContext, FoldingContext, FoldingRange, SelectionRange, SearchInWorkspaceResult, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall, Comment, CommentOptions, CommentThreadState, CommentThreadCollapsibleState, CommentThread, CommentThreadChangedEvent, CodeActionProviderDocumentation, LinkedEditingRanges, ProvidedTerminalLink, InlayHint, CachedSession, CachedSessionItem, TypeHierarchyItem, InlineCompletion, InlineCompletions, InlineCompletionContext, DocumentDropEdit, DataTransferDTO, DocumentDropEditProviderMetadata } from './plugin-api-rpc-model';
9
+ import { ExtPluginApi } from './plugin-ext-api-contribution';
10
+ import { KeysToAnyValues, KeysToKeysToAnyValue } from './types';
11
+ import { AuthenticationProviderAuthenticationSessionsChangeEvent, CancellationToken, Progress, ProgressOptions } from '@theia/plugin';
12
+ import { DebuggerDescription } from '@theia/debug/lib/common/debug-service';
13
+ import { DebugProtocol } from '@vscode/debugprotocol';
14
+ import { SymbolInformation } from '@theia/core/shared/vscode-languageserver-protocol';
15
+ import * as files from '@theia/filesystem/lib/common/files';
16
+ import { BinaryBuffer } from '@theia/core/lib/common/buffer';
17
+ import { ResourceLabelFormatter } from '@theia/core/lib/common/label-protocol';
18
+ import type { InternalTimelineOptions, Timeline, TimelineChangeEvent, TimelineProviderDescriptor } from '@theia/timeline/lib/common/timeline-model';
19
+ import { SerializableEnvironmentVariableCollection } from '@theia/terminal/lib/common/shell-terminal-protocol';
20
+ import { ThemeType } from '@theia/core/lib/common/theme';
21
+ import { Disposable } from '@theia/core/lib/common/disposable';
22
+ import { QuickInputButtonHandle } from '@theia/core/lib/common';
23
+ import { Severity } from '@theia/core/lib/common/severity';
24
+ import { DebugConfiguration, DebugSessionOptions } from '@theia/debug/lib/common/debug-configuration';
25
+ import * as notebookCommon from '@theia/notebook/lib/common';
26
+ import { CellExecutionUpdateType, CellRange, NotebookCellExecutionState } from '@theia/notebook/lib/common';
27
+ import { LanguagePackBundle } from './language-pack-service';
28
+ import { AccessibilityInformation } from '@theia/core/lib/common/accessibility';
29
+ import { TreeDelta } from '@theia/test/lib/common/tree-delta';
30
+ import { TestItemDTO, TestOutputDTO, TestRunDTO, TestRunProfileDTO, TestRunRequestDTO, TestStateChangeDTO } from './test-types';
31
+ import { ArgumentProcessor } from './commands';
32
+ export interface PreferenceData {
33
+ [scope: number]: any;
34
+ }
35
+ export interface Plugin {
36
+ pluginPath: string | undefined;
37
+ pluginFolder: string;
38
+ pluginUri: string;
39
+ model: PluginModel;
40
+ rawModel: PluginPackage;
41
+ lifecycle: PluginLifecycle;
42
+ isUnderDevelopment: boolean;
43
+ }
44
+ export interface ConfigStorage {
45
+ hostLogPath: string;
46
+ hostStoragePath?: string;
47
+ hostGlobalStoragePath: string;
48
+ }
49
+ export declare enum UIKind {
50
+ /**
51
+ * Extensions are accessed from a desktop application.
52
+ */
53
+ Desktop = 1,
54
+ /**
55
+ * Extensions are accessed from a web browser.
56
+ */
57
+ Web = 2
58
+ }
59
+ export interface EnvInit {
60
+ queryParams: QueryParameters;
61
+ language: string;
62
+ shell: string;
63
+ uiKind: UIKind;
64
+ appName: string;
65
+ appHost: string;
66
+ appRoot: string;
67
+ }
68
+ export interface PluginAPI {
69
+ }
70
+ export declare const PluginManager: unique symbol;
71
+ export interface PluginManager {
72
+ getAllPlugins(): Plugin[];
73
+ getPluginById(pluginId: string): Plugin | undefined;
74
+ getPluginExport(pluginId: string): PluginAPI | undefined;
75
+ isRunning(pluginId: string): boolean;
76
+ isActive(pluginId: string): boolean;
77
+ activatePlugin(pluginId: string): PromiseLike<void>;
78
+ onDidChange: theia.Event<void>;
79
+ }
80
+ export interface PluginAPIFactory {
81
+ (plugin: Plugin): typeof theia;
82
+ }
83
+ export declare const emptyPlugin: Plugin;
84
+ export interface PluginManagerInitializeParams {
85
+ preferences: PreferenceData;
86
+ globalState: KeysToKeysToAnyValue;
87
+ workspaceState: KeysToKeysToAnyValue;
88
+ env: EnvInit;
89
+ extApi?: ExtPluginApi[];
90
+ webview: WebviewInitData;
91
+ jsonValidation: PluginJsonValidationContribution[];
92
+ supportedActivationEvents?: string[];
93
+ }
94
+ export interface PluginManagerStartParams {
95
+ plugins: PluginMetadata[];
96
+ configStorage: ConfigStorage;
97
+ activationEvents: string[];
98
+ }
99
+ export interface AbstractPluginManagerExt<P extends Record<string, any>> {
100
+ /** initialize the manager, should be called only once */
101
+ $init(params: P): Promise<void>;
102
+ /** load and activate plugins */
103
+ $start(params: PluginManagerStartParams): Promise<void>;
104
+ /** deactivate the plugin */
105
+ $stop(pluginId: string): Promise<void>;
106
+ /** deactivate all plugins */
107
+ $stop(): Promise<void>;
108
+ $updateStoragePath(path: string | undefined): Promise<void>;
109
+ $activateByEvent(event: string): Promise<void>;
110
+ $activatePlugin(id: string): Promise<void>;
111
+ }
112
+ export interface PluginManagerExt extends AbstractPluginManagerExt<PluginManagerInitializeParams> {
113
+ }
114
+ export interface CommandRegistryMain {
115
+ $registerCommand(command: theia.CommandDescription): void;
116
+ $unregisterCommand(id: string): void;
117
+ $registerHandler(id: string): void;
118
+ $unregisterHandler(id: string): void;
119
+ $executeCommand<T>(id: string, ...args: any[]): PromiseLike<T | undefined>;
120
+ $getCommands(): PromiseLike<string[]>;
121
+ $getKeyBinding(commandId: string): PromiseLike<theia.CommandKeyBinding[] | undefined>;
122
+ registerArgumentProcessor(processor: ArgumentProcessor): void;
123
+ }
124
+ export interface CommandRegistryExt {
125
+ $executeCommand<T>(id: string, ...ars: any[]): PromiseLike<T | undefined>;
126
+ registerArgumentProcessor(processor: ArgumentProcessor): void;
127
+ }
128
+ export interface TerminalServiceExt {
129
+ $startProfile(providerId: string, cancellationToken: theia.CancellationToken): Promise<string>;
130
+ $terminalCreated(id: string, name: string): void;
131
+ $terminalNameChanged(id: string, name: string): void;
132
+ $terminalOpened(id: string, processId: number, terminalId: number, cols: number, rows: number): void;
133
+ $terminalClosed(id: string, exitStatus: theia.TerminalExitStatus | undefined): void;
134
+ $terminalOnInput(id: string, data: string): void;
135
+ $terminalSizeChanged(id: string, cols: number, rows: number): void;
136
+ $currentTerminalChanged(id: string | undefined): void;
137
+ $terminalStateChanged(id: string): void;
138
+ $initEnvironmentVariableCollections(collections: [string, string, boolean, SerializableEnvironmentVariableCollection][]): void;
139
+ $provideTerminalLinks(line: string, terminalId: string, token: theia.CancellationToken): Promise<ProvidedTerminalLink[]>;
140
+ $handleTerminalLink(link: ProvidedTerminalLink): Promise<void>;
141
+ getEnvironmentVariableCollection(extensionIdentifier: string): theia.GlobalEnvironmentVariableCollection;
142
+ $setShell(shell: string): void;
143
+ }
144
+ export interface OutputChannelRegistryExt {
145
+ createOutputChannel(name: string, pluginInfo: PluginInfo): theia.OutputChannel;
146
+ createOutputChannel(name: string, pluginInfo: PluginInfo, options: {
147
+ log: true;
148
+ }): theia.LogOutputChannel;
149
+ }
150
+ export interface ConnectionMain {
151
+ $createConnection(id: string): Promise<void>;
152
+ $deleteConnection(id: string): Promise<void>;
153
+ $sendMessage(id: string, message: string): void;
154
+ }
155
+ export interface ConnectionExt {
156
+ $createConnection(id: string): Promise<void>;
157
+ $deleteConnection(id: string): Promise<void>;
158
+ $sendMessage(id: string, message: string): void;
159
+ }
160
+ export interface TerminalServiceMain {
161
+ /**
162
+ * Create new Terminal with Terminal options.
163
+ * @param options - object with parameters to create new terminal.
164
+ */
165
+ $createTerminal(id: string, options: theia.TerminalOptions, parentId?: string, isPseudoTerminal?: boolean): Promise<string>;
166
+ /**
167
+ * Send text to the terminal by id.
168
+ * @param id - terminal widget id.
169
+ * @param text - text content.
170
+ * @param shouldExecute - in case true - Indicates that the text being sent should be executed rather than just inserted in the terminal.
171
+ */
172
+ $sendText(id: string, text: string, shouldExecute?: boolean): void;
173
+ /**
174
+ * Write data to the terminal by id.
175
+ * @param id - terminal widget id.
176
+ * @param data - data.
177
+ */
178
+ $write(id: string, data: string): void;
179
+ /**
180
+ * Resize the terminal by id.
181
+ * @param id - terminal widget id.
182
+ * @param cols - columns.
183
+ * @param rows - rows.
184
+ */
185
+ $resize(id: string, cols: number, rows: number): void;
186
+ /**
187
+ * Show terminal on the UI panel.
188
+ * @param id - terminal widget id.
189
+ * @param preserveFocus - set terminal focus in case true value, and don't set focus otherwise.
190
+ */
191
+ $show(id: string, preserveFocus?: boolean): void;
192
+ /**
193
+ * Hide UI panel where is located terminal widget.
194
+ * @param id - terminal widget id.
195
+ */
196
+ $hide(id: string): void;
197
+ /**
198
+ * Destroy terminal.
199
+ * @param id - terminal widget id.
200
+ */
201
+ $dispose(id: string): void;
202
+ /**
203
+ * Set the terminal widget name.
204
+ * @param id terminal widget id.
205
+ * @param name new terminal widget name.
206
+ */
207
+ $setName(id: string, name: string): void;
208
+ /**
209
+ * Send text to the terminal by id.
210
+ * @param id - terminal id.
211
+ * @param text - text content.
212
+ * @param addNewLine - in case true - add new line after the text, otherwise - don't apply new line.
213
+ */
214
+ $sendTextByTerminalId(id: number, text: string, addNewLine?: boolean): void;
215
+ /**
216
+ * Write data to the terminal by id.
217
+ * @param id - terminal id.
218
+ * @param data - data.
219
+ */
220
+ $writeByTerminalId(id: number, data: string): void;
221
+ /**
222
+ * Resize the terminal by id.
223
+ * @param id - terminal id.
224
+ * @param cols - columns.
225
+ * @param rows - rows.
226
+ */
227
+ $resizeByTerminalId(id: number, cols: number, rows: number): void;
228
+ /**
229
+ * Show terminal on the UI panel.
230
+ * @param id - terminal id.
231
+ * @param preserveFocus - set terminal focus in case true value, and don't set focus otherwise.
232
+ */
233
+ $showByTerminalId(id: number, preserveFocus?: boolean): void;
234
+ /**
235
+ * Hide UI panel where is located terminal widget.
236
+ * @param id - terminal id.
237
+ */
238
+ $hideByTerminalId(id: number): void;
239
+ /**
240
+ * Destroy terminal.
241
+ * @param id - terminal id.
242
+ * @param waitOnExit - Whether to wait for a key press before closing the terminal.
243
+ */
244
+ $disposeByTerminalId(id: number, waitOnExit?: boolean | string): void;
245
+ $setEnvironmentVariableCollection(persistent: boolean, extensionIdentifier: string, rootUri: string, collection: SerializableEnvironmentVariableCollection): void;
246
+ /**
247
+ * Set the terminal widget name.
248
+ * @param id terminal id.
249
+ * @param name new terminal widget name.
250
+ */
251
+ $setNameByTerminalId(id: number, name: string): void;
252
+ /**
253
+ * Register a new terminal link provider.
254
+ * @param providerId id of the terminal link provider to be registered.
255
+ */
256
+ $registerTerminalLinkProvider(providerId: string): Promise<void>;
257
+ /**
258
+ * Unregister the terminal link provider with the specified id.
259
+ * @param providerId id of the terminal link provider to be unregistered.
260
+ */
261
+ $unregisterTerminalLinkProvider(providerId: string): Promise<void>;
262
+ }
263
+ export interface AutoFocus {
264
+ autoFocusFirstEntry?: boolean;
265
+ }
266
+ export declare enum MainMessageType {
267
+ Error = 0,
268
+ Warning = 1,
269
+ Info = 2
270
+ }
271
+ export interface MainMessageOptions {
272
+ detail?: string;
273
+ modal?: boolean;
274
+ onCloseActionHandle?: number;
275
+ }
276
+ export interface MainMessageItem {
277
+ title: string;
278
+ isCloseAffordance?: boolean;
279
+ handle?: number;
280
+ }
281
+ export interface MessageRegistryMain {
282
+ $showMessage(type: MainMessageType, message: string, options: MainMessageOptions, actions: MainMessageItem[]): PromiseLike<number | undefined>;
283
+ }
284
+ export interface StatusBarMessageRegistryMain {
285
+ $setMessage(id: string, name: string | undefined, text: string | undefined, priority: number, alignment: theia.StatusBarAlignment, color: string | undefined, backgroundColor: string | undefined, tooltip: string | theia.MarkdownString | undefined, command: string | undefined, accessibilityInformation: theia.AccessibilityInformation, args: any[] | undefined): PromiseLike<void>;
286
+ $dispose(id: string): void;
287
+ }
288
+ export interface QuickOpenExt {
289
+ $onItemSelected(handle: number): void;
290
+ $validateInput(input: string): Promise<string | {
291
+ content: string;
292
+ severity: Severity;
293
+ } | null | undefined> | undefined;
294
+ $acceptOnDidAccept(sessionId: number): Promise<void>;
295
+ $acceptDidChangeValue(sessionId: number, changedValue: string): Promise<void>;
296
+ $acceptOnDidHide(sessionId: number): Promise<void>;
297
+ $acceptOnDidTriggerButton(sessionId: number, btn: QuickInputButtonHandle): Promise<void>;
298
+ $onDidTriggerItemButton(sessionId: number, itemHandle: number, buttonHandle: number): void;
299
+ $onDidChangeActive(sessionId: number, handles: number[]): void;
300
+ $onDidChangeSelection(sessionId: number, handles: number[]): void;
301
+ showQuickPick(itemsOrItemsPromise: Array<theia.QuickPickItem> | Promise<Array<theia.QuickPickItem>>, options: theia.QuickPickOptions & {
302
+ canPickMany: true;
303
+ }, token?: theia.CancellationToken): Promise<Array<theia.QuickPickItem> | undefined>;
304
+ showQuickPick(itemsOrItemsPromise: string[] | Promise<string[]>, options?: theia.QuickPickOptions, token?: theia.CancellationToken): Promise<string | undefined>;
305
+ showQuickPick(itemsOrItemsPromise: Array<theia.QuickPickItem> | Promise<Array<theia.QuickPickItem>>, options?: theia.QuickPickOptions, token?: theia.CancellationToken): Promise<theia.QuickPickItem | undefined>;
306
+ showInput(options?: theia.InputBoxOptions, token?: theia.CancellationToken): PromiseLike<string | undefined>;
307
+ createQuickPick<T extends theia.QuickPickItem>(plugin: Plugin): theia.QuickPick<T>;
308
+ createInputBox(plugin: Plugin): theia.InputBox;
309
+ }
310
+ /**
311
+ * Options to configure the behaviour of a file open dialog.
312
+ */
313
+ export interface OpenDialogOptionsMain {
314
+ /**
315
+ * Dialog title.
316
+ * This parameter might be ignored, as not all operating systems display a title on open dialogs.
317
+ */
318
+ title?: string;
319
+ /**
320
+ * The resource the dialog shows when opened.
321
+ */
322
+ defaultUri?: string;
323
+ /**
324
+ * A human-readable string for the open button.
325
+ */
326
+ openLabel?: string;
327
+ /**
328
+ * Allow to select files, defaults to `true`.
329
+ */
330
+ canSelectFiles?: boolean;
331
+ /**
332
+ * Allow to select folders, defaults to `false`.
333
+ */
334
+ canSelectFolders?: boolean;
335
+ /**
336
+ * Allow to select many files or folders.
337
+ */
338
+ canSelectMany?: boolean;
339
+ /**
340
+ * A set of file filters that are used by the dialog. Each entry is a human readable label,
341
+ * like "TypeScript", and an array of extensions, e.g.
342
+ * ```ts
343
+ * {
344
+ * 'Images': ['png', 'jpg']
345
+ * 'TypeScript': ['ts', 'tsx']
346
+ * }
347
+ * ```
348
+ */
349
+ filters?: {
350
+ [name: string]: string[];
351
+ };
352
+ }
353
+ /**
354
+ * Options to configure the behaviour of a file save dialog.
355
+ */
356
+ export interface SaveDialogOptionsMain {
357
+ /**
358
+ * Dialog title.
359
+ * This parameter might be ignored, as not all operating systems display a title on save dialogs.
360
+ */
361
+ title?: string;
362
+ /**
363
+ * The resource the dialog shows when opened.
364
+ */
365
+ defaultUri?: string;
366
+ /**
367
+ * A human-readable string for the save button.
368
+ */
369
+ saveLabel?: string;
370
+ /**
371
+ * A set of file filters that are used by the dialog. Each entry is a human readable label,
372
+ * like "TypeScript", and an array of extensions, e.g.
373
+ * ```ts
374
+ * {
375
+ * 'Images': ['png', 'jpg']
376
+ * 'TypeScript': ['ts', 'tsx']
377
+ * }
378
+ * ```
379
+ */
380
+ filters?: {
381
+ [name: string]: string[];
382
+ };
383
+ }
384
+ /**
385
+ * Options to configure the behaviour of a file upload dialog.
386
+ */
387
+ export interface UploadDialogOptionsMain {
388
+ /**
389
+ * The resource, where files should be uploaded.
390
+ */
391
+ defaultUri?: string;
392
+ }
393
+ export interface FileUploadResultMain {
394
+ uploaded: string[];
395
+ }
396
+ /**
397
+ * Options to configure the behaviour of the [workspace folder](#WorkspaceFolder) pick UI.
398
+ */
399
+ export interface WorkspaceFolderPickOptionsMain {
400
+ /**
401
+ * An optional string to show as place holder in the input box to guide the user what to pick on.
402
+ */
403
+ placeHolder?: string;
404
+ /**
405
+ * Set to `true` to keep the picker open when focus moves to another part of the editor or to another window.
406
+ */
407
+ ignoreFocusOut?: boolean;
408
+ }
409
+ export interface TransferQuickPickItem {
410
+ handle: number;
411
+ kind: 'item' | 'separator';
412
+ label: string;
413
+ iconPath?: UriComponents | {
414
+ light: UriComponents;
415
+ dark: UriComponents;
416
+ } | ThemeIcon;
417
+ description?: string;
418
+ detail?: string;
419
+ picked?: boolean;
420
+ alwaysShow?: boolean;
421
+ buttons?: readonly TransferQuickInputButton[];
422
+ }
423
+ export interface TransferQuickPickOptions<T extends TransferQuickPickItem> {
424
+ title?: string;
425
+ placeHolder?: string;
426
+ matchOnDescription?: boolean;
427
+ matchOnDetail?: boolean;
428
+ matchOnLabel?: boolean;
429
+ autoFocusOnList?: boolean;
430
+ ignoreFocusLost?: boolean;
431
+ canPickMany?: boolean;
432
+ contextKey?: string;
433
+ activeItem?: Promise<T> | T;
434
+ onDidFocus?: (entry: T) => void;
435
+ }
436
+ export interface TransferQuickInputButton {
437
+ handle?: number;
438
+ readonly iconPath: UriComponents | {
439
+ light: UriComponents;
440
+ dark: UriComponents;
441
+ } | ThemeIcon;
442
+ readonly tooltip?: string | undefined;
443
+ }
444
+ export declare type TransferQuickInput = TransferQuickPick | TransferInputBox;
445
+ export interface BaseTransferQuickInput {
446
+ [key: string]: any;
447
+ id: number;
448
+ type?: 'quickPick' | 'inputBox';
449
+ enabled?: boolean;
450
+ busy?: boolean;
451
+ visible?: boolean;
452
+ }
453
+ export interface TransferQuickPick extends BaseTransferQuickInput {
454
+ type?: 'quickPick';
455
+ value?: string;
456
+ placeholder?: string;
457
+ buttons?: TransferQuickInputButton[];
458
+ items?: TransferQuickPickItem[];
459
+ activeItems?: ReadonlyArray<theia.QuickPickItem>;
460
+ selectedItems?: ReadonlyArray<theia.QuickPickItem>;
461
+ canSelectMany?: boolean;
462
+ ignoreFocusOut?: boolean;
463
+ matchOnDescription?: boolean;
464
+ matchOnDetail?: boolean;
465
+ sortByLabel?: boolean;
466
+ }
467
+ export interface TransferInputBox extends BaseTransferQuickInput {
468
+ type?: 'inputBox';
469
+ value?: string;
470
+ placeholder?: string;
471
+ password?: boolean;
472
+ buttons?: TransferQuickInputButton[];
473
+ prompt?: string;
474
+ validationMessage?: string;
475
+ }
476
+ export interface IInputBoxOptions {
477
+ value?: string;
478
+ valueSelection?: [number, number];
479
+ prompt?: string;
480
+ placeHolder?: string;
481
+ password?: boolean;
482
+ ignoreFocusOut?: boolean;
483
+ }
484
+ export interface QuickOpenMain {
485
+ $show(instance: number, options: TransferQuickPickOptions<TransferQuickPickItem>, token: CancellationToken): Promise<number | number[] | undefined>;
486
+ $setItems(instance: number, items: TransferQuickPickItem[]): Promise<any>;
487
+ $setError(instance: number, error: Error): Promise<void>;
488
+ $input(options: theia.InputBoxOptions, validateInput: boolean, token: CancellationToken): Promise<string | undefined>;
489
+ $createOrUpdate<T extends theia.QuickPickItem>(params: TransferQuickInput): Promise<void>;
490
+ $dispose(id: number): Promise<void>;
491
+ $hide(): void;
492
+ $showInputBox(options: TransferInputBox, validateInput: boolean): Promise<string | undefined>;
493
+ }
494
+ export interface WorkspaceMain {
495
+ $pickWorkspaceFolder(options: WorkspaceFolderPickOptionsMain): Promise<theia.WorkspaceFolder | undefined>;
496
+ $startFileSearch(includePattern: string, includeFolder: string | undefined, excludePatternOrDisregardExcludes: string | false, maxResults: number | undefined, token: theia.CancellationToken): PromiseLike<UriComponents[]>;
497
+ $findTextInFiles(query: theia.TextSearchQuery, options: theia.FindTextInFilesOptions, searchRequestId: number, token?: theia.CancellationToken): Promise<theia.TextSearchComplete>;
498
+ $registerTextDocumentContentProvider(scheme: string): Promise<void>;
499
+ $unregisterTextDocumentContentProvider(scheme: string): void;
500
+ $onTextDocumentContentChange(uri: string, content: string): void;
501
+ $updateWorkspaceFolders(start: number, deleteCount?: number, ...rootsToAdd: string[]): Promise<void>;
502
+ $getWorkspace(): Promise<files.FileStat | undefined>;
503
+ $requestWorkspaceTrust(options?: theia.WorkspaceTrustRequestOptions): Promise<boolean | undefined>;
504
+ $resolveProxy(url: string): Promise<string | undefined>;
505
+ $registerCanonicalUriProvider(scheme: string): Promise<void | undefined>;
506
+ $unregisterCanonicalUriProvider(scheme: string): void;
507
+ $getCanonicalUri(uri: string, targetScheme: string, token: theia.CancellationToken): Promise<string | undefined>;
508
+ }
509
+ export interface WorkspaceExt {
510
+ $onWorkspaceFoldersChanged(event: WorkspaceRootsChangeEvent): void;
511
+ $onWorkspaceLocationChanged(event: files.FileStat | undefined): void;
512
+ $provideTextDocumentContent(uri: string): Promise<string | undefined | null>;
513
+ $onTextSearchResult(searchRequestId: number, done: boolean, result?: SearchInWorkspaceResult): void;
514
+ $onWorkspaceTrustChanged(trust: boolean | undefined): void;
515
+ $registerEditSessionIdentityProvider(scheme: string, provider: theia.EditSessionIdentityProvider): theia.Disposable;
516
+ registerCanonicalUriProvider(scheme: string, provider: theia.CanonicalUriProvider): theia.Disposable;
517
+ $disposeCanonicalUriProvider(scheme: string): void;
518
+ getCanonicalUri(uri: theia.Uri, options: theia.CanonicalUriRequestOptions, token: CancellationToken): theia.ProviderResult<theia.Uri>;
519
+ $provideCanonicalUri(uri: string, targetScheme: string, token: CancellationToken): Promise<string | undefined>;
520
+ }
521
+ export interface TimelineExt {
522
+ $getTimeline(source: string, uri: UriComponents, options: theia.TimelineOptions, internalOptions?: InternalTimelineOptions): Promise<Timeline | undefined>;
523
+ }
524
+ export interface TimelineMain {
525
+ $registerTimelineProvider(provider: TimelineProviderDescriptor): Promise<void>;
526
+ $fireTimelineChanged(e: TimelineChangeEvent): Promise<void>;
527
+ $unregisterTimelineProvider(source: string): Promise<void>;
528
+ }
529
+ export interface ThemingExt {
530
+ $onColorThemeChange(type: ThemeType): void;
531
+ }
532
+ export interface ThemingMain extends Disposable {
533
+ }
534
+ export interface DialogsMain {
535
+ $showOpenDialog(options: OpenDialogOptionsMain): Promise<string[] | undefined>;
536
+ $showSaveDialog(options: SaveDialogOptionsMain): Promise<string | undefined>;
537
+ $showUploadDialog(options: UploadDialogOptionsMain): Promise<string[] | undefined>;
538
+ }
539
+ export interface RegisterTreeDataProviderOptions {
540
+ manageCheckboxStateManually?: boolean;
541
+ showCollapseAll?: boolean;
542
+ canSelectMany?: boolean;
543
+ dragMimeTypes?: string[];
544
+ dropMimeTypes?: string[];
545
+ }
546
+ export interface TreeViewRevealOptions {
547
+ select: boolean;
548
+ focus: boolean;
549
+ expand: boolean | number;
550
+ }
551
+ export interface TreeViewsMain {
552
+ $registerTreeDataProvider(treeViewId: string, options?: RegisterTreeDataProviderOptions): void;
553
+ $readDroppedFile(contentId: string): Promise<BinaryBuffer>;
554
+ $unregisterTreeDataProvider(treeViewId: string): void;
555
+ $refresh(treeViewId: string): Promise<void>;
556
+ $reveal(treeViewId: string, elementParentChain: string[], options: TreeViewRevealOptions): Promise<any>;
557
+ $setMessage(treeViewId: string, message: string): void;
558
+ $setTitle(treeViewId: string, title: string): void;
559
+ $setDescription(treeViewId: string, description: string): void;
560
+ $setBadge(treeViewId: string, badge: theia.ViewBadge | undefined): void;
561
+ }
562
+ export declare class DataTransferFileDTO {
563
+ readonly name: string;
564
+ readonly contentId: string;
565
+ readonly uri?: UriComponents | undefined;
566
+ constructor(name: string, contentId: string, uri?: UriComponents | undefined);
567
+ static is(value: string | DataTransferFileDTO): value is DataTransferFileDTO;
568
+ }
569
+ export interface TreeViewsExt {
570
+ $checkStateChanged(treeViewId: string, itemIds: {
571
+ id: string;
572
+ checked: boolean;
573
+ }[]): Promise<void>;
574
+ $dragStarted(treeViewId: string, treeItemIds: string[], token: CancellationToken): Promise<UriComponents[] | undefined>;
575
+ $dragEnd(treeViewId: string): Promise<void>;
576
+ $drop(treeViewId: string, treeItemId: string | undefined, dataTransferItems: [string, string | DataTransferFileDTO][], token: CancellationToken): Promise<void>;
577
+ $getChildren(treeViewId: string, treeItemId: string | undefined): Promise<TreeViewItem[] | undefined>;
578
+ $hasResolveTreeItem(treeViewId: string): Promise<boolean>;
579
+ $resolveTreeItem(treeViewId: string, treeItemId: string, token: CancellationToken): Promise<TreeViewItem | undefined>;
580
+ $setExpanded(treeViewId: string, treeItemId: string, expanded: boolean): Promise<any>;
581
+ $setSelection(treeViewId: string, treeItemIds: string[]): Promise<void>;
582
+ $setVisible(treeViewId: string, visible: boolean): Promise<void>;
583
+ }
584
+ export interface TreeViewItemCheckboxInfo {
585
+ checked: boolean;
586
+ tooltip?: string;
587
+ accessibilityInformation?: AccessibilityInformation;
588
+ }
589
+ export interface TreeViewItem {
590
+ id: string;
591
+ label: string;
592
+ /** Label highlights given as tuples of inclusive start index and exclusive end index. */
593
+ highlights?: [number, number][];
594
+ description?: string | boolean;
595
+ icon?: string;
596
+ iconUrl?: IconUrl;
597
+ themeIcon?: ThemeIcon;
598
+ resourceUri?: UriComponents;
599
+ tooltip?: string | MarkdownString;
600
+ collapsibleState?: TreeViewItemCollapsibleState;
601
+ checkboxInfo?: TreeViewItemCheckboxInfo;
602
+ contextValue?: string;
603
+ command?: Command;
604
+ accessibilityInformation?: theia.AccessibilityInformation;
605
+ }
606
+ export interface TreeViewItemReference {
607
+ viewId: string;
608
+ itemId: string;
609
+ }
610
+ export declare namespace TreeViewItemReference {
611
+ function is(arg: unknown): arg is TreeViewItemReference;
612
+ }
613
+ /**
614
+ * Collapsible state of the tree item
615
+ */
616
+ export declare enum TreeViewItemCollapsibleState {
617
+ /**
618
+ * Determines an item can be neither collapsed nor expanded. Implies it has no children.
619
+ */
620
+ None = 0,
621
+ /**
622
+ * Determines an item is collapsed
623
+ */
624
+ Collapsed = 1,
625
+ /**
626
+ * Determines an item is expanded
627
+ */
628
+ Expanded = 2
629
+ }
630
+ export interface WindowMain {
631
+ $openUri(uri: UriComponents): Promise<boolean>;
632
+ $asExternalUri(uri: UriComponents): Promise<UriComponents>;
633
+ }
634
+ export interface WindowStateExt {
635
+ $onWindowStateChanged(focus: boolean): void;
636
+ }
637
+ export interface NotificationExt {
638
+ withProgress<R>(options: ProgressOptions, task: (progress: Progress<{
639
+ message?: string;
640
+ increment?: number;
641
+ }>, token: CancellationToken) => PromiseLike<R>): PromiseLike<R>;
642
+ $acceptProgressCanceled(progressId: string): void;
643
+ }
644
+ export interface ScmCommandArg {
645
+ sourceControlHandle: number;
646
+ resourceGroupHandle?: number;
647
+ resourceStateHandle?: number;
648
+ }
649
+ export declare namespace ScmCommandArg {
650
+ function is(arg: unknown): arg is ScmCommandArg;
651
+ }
652
+ export interface ScmExt {
653
+ createSourceControl(plugin: Plugin, id: string, label: string, rootUri?: theia.Uri): theia.SourceControl;
654
+ getLastInputBox(plugin: Plugin): theia.SourceControlInputBox | undefined;
655
+ $onInputBoxValueChange(sourceControlHandle: number, message: string): Promise<void>;
656
+ $executeResourceCommand(sourceControlHandle: number, groupHandle: number, resourceHandle: number): Promise<void>;
657
+ $validateInput(sourceControlHandle: number, value: string, cursorPosition: number): Promise<[string, number] | undefined>;
658
+ $setSelectedSourceControl(selectedSourceControlHandle: number | undefined): Promise<void>;
659
+ $provideOriginalResource(sourceControlHandle: number, uri: string, token: theia.CancellationToken): Promise<UriComponents | undefined>;
660
+ }
661
+ export declare namespace TimelineCommandArg {
662
+ function is(arg: unknown): arg is TimelineCommandArg;
663
+ }
664
+ export interface TimelineCommandArg {
665
+ timelineHandle: string;
666
+ source: string;
667
+ uri: string;
668
+ }
669
+ export interface DecorationRequest {
670
+ readonly id: number;
671
+ readonly uri: UriComponents;
672
+ }
673
+ export declare type DecorationData = [boolean, string, string, ThemeColor];
674
+ export interface DecorationReply {
675
+ [id: number]: DecorationData;
676
+ }
677
+ export declare namespace CommentsCommandArg {
678
+ function is(arg: unknown): arg is CommentsCommandArg;
679
+ }
680
+ export interface CommentsCommandArg {
681
+ commentControlHandle: number;
682
+ commentThreadHandle: number;
683
+ text: string;
684
+ }
685
+ export declare namespace CommentsContextCommandArg {
686
+ function is(arg: unknown): arg is CommentsContextCommandArg;
687
+ }
688
+ export interface CommentsContextCommandArg {
689
+ commentControlHandle: number;
690
+ commentThreadHandle: number;
691
+ commentUniqueId: number;
692
+ }
693
+ export declare namespace CommentsEditCommandArg {
694
+ function is(arg: unknown): arg is CommentsEditCommandArg;
695
+ }
696
+ export interface CommentsEditCommandArg {
697
+ commentControlHandle: number;
698
+ commentThreadHandle: number;
699
+ commentUniqueId: number;
700
+ text: string;
701
+ }
702
+ export interface DecorationsExt {
703
+ registerFileDecorationProvider(provider: theia.FileDecorationProvider, pluginInfo: PluginInfo): theia.Disposable;
704
+ $provideDecorations(handle: number, requests: DecorationRequest[], token: CancellationToken): Promise<DecorationReply>;
705
+ }
706
+ export interface DecorationsMain {
707
+ $registerDecorationProvider(handle: number): Promise<void>;
708
+ $unregisterDecorationProvider(handle: number): void;
709
+ $onDidChange(handle: number, resources: UriComponents[] | null): void;
710
+ }
711
+ export interface ScmMain {
712
+ $registerSourceControl(sourceControlHandle: number, id: string, label: string, rootUri?: UriComponents): Promise<void>;
713
+ $updateSourceControl(sourceControlHandle: number, features: SourceControlProviderFeatures): Promise<void>;
714
+ $unregisterSourceControl(sourceControlHandle: number): Promise<void>;
715
+ $registerGroups(sourceControlHandle: number, groups: ScmRawResourceGroup[], splices: ScmRawResourceSplices[]): void;
716
+ $updateGroup(sourceControlHandle: number, groupHandle: number, features: SourceControlGroupFeatures): void;
717
+ $updateGroupLabel(sourceControlHandle: number, groupHandle: number, label: string): void;
718
+ $unregisterGroup(sourceControlHandle: number, groupHandle: number): void;
719
+ $spliceResourceStates(sourceControlHandle: number, splices: ScmRawResourceSplices[]): void;
720
+ $setInputBoxValue(sourceControlHandle: number, value: string): void;
721
+ $setInputBoxPlaceholder(sourceControlHandle: number, placeholder: string): void;
722
+ $setInputBoxVisible(sourceControlHandle: number, visible: boolean): void;
723
+ $setInputBoxEnabled(sourceControlHandle: number, enabled: boolean): void;
724
+ }
725
+ export interface SourceControlProviderFeatures {
726
+ hasQuickDiffProvider?: boolean;
727
+ count?: number;
728
+ commitTemplate?: string;
729
+ acceptInputCommand?: Command;
730
+ statusBarCommands?: Command[];
731
+ }
732
+ export interface SourceControlGroupFeatures {
733
+ hideWhenEmpty: boolean | undefined;
734
+ }
735
+ export interface ScmRawResource {
736
+ handle: number;
737
+ sourceUri: UriComponents;
738
+ icons: (IconUrl | ThemeIcon | undefined)[];
739
+ tooltip: string;
740
+ strikeThrough: boolean;
741
+ faded: boolean;
742
+ contextValue: string;
743
+ command: Command | undefined;
744
+ }
745
+ export interface ScmRawResourceGroup {
746
+ handle: number;
747
+ id: string;
748
+ label: string;
749
+ features: SourceControlGroupFeatures;
750
+ }
751
+ export interface ScmRawResourceSplice {
752
+ start: number;
753
+ deleteCount: number;
754
+ rawResources: ScmRawResource[];
755
+ }
756
+ export interface ScmRawResourceSplices {
757
+ handle: number;
758
+ splices: ScmRawResourceSplice[];
759
+ }
760
+ export interface SourceControlResourceState {
761
+ readonly handle: number;
762
+ /**
763
+ * The uri of the underlying resource inside the workspace.
764
+ */
765
+ readonly resourceUri: string;
766
+ /**
767
+ * The command which should be run when the resource
768
+ * state is open in the Source Control viewlet.
769
+ */
770
+ readonly command?: Command;
771
+ /**
772
+ * The decorations for this source control
773
+ * resource state.
774
+ */
775
+ readonly decorations?: SourceControlResourceDecorations;
776
+ readonly letter?: string;
777
+ readonly colorId?: string;
778
+ }
779
+ /**
780
+ * The decorations for a [source control resource state](#SourceControlResourceState).
781
+ * Can be independently specified for light and dark themes.
782
+ */
783
+ export interface SourceControlResourceDecorations {
784
+ /**
785
+ * Whether the source control resource state should be striked-through in the UI.
786
+ */
787
+ readonly strikeThrough?: boolean;
788
+ /**
789
+ * Whether the source control resource state should be faded in the UI.
790
+ */
791
+ readonly faded?: boolean;
792
+ /**
793
+ * The title for a specific source control resource state.
794
+ */
795
+ readonly tooltip?: string;
796
+ /**
797
+ * The icon path for a specific source control resource state.
798
+ */
799
+ readonly iconPath?: string;
800
+ }
801
+ export interface NotificationMain {
802
+ $startProgress(options: NotificationMain.StartProgressOptions): Promise<string>;
803
+ $stopProgress(id: string): void;
804
+ $updateProgress(id: string, report: NotificationMain.ProgressReport): void;
805
+ }
806
+ export declare namespace NotificationMain {
807
+ interface StartProgressOptions {
808
+ title: string;
809
+ location?: string;
810
+ cancellable?: boolean;
811
+ }
812
+ interface ProgressReport {
813
+ message?: string;
814
+ increment?: number;
815
+ total?: number;
816
+ }
817
+ }
818
+ export declare enum EditorPosition {
819
+ ONE = 0,
820
+ TWO = 1,
821
+ THREE = 2,
822
+ FOUR = 3,
823
+ FIVE = 4,
824
+ SIX = 5,
825
+ SEVEN = 6,
826
+ EIGHT = 7,
827
+ NINE = 8
828
+ }
829
+ export interface Position {
830
+ readonly lineNumber: number;
831
+ readonly column: number;
832
+ }
833
+ export interface Selection {
834
+ /**
835
+ * The line number on which the selection has started.
836
+ */
837
+ readonly selectionStartLineNumber: number;
838
+ /**
839
+ * The column on `selectionStartLineNumber` where the selection has started.
840
+ */
841
+ readonly selectionStartColumn: number;
842
+ /**
843
+ * The line number on which the selection has ended.
844
+ */
845
+ readonly positionLineNumber: number;
846
+ /**
847
+ * The column on `positionLineNumber` where the selection has ended.
848
+ */
849
+ readonly positionColumn: number;
850
+ }
851
+ export interface TextEditorConfiguration {
852
+ tabSize: number;
853
+ indentSize: number;
854
+ insertSpaces: boolean;
855
+ cursorStyle: TextEditorCursorStyle;
856
+ lineNumbers: TextEditorLineNumbersStyle;
857
+ }
858
+ export interface TextEditorConfigurationUpdate {
859
+ tabSize?: number | 'auto';
860
+ indentSize?: number | 'tabSize';
861
+ insertSpaces?: boolean | 'auto';
862
+ cursorStyle?: TextEditorCursorStyle;
863
+ lineNumbers?: TextEditorLineNumbersStyle;
864
+ }
865
+ export declare enum TextEditorRevealType {
866
+ Default = 0,
867
+ InCenter = 1,
868
+ InCenterIfOutsideViewport = 2,
869
+ AtTop = 3
870
+ }
871
+ export interface SelectionChangeEvent {
872
+ selections: Selection[];
873
+ source?: string;
874
+ }
875
+ export interface EditorChangedPropertiesData {
876
+ options?: TextEditorConfiguration;
877
+ selections?: SelectionChangeEvent;
878
+ visibleRanges?: Range[];
879
+ }
880
+ export interface TextEditorPositionData {
881
+ [id: string]: EditorPosition;
882
+ }
883
+ export interface TextEditorsExt {
884
+ $acceptEditorPropertiesChanged(id: string, props: EditorChangedPropertiesData): void;
885
+ $acceptEditorPositionData(data: TextEditorPositionData): void;
886
+ }
887
+ export interface SingleEditOperation {
888
+ range?: Range;
889
+ text?: string;
890
+ forceMoveMarkers?: boolean;
891
+ }
892
+ export interface UndoStopOptions {
893
+ undoStopBefore: boolean;
894
+ undoStopAfter: boolean;
895
+ }
896
+ export interface ApplyEditsOptions extends UndoStopOptions {
897
+ setEndOfLine: EndOfLine;
898
+ }
899
+ export interface ThemeColor {
900
+ id: string;
901
+ }
902
+ export interface ThemeIcon {
903
+ id: string;
904
+ color?: ThemeColor;
905
+ }
906
+ /**
907
+ * Describes the behavior of decorations when typing/editing near their edges.
908
+ */
909
+ export declare enum TrackedRangeStickiness {
910
+ AlwaysGrowsWhenTypingAtEdges = 0,
911
+ NeverGrowsWhenTypingAtEdges = 1,
912
+ GrowsOnlyWhenTypingBefore = 2,
913
+ GrowsOnlyWhenTypingAfter = 3
914
+ }
915
+ export interface ContentDecorationRenderOptions {
916
+ contentText?: string;
917
+ contentIconPath?: UriComponents;
918
+ border?: string;
919
+ borderColor?: string | ThemeColor;
920
+ fontStyle?: string;
921
+ fontWeight?: string;
922
+ textDecoration?: string;
923
+ color?: string | ThemeColor;
924
+ backgroundColor?: string | ThemeColor;
925
+ margin?: string;
926
+ width?: string;
927
+ height?: string;
928
+ }
929
+ export interface ThemeDecorationRenderOptions {
930
+ backgroundColor?: string | ThemeColor;
931
+ outline?: string;
932
+ outlineColor?: string | ThemeColor;
933
+ outlineStyle?: string;
934
+ outlineWidth?: string;
935
+ border?: string;
936
+ borderColor?: string | ThemeColor;
937
+ borderRadius?: string;
938
+ borderSpacing?: string;
939
+ borderStyle?: string;
940
+ borderWidth?: string;
941
+ fontStyle?: string;
942
+ fontWeight?: string;
943
+ textDecoration?: string;
944
+ cursor?: string;
945
+ color?: string | ThemeColor;
946
+ opacity?: string;
947
+ letterSpacing?: string;
948
+ gutterIconPath?: UriComponents;
949
+ gutterIconSize?: string;
950
+ overviewRulerColor?: string | ThemeColor;
951
+ before?: ContentDecorationRenderOptions;
952
+ after?: ContentDecorationRenderOptions;
953
+ }
954
+ export interface DecorationRenderOptions extends ThemeDecorationRenderOptions {
955
+ isWholeLine?: boolean;
956
+ rangeBehavior?: TrackedRangeStickiness;
957
+ overviewRulerLane?: OverviewRulerLane;
958
+ light?: ThemeDecorationRenderOptions;
959
+ dark?: ThemeDecorationRenderOptions;
960
+ }
961
+ export interface ThemeDecorationInstanceRenderOptions {
962
+ before?: ContentDecorationRenderOptions;
963
+ after?: ContentDecorationRenderOptions;
964
+ }
965
+ export interface DecorationInstanceRenderOptions extends ThemeDecorationInstanceRenderOptions {
966
+ light?: ThemeDecorationInstanceRenderOptions;
967
+ dark?: ThemeDecorationInstanceRenderOptions;
968
+ }
969
+ export interface DecorationOptions {
970
+ range: Range;
971
+ hoverMessage?: MarkdownString | MarkdownString[];
972
+ renderOptions?: DecorationInstanceRenderOptions;
973
+ }
974
+ export interface TextEditorsMain {
975
+ $tryShowTextDocument(uri: UriComponents, options?: TextDocumentShowOptions): Promise<void>;
976
+ $registerTextEditorDecorationType(key: string, options: DecorationRenderOptions): void;
977
+ $removeTextEditorDecorationType(key: string): void;
978
+ $tryHideEditor(id: string): Promise<void>;
979
+ $trySetOptions(id: string, options: TextEditorConfigurationUpdate): Promise<void>;
980
+ $trySetDecorations(id: string, key: string, ranges: DecorationOptions[]): Promise<void>;
981
+ $trySetDecorationsFast(id: string, key: string, ranges: number[]): Promise<void>;
982
+ $tryRevealRange(id: string, range: Range, revealType: TextEditorRevealType): Promise<void>;
983
+ $trySetSelections(id: string, selections: Selection[]): Promise<void>;
984
+ $tryApplyEdits(id: string, modelVersionId: number, edits: SingleEditOperation[], opts: ApplyEditsOptions): Promise<boolean>;
985
+ $tryApplyWorkspaceEdit(workspaceEditDto: WorkspaceEditDto, metadata?: WorkspaceEditMetadataDto): Promise<boolean>;
986
+ $tryInsertSnippet(id: string, template: string, selections: Range[], opts: UndoStopOptions): Promise<boolean>;
987
+ $save(uri: UriComponents): PromiseLike<UriComponents | undefined>;
988
+ $saveAs(uri: UriComponents): PromiseLike<UriComponents | undefined>;
989
+ $saveAll(includeUntitled?: boolean): Promise<boolean>;
990
+ }
991
+ export interface ModelAddedData {
992
+ uri: UriComponents;
993
+ versionId: number;
994
+ lines: string[];
995
+ languageId?: string;
996
+ EOL: string;
997
+ modeId: string;
998
+ isDirty: boolean;
999
+ }
1000
+ export interface TextEditorAddData {
1001
+ id: string;
1002
+ documentUri: UriComponents;
1003
+ options: TextEditorConfiguration;
1004
+ selections: Selection[];
1005
+ visibleRanges: Range[];
1006
+ editorPosition?: EditorPosition;
1007
+ }
1008
+ export interface EditorsAndDocumentsDelta {
1009
+ removedDocuments?: UriComponents[];
1010
+ addedDocuments?: ModelAddedData[];
1011
+ removedEditors?: string[];
1012
+ addedEditors?: TextEditorAddData[];
1013
+ /**
1014
+ * undefined means no changes
1015
+ * null means no active
1016
+ * string means id of active
1017
+ */
1018
+ newActiveEditor?: string | null;
1019
+ }
1020
+ export interface EditorsAndDocumentsExt {
1021
+ $acceptEditorsAndDocumentsDelta(delta: EditorsAndDocumentsDelta): void;
1022
+ }
1023
+ export interface ModelContentChange {
1024
+ readonly range: Range;
1025
+ readonly rangeOffset: number;
1026
+ readonly rangeLength: number;
1027
+ readonly text: string;
1028
+ }
1029
+ export interface ModelChangedEvent {
1030
+ readonly changes: ModelContentChange[];
1031
+ readonly eol: string;
1032
+ readonly versionId: number;
1033
+ readonly reason: TextDocumentChangeReason | undefined;
1034
+ }
1035
+ export interface DocumentsExt {
1036
+ $acceptModelModeChanged(startUrl: UriComponents, oldModeId: string, newModeId: string): void;
1037
+ $acceptModelSaved(strUrl: UriComponents): void;
1038
+ $acceptModelWillSave(strUrl: UriComponents, reason: theia.TextDocumentSaveReason, saveTimeout: number): Promise<SingleEditOperation[]>;
1039
+ $acceptDirtyStateChanged(strUrl: UriComponents, isDirty: boolean): void;
1040
+ $acceptModelChanged(strUrl: UriComponents, e: ModelChangedEvent, isDirty: boolean): void;
1041
+ }
1042
+ export interface DocumentsMain {
1043
+ $tryCreateDocument(options?: {
1044
+ language?: string;
1045
+ content?: string;
1046
+ }): Promise<UriComponents>;
1047
+ $tryShowDocument(uri: UriComponents, options?: TextDocumentShowOptions): Promise<void>;
1048
+ $tryOpenDocument(uri: UriComponents): Promise<boolean>;
1049
+ $trySaveDocument(uri: UriComponents): Promise<boolean>;
1050
+ $tryCloseDocument(uri: UriComponents): Promise<boolean>;
1051
+ }
1052
+ export interface EnvMain {
1053
+ $getEnvVariable(envVarName: string): Promise<string | undefined>;
1054
+ $getClientOperatingSystem(): Promise<theia.OperatingSystem>;
1055
+ }
1056
+ export interface PreferenceRegistryMain {
1057
+ $updateConfigurationOption(target: boolean | ConfigurationTarget | undefined, key: string, value: any, resource?: string, withLanguageOverride?: boolean): PromiseLike<void>;
1058
+ $removeConfigurationOption(target: boolean | ConfigurationTarget | undefined, key: string, resource?: string, withLanguageOverride?: boolean): PromiseLike<void>;
1059
+ }
1060
+ export interface PreferenceChangeExt {
1061
+ preferenceName: string;
1062
+ newValue: any;
1063
+ /**
1064
+ * The URI the folder affected, or undefined if User scope.
1065
+ */
1066
+ scope?: string;
1067
+ }
1068
+ export interface TerminalOptionsExt {
1069
+ attributes?: {
1070
+ [key: string]: string;
1071
+ };
1072
+ }
1073
+ export interface PreferenceRegistryExt {
1074
+ $acceptConfigurationChanged(data: {
1075
+ [key: string]: any;
1076
+ }, eventData: PreferenceChangeExt[]): void;
1077
+ }
1078
+ export interface OutputChannelRegistryMain {
1079
+ $append(channelName: string, value: string, pluginInfo: PluginInfo): PromiseLike<void>;
1080
+ $clear(channelName: string): PromiseLike<void>;
1081
+ $dispose(channelName: string): PromiseLike<void>;
1082
+ $reveal(channelName: string, preserveFocus: boolean): PromiseLike<void>;
1083
+ $close(channelName: string): PromiseLike<void>;
1084
+ }
1085
+ export declare type CharacterPair = [string, string];
1086
+ export interface CommentRule {
1087
+ lineComment?: string;
1088
+ blockComment?: CharacterPair;
1089
+ }
1090
+ export interface SerializedRegExp {
1091
+ pattern: string;
1092
+ flags?: string;
1093
+ }
1094
+ export interface SerializedIndentationRule {
1095
+ decreaseIndentPattern?: SerializedRegExp;
1096
+ increaseIndentPattern?: SerializedRegExp;
1097
+ indentNextLinePattern?: SerializedRegExp;
1098
+ unIndentedLinePattern?: SerializedRegExp;
1099
+ }
1100
+ export interface SerializedOnEnterRule {
1101
+ beforeText: SerializedRegExp;
1102
+ afterText?: SerializedRegExp;
1103
+ previousLineText?: SerializedRegExp;
1104
+ action: SerializedEnterAction;
1105
+ }
1106
+ export interface SerializedEnterAction {
1107
+ indentAction: IndentAction;
1108
+ outdentCurrentLine?: boolean;
1109
+ appendText?: string;
1110
+ removeText?: number;
1111
+ }
1112
+ export interface SerializedAutoClosingPair {
1113
+ open: string;
1114
+ close: string;
1115
+ notIn?: string[];
1116
+ }
1117
+ export interface SerializedLanguageConfiguration {
1118
+ comments?: CommentRule;
1119
+ brackets?: CharacterPair[];
1120
+ wordPattern?: SerializedRegExp;
1121
+ indentationRules?: SerializedIndentationRule;
1122
+ onEnterRules?: SerializedOnEnterRule[];
1123
+ autoClosingPairs?: SerializedAutoClosingPair[];
1124
+ }
1125
+ export interface CodeActionDto {
1126
+ title: string;
1127
+ edit?: WorkspaceEditDto;
1128
+ diagnostics?: MarkerData[];
1129
+ command?: Command;
1130
+ kind?: string;
1131
+ isPreferred?: boolean;
1132
+ disabled?: string;
1133
+ }
1134
+ export interface WorkspaceEditEntryMetadataDto {
1135
+ needsConfirmation: boolean;
1136
+ label: string;
1137
+ description?: string;
1138
+ iconPath?: {
1139
+ id: string;
1140
+ } | {
1141
+ light: UriComponents;
1142
+ dark: UriComponents;
1143
+ } | ThemeIcon;
1144
+ }
1145
+ export interface WorkspaceFileEditDto {
1146
+ oldResource?: UriComponents;
1147
+ newResource?: UriComponents;
1148
+ options?: FileOperationOptions;
1149
+ metadata?: WorkspaceEditEntryMetadataDto;
1150
+ }
1151
+ export interface WorkspaceTextEditDto {
1152
+ resource: UriComponents;
1153
+ modelVersionId?: number;
1154
+ textEdit: TextEdit & {
1155
+ insertAsSnippet?: boolean;
1156
+ };
1157
+ metadata?: WorkspaceEditEntryMetadataDto;
1158
+ }
1159
+ export declare namespace WorkspaceTextEditDto {
1160
+ function is(arg: WorkspaceTextEditDto | WorkspaceFileEditDto): arg is WorkspaceTextEditDto;
1161
+ }
1162
+ export interface WorkspaceEditMetadataDto {
1163
+ isRefactoring?: boolean;
1164
+ }
1165
+ export declare type CellEditOperationDto = {
1166
+ editType: notebookCommon.CellEditType.Metadata;
1167
+ index: number;
1168
+ metadata: Record<string, unknown>;
1169
+ } | {
1170
+ editType: notebookCommon.CellEditType.DocumentMetadata;
1171
+ metadata: Record<string, unknown>;
1172
+ } | {
1173
+ editType: notebookCommon.CellEditType.Replace;
1174
+ index: number;
1175
+ count: number;
1176
+ cells: NotebookCellDataDto[];
1177
+ };
1178
+ export interface NotebookWorkspaceEditMetadataDto {
1179
+ needsConfirmation: boolean;
1180
+ label: string;
1181
+ description?: string;
1182
+ }
1183
+ export interface WorkspaceNotebookCellEditDto {
1184
+ metadata?: NotebookWorkspaceEditMetadataDto;
1185
+ resource: UriComponents;
1186
+ cellEdit: CellEditOperationDto;
1187
+ }
1188
+ export interface WorkspaceEditDto {
1189
+ edits: Array<WorkspaceTextEditDto | WorkspaceFileEditDto | WorkspaceNotebookCellEditDto>;
1190
+ }
1191
+ export interface CommandProperties {
1192
+ command: string;
1193
+ args?: string[];
1194
+ options?: {
1195
+ cwd?: string;
1196
+ [key: string]: any;
1197
+ };
1198
+ }
1199
+ export declare type TaskGroupKind = 'build' | 'test' | 'rebuild' | 'clean';
1200
+ export interface TaskDto {
1201
+ type: string;
1202
+ taskType?: 'shell' | 'process' | 'customExecution';
1203
+ executionId?: string;
1204
+ label: string;
1205
+ source?: string;
1206
+ scope: string | number;
1207
+ problemMatcher?: any;
1208
+ group?: {
1209
+ kind: TaskGroupKind;
1210
+ isDefault: boolean;
1211
+ };
1212
+ detail?: string;
1213
+ presentation?: TaskPresentationOptionsDTO;
1214
+ runOptions?: RunOptionsDTO;
1215
+ [key: string]: any;
1216
+ }
1217
+ export interface RunOptionsDTO {
1218
+ reevaluateOnRerun?: boolean;
1219
+ }
1220
+ export interface TaskPresentationOptionsDTO {
1221
+ reveal?: number;
1222
+ focus?: boolean;
1223
+ echo?: boolean;
1224
+ panel?: number;
1225
+ showReuseMessage?: boolean;
1226
+ clear?: boolean;
1227
+ close?: boolean;
1228
+ }
1229
+ export interface TaskExecutionDto {
1230
+ id: number;
1231
+ task: TaskDto;
1232
+ }
1233
+ export interface ProcessTaskDto extends TaskDto, CommandProperties {
1234
+ windows?: CommandProperties;
1235
+ }
1236
+ export interface PluginInfo {
1237
+ id: string;
1238
+ name: string;
1239
+ displayName?: string;
1240
+ }
1241
+ export interface LanguageStatus {
1242
+ readonly id: string;
1243
+ readonly name: string;
1244
+ readonly selector: SerializedDocumentFilter[];
1245
+ readonly severity: Severity;
1246
+ readonly label: string;
1247
+ readonly detail: string;
1248
+ readonly busy: boolean;
1249
+ readonly source: string;
1250
+ readonly command: Command | undefined;
1251
+ readonly accessibilityInfo: theia.AccessibilityInformation | undefined;
1252
+ }
1253
+ export interface LanguagesExt {
1254
+ $provideCompletionItems(handle: number, resource: UriComponents, position: Position, context: CompletionContext, token: CancellationToken): Promise<CompletionResultDto | undefined>;
1255
+ $resolveCompletionItem(handle: number, chainedId: ChainedCacheId, token: CancellationToken): Promise<Completion | undefined>;
1256
+ $releaseCompletionItems(handle: number, id: number): void;
1257
+ $provideImplementation(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<Definition | undefined>;
1258
+ $provideTypeDefinition(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<Definition | undefined>;
1259
+ $provideDefinition(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<Definition | undefined>;
1260
+ $provideDeclaration(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<Definition | undefined>;
1261
+ $provideReferences(handle: number, resource: UriComponents, position: Position, context: ReferenceContext, token: CancellationToken): Promise<Location[] | undefined>;
1262
+ $provideSignatureHelp(handle: number, resource: UriComponents, position: Position, context: SignatureHelpContext, token: CancellationToken): Promise<SignatureHelp | undefined>;
1263
+ $releaseSignatureHelp(handle: number, id: number): void;
1264
+ $provideHover(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<Hover | undefined>;
1265
+ $provideEvaluatableExpression(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<EvaluatableExpression | undefined>;
1266
+ $provideInlineValues(handle: number, resource: UriComponents, range: Range, context: InlineValueContext, token: CancellationToken): Promise<InlineValue[] | undefined>;
1267
+ $provideDocumentHighlights(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<DocumentHighlight[] | undefined>;
1268
+ $provideDocumentFormattingEdits(handle: number, resource: UriComponents, options: FormattingOptions, token: CancellationToken): Promise<TextEdit[] | undefined>;
1269
+ $provideDocumentRangeFormattingEdits(handle: number, resource: UriComponents, range: Range, options: FormattingOptions, token: CancellationToken): Promise<TextEdit[] | undefined>;
1270
+ $provideOnTypeFormattingEdits(handle: number, resource: UriComponents, position: Position, ch: string, options: FormattingOptions, token: CancellationToken): Promise<TextEdit[] | undefined>;
1271
+ $provideDocumentDropEdits(handle: number, resource: UriComponents, position: Position, dataTransfer: DataTransferDTO, token: CancellationToken): Promise<DocumentDropEdit | undefined>;
1272
+ $provideDocumentLinks(handle: number, resource: UriComponents, token: CancellationToken): Promise<DocumentLink[] | undefined>;
1273
+ $resolveDocumentLink(handle: number, link: DocumentLink, token: CancellationToken): Promise<DocumentLink | undefined>;
1274
+ $releaseDocumentLinks(handle: number, ids: number[]): void;
1275
+ $provideCodeLenses(handle: number, resource: UriComponents, token: CancellationToken): Promise<CodeLensSymbol[] | undefined>;
1276
+ $resolveCodeLens(handle: number, resource: UriComponents, symbol: CodeLensSymbol, token: CancellationToken): Promise<CodeLensSymbol | undefined>;
1277
+ $releaseCodeLenses(handle: number, ids: number[]): void;
1278
+ $provideCodeActions(handle: number, resource: UriComponents, rangeOrSelection: Range | Selection, context: CodeActionContext, token: CancellationToken): Promise<CodeAction[] | undefined>;
1279
+ $releaseCodeActions(handle: number, cacheIds: number[]): void;
1280
+ $resolveCodeAction(handle: number, cacheId: number, token: CancellationToken): Promise<WorkspaceEditDto | undefined>;
1281
+ $provideDocumentSymbols(handle: number, resource: UriComponents, token: CancellationToken): Promise<DocumentSymbol[] | undefined>;
1282
+ $provideWorkspaceSymbols(handle: number, query: string, token: CancellationToken): PromiseLike<SymbolInformation[]>;
1283
+ $resolveWorkspaceSymbol(handle: number, symbol: SymbolInformation, token: CancellationToken): PromiseLike<SymbolInformation | undefined>;
1284
+ $provideFoldingRange(handle: number, resource: UriComponents, context: FoldingContext, token: CancellationToken): PromiseLike<FoldingRange[] | undefined>;
1285
+ $provideSelectionRanges(handle: number, resource: UriComponents, positions: Position[], token: CancellationToken): PromiseLike<SelectionRange[][]>;
1286
+ $provideDocumentColors(handle: number, resource: UriComponents, token: CancellationToken): PromiseLike<RawColorInfo[]>;
1287
+ $provideColorPresentations(handle: number, resource: UriComponents, colorInfo: RawColorInfo, token: CancellationToken): PromiseLike<ColorPresentation[]>;
1288
+ $provideInlayHints(handle: number, resource: UriComponents, range: Range, token: CancellationToken): Promise<InlayHintsDto | undefined>;
1289
+ $resolveInlayHint(handle: number, id: ChainedCacheId, token: CancellationToken): Promise<InlayHintDto | undefined>;
1290
+ $releaseInlayHints(handle: number, id: number): void;
1291
+ $provideRenameEdits(handle: number, resource: UriComponents, position: Position, newName: string, token: CancellationToken): PromiseLike<WorkspaceEditDto | undefined>;
1292
+ $resolveRenameLocation(handle: number, resource: UriComponents, position: Position, token: CancellationToken): PromiseLike<RenameLocation | undefined>;
1293
+ $provideDocumentSemanticTokens(handle: number, resource: UriComponents, previousResultId: number, token: CancellationToken): Promise<BinaryBuffer | null>;
1294
+ $releaseDocumentSemanticTokens(handle: number, semanticColoringResultId: number): void;
1295
+ $provideDocumentRangeSemanticTokens(handle: number, resource: UriComponents, range: Range, token: CancellationToken): Promise<BinaryBuffer | null>;
1296
+ $provideRootDefinition(handle: number, resource: UriComponents, location: Position, token: CancellationToken): Promise<CallHierarchyItem[] | undefined>;
1297
+ $provideCallers(handle: number, definition: CallHierarchyItem, token: CancellationToken): Promise<CallHierarchyIncomingCall[] | undefined>;
1298
+ $provideCallees(handle: number, definition: CallHierarchyItem, token: CancellationToken): Promise<CallHierarchyOutgoingCall[] | undefined>;
1299
+ $provideLinkedEditingRanges(handle: number, resource: UriComponents, position: Position, token: CancellationToken): Promise<LinkedEditingRanges | undefined>;
1300
+ $releaseCallHierarchy(handle: number, session?: string): Promise<boolean>;
1301
+ $prepareTypeHierarchy(handle: number, resource: UriComponents, location: Position, token: theia.CancellationToken): Promise<TypeHierarchyItem[] | undefined>;
1302
+ $provideSuperTypes(handle: number, sessionId: string, itemId: string, token: theia.CancellationToken): Promise<TypeHierarchyItem[] | undefined>;
1303
+ $provideSubTypes(handle: number, sessionId: string, itemId: string, token: theia.CancellationToken): Promise<TypeHierarchyItem[] | undefined>;
1304
+ $releaseTypeHierarchy(handle: number, session?: string): Promise<boolean>;
1305
+ $provideInlineCompletions(handle: number, resource: UriComponents, position: Position, context: InlineCompletionContext, token: CancellationToken): Promise<IdentifiableInlineCompletions | undefined>;
1306
+ $freeInlineCompletionsList(handle: number, pid: number): void;
1307
+ }
1308
+ export declare const LanguagesMainFactory: unique symbol;
1309
+ export interface LanguagesMainFactory {
1310
+ (proxy: RPCProtocol): LanguagesMain;
1311
+ }
1312
+ export declare const OutputChannelRegistryFactory: unique symbol;
1313
+ export interface OutputChannelRegistryFactory {
1314
+ (): OutputChannelRegistryMain;
1315
+ }
1316
+ export interface LanguagesMain {
1317
+ $getLanguages(): Promise<string[]>;
1318
+ $changeLanguage(resource: UriComponents, languageId: string): Promise<void>;
1319
+ $setLanguageConfiguration(handle: number, languageId: string, configuration: SerializedLanguageConfiguration): void;
1320
+ $unregister(handle: number): void;
1321
+ $registerCompletionSupport(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], triggerCharacters: string[], supportsResolveDetails: boolean): void;
1322
+ $registerImplementationProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1323
+ $registerTypeDefinitionProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1324
+ $registerDefinitionProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1325
+ $registerDeclarationProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1326
+ $registerReferenceProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1327
+ $registerSignatureHelpProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], metadata: theia.SignatureHelpProviderMetadata): void;
1328
+ $registerHoverProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1329
+ $registerEvaluatableExpressionProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1330
+ $registerInlineValuesProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1331
+ $emitInlineValuesEvent(eventHandle: number, event?: any): void;
1332
+ $registerDocumentHighlightProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1333
+ $registerQuickFixProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], codeActionKinds?: string[], documentation?: CodeActionProviderDocumentation): void;
1334
+ $clearDiagnostics(id: string): void;
1335
+ $changeDiagnostics(id: string, delta: [string, MarkerData[]][]): void;
1336
+ $registerDocumentFormattingSupport(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1337
+ $registerDocumentDropEditProvider(handle: number, selector: SerializedDocumentFilter[], metadata?: DocumentDropEditProviderMetadata): void;
1338
+ $registerRangeFormattingSupport(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1339
+ $registerOnTypeFormattingProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], autoFormatTriggerCharacters: string[]): void;
1340
+ $registerDocumentLinkProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1341
+ $registerCodeLensSupport(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], eventHandle?: number): void;
1342
+ $emitCodeLensEvent(eventHandle: number, event?: any): void;
1343
+ $registerOutlineSupport(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], displayName?: string): void;
1344
+ $registerWorkspaceSymbolProvider(handle: number, pluginInfo: PluginInfo): void;
1345
+ $registerFoldingRangeProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], eventHandle?: number): void;
1346
+ $emitFoldingRangeEvent(handle: number, event?: any): void;
1347
+ $registerSelectionRangeProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1348
+ $registerDocumentColorProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[]): void;
1349
+ $registerInlayHintsProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], displayName?: string, eventHandle?: number): void;
1350
+ $emitInlayHintsEvent(eventHandle: number, event?: any): void;
1351
+ $registerRenameProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], supportsResolveInitialValues: boolean): void;
1352
+ $registerDocumentSemanticTokensProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], legend: theia.SemanticTokensLegend, eventHandle: number | undefined): void;
1353
+ $emitDocumentSemanticTokensEvent(eventHandle: number): void;
1354
+ $registerDocumentRangeSemanticTokensProvider(handle: number, pluginInfo: PluginInfo, selector: SerializedDocumentFilter[], legend: theia.SemanticTokensLegend): void;
1355
+ $registerCallHierarchyProvider(handle: number, selector: SerializedDocumentFilter[]): void;
1356
+ $registerLinkedEditingRangeProvider(handle: number, selector: SerializedDocumentFilter[]): void;
1357
+ $registerTypeHierarchyProvider(handle: number, selector: SerializedDocumentFilter[]): void;
1358
+ $setLanguageStatus(handle: number, status: LanguageStatus): void;
1359
+ $removeLanguageStatus(handle: number): void;
1360
+ $registerInlineCompletionsSupport(handle: number, selector: SerializedDocumentFilter[]): void;
1361
+ }
1362
+ export interface WebviewInitData {
1363
+ webviewResourceRoot: string;
1364
+ webviewCspSource: string;
1365
+ }
1366
+ export interface WebviewPanelViewState {
1367
+ readonly active: boolean;
1368
+ readonly visible: boolean;
1369
+ readonly position: number;
1370
+ }
1371
+ export interface WebviewsExt {
1372
+ $onMessage(handle: string, message: any): void;
1373
+ $onDidChangeWebviewPanelViewState(handle: string, newState: WebviewPanelViewState): void;
1374
+ $onDidDisposeWebviewPanel(handle: string): PromiseLike<void>;
1375
+ $deserializeWebviewPanel(newWebviewHandle: string, viewType: string, title: string, state: any, viewState: WebviewPanelViewState, options: theia.WebviewOptions & theia.WebviewPanelOptions): PromiseLike<void>;
1376
+ }
1377
+ export interface WebviewsMain {
1378
+ $createWebviewPanel(handle: string, viewType: string, title: string, showOptions: theia.WebviewPanelShowOptions, options: theia.WebviewPanelOptions & theia.WebviewOptions): void;
1379
+ $disposeWebview(handle: string): void;
1380
+ $reveal(handle: string, showOptions: theia.WebviewPanelShowOptions): void;
1381
+ $setTitle(handle: string, value: string): void;
1382
+ $setIconPath(handle: string, value: IconUrl | undefined): void;
1383
+ $setBadge(handle: string, badge: theia.ViewBadge | undefined): void;
1384
+ $setHtml(handle: string, value: string): void;
1385
+ $setOptions(handle: string, options: theia.WebviewOptions): void;
1386
+ $postMessage(handle: string, value: any): Thenable<boolean>;
1387
+ $registerSerializer(viewType: string): void;
1388
+ $unregisterSerializer(viewType: string): void;
1389
+ }
1390
+ export interface WebviewViewsExt {
1391
+ $resolveWebviewView(handle: string, viewType: string, title: string | undefined, state: any, cancellation: CancellationToken): Promise<void>;
1392
+ $onDidChangeWebviewViewVisibility(handle: string, visible: boolean): void;
1393
+ $disposeWebviewView(handle: string): void;
1394
+ }
1395
+ export interface WebviewViewsMain extends Disposable {
1396
+ $registerWebviewViewProvider(viewType: string, options: {
1397
+ retainContextWhenHidden?: boolean;
1398
+ serializeBuffersForPostMessage: boolean;
1399
+ }): void;
1400
+ $unregisterWebviewViewProvider(viewType: string): void;
1401
+ $setWebviewViewTitle(handle: string, value: string | undefined): void;
1402
+ $setWebviewViewDescription(handle: string, value: string | undefined): void;
1403
+ $setBadge(handle: string, badge: theia.ViewBadge | undefined): void;
1404
+ $show(handle: string, preserveFocus: boolean): void;
1405
+ }
1406
+ export interface CustomEditorsExt {
1407
+ $resolveWebviewEditor<T>(resource: UriComponents, newWebviewHandle: string, viewType: string, title: string, widgetOpenerOptions: T | undefined, options: theia.WebviewPanelOptions, cancellation: CancellationToken): Promise<void>;
1408
+ $createCustomDocument(resource: UriComponents, viewType: string, openContext: theia.CustomDocumentOpenContext, cancellation: CancellationToken): Promise<{
1409
+ editable: boolean;
1410
+ }>;
1411
+ $disposeCustomDocument(resource: UriComponents, viewType: string): Promise<void>;
1412
+ $undo(resource: UriComponents, viewType: string, editId: number, isDirty: boolean): Promise<void>;
1413
+ $redo(resource: UriComponents, viewType: string, editId: number, isDirty: boolean): Promise<void>;
1414
+ $revert(resource: UriComponents, viewType: string, cancellation: CancellationToken): Promise<void>;
1415
+ $disposeEdits(resourceComponents: UriComponents, viewType: string, editIds: number[]): void;
1416
+ $onSave(resource: UriComponents, viewType: string, cancellation: CancellationToken): Promise<void>;
1417
+ $onSaveAs(resource: UriComponents, viewType: string, targetResource: UriComponents, cancellation: CancellationToken): Promise<void>;
1418
+ $onMoveCustomEditor(handle: string, newResource: UriComponents, viewType: string): Promise<void>;
1419
+ }
1420
+ export interface CustomTextEditorCapabilities {
1421
+ readonly supportsMove?: boolean;
1422
+ }
1423
+ export interface CustomEditorsMain {
1424
+ $registerTextEditorProvider(viewType: string, options: theia.WebviewPanelOptions, capabilities: CustomTextEditorCapabilities): void;
1425
+ $registerCustomEditorProvider(viewType: string, options: theia.WebviewPanelOptions, supportsMultipleEditorsPerDocument: boolean): void;
1426
+ $unregisterEditorProvider(viewType: string): void;
1427
+ $createCustomEditorPanel<T>(handle: string, title: string, widgetOpenerOptions: T | undefined, options: theia.WebviewPanelOptions & theia.WebviewOptions): Promise<void>;
1428
+ $onDidEdit(resource: UriComponents, viewType: string, editId: number, label: string | undefined): void;
1429
+ $onContentChange(resource: UriComponents, viewType: string): void;
1430
+ }
1431
+ export interface StorageMain {
1432
+ $set(key: string, value: KeysToAnyValues, isGlobal: boolean): Promise<boolean>;
1433
+ $get(key: string, isGlobal: boolean): Promise<KeysToAnyValues>;
1434
+ $getAll(isGlobal: boolean): Promise<KeysToKeysToAnyValue>;
1435
+ }
1436
+ export interface StorageExt {
1437
+ $updatePluginsWorkspaceData(data: KeysToKeysToAnyValue): void;
1438
+ }
1439
+ /**
1440
+ * A DebugConfigurationProviderTriggerKind specifies when the `provideDebugConfigurations` method of a `DebugConfigurationProvider` should be called.
1441
+ * Currently there are two situations:
1442
+ * (1) providing debug configurations to populate a newly created `launch.json`
1443
+ * (2) providing dynamically generated configurations when the user asks for them through the UI (e.g. via the "Select and Start Debugging" command).
1444
+ * A trigger kind is used when registering a `DebugConfigurationProvider` with {@link debug.registerDebugConfigurationProvider}.
1445
+ */
1446
+ export declare enum DebugConfigurationProviderTriggerKind {
1447
+ /**
1448
+ * `DebugConfigurationProvider.provideDebugConfigurations` is called to provide the initial debug
1449
+ * configurations for a newly created launch.json.
1450
+ */
1451
+ Initial = 1,
1452
+ /**
1453
+ * `DebugConfigurationProvider.provideDebugConfigurations` is called to provide dynamically generated debug configurations when the user asks for them through the UI
1454
+ * (e.g. via the "Select and Start Debugging" command).
1455
+ */
1456
+ Dynamic = 2
1457
+ }
1458
+ export interface DebugConfigurationProvider {
1459
+ readonly handle: number;
1460
+ readonly type: string;
1461
+ readonly triggerKind: DebugConfigurationProviderTriggerKind;
1462
+ provideDebugConfigurations?(folder: string | undefined): Promise<theia.DebugConfiguration[]>;
1463
+ resolveDebugConfiguration?(folder: string | undefined, debugConfiguration: theia.DebugConfiguration): Promise<theia.DebugConfiguration | undefined | null>;
1464
+ resolveDebugConfigurationWithSubstitutedVariables?(folder: string | undefined, debugConfiguration: theia.DebugConfiguration): Promise<theia.DebugConfiguration | undefined | null>;
1465
+ }
1466
+ export interface DebugConfigurationProviderDescriptor {
1467
+ readonly handle: number;
1468
+ readonly type: string;
1469
+ readonly trigger: DebugConfigurationProviderTriggerKind;
1470
+ readonly provideDebugConfiguration: boolean;
1471
+ readonly resolveDebugConfigurations: boolean;
1472
+ readonly resolveDebugConfigurationWithSubstitutedVariables: boolean;
1473
+ }
1474
+ export interface DebugExt {
1475
+ $onSessionCustomEvent(sessionId: string, event: string, body?: any): void;
1476
+ $breakpointsDidChange(added: Breakpoint[], removed: string[], changed: Breakpoint[]): void;
1477
+ $sessionDidCreate(sessionId: string): void;
1478
+ $sessionDidStart(sessionId: string): void;
1479
+ $sessionDidDestroy(sessionId: string): void;
1480
+ $sessionDidChange(sessionId: string | undefined): void;
1481
+ $provideDebugConfigurationsByHandle(handle: number, workspaceFolder: string | undefined): Promise<theia.DebugConfiguration[]>;
1482
+ $resolveDebugConfigurationByHandle(handle: number, workspaceFolder: string | undefined, debugConfiguration: theia.DebugConfiguration): Promise<theia.DebugConfiguration | undefined | null>;
1483
+ $resolveDebugConfigurationWithSubstitutedVariablesByHandle(handle: number, workspaceFolder: string | undefined, debugConfiguration: DebugConfiguration): Promise<theia.DebugConfiguration | undefined | null>;
1484
+ $createDebugSession(debugConfiguration: DebugConfiguration, workspaceFolder: string | undefined): Promise<string>;
1485
+ $terminateDebugSession(sessionId: string): Promise<void>;
1486
+ $getTerminalCreationOptions(debugType: string): Promise<TerminalOptionsExt | undefined>;
1487
+ }
1488
+ export interface DebugMain {
1489
+ $appendToDebugConsole(value: string): Promise<void>;
1490
+ $appendLineToDebugConsole(value: string): Promise<void>;
1491
+ $registerDebuggerContribution(description: DebuggerDescription): Promise<void>;
1492
+ $unregisterDebuggerConfiguration(debugType: string): Promise<void>;
1493
+ $registerDebugConfigurationProvider(description: DebugConfigurationProviderDescriptor): void;
1494
+ $unregisterDebugConfigurationProvider(handle: number): Promise<void>;
1495
+ $addBreakpoints(breakpoints: Breakpoint[]): Promise<void>;
1496
+ $removeBreakpoints(breakpoints: string[]): Promise<void>;
1497
+ $startDebugging(folder: theia.WorkspaceFolder | undefined, nameOrConfiguration: string | theia.DebugConfiguration, options: DebugSessionOptions): Promise<boolean>;
1498
+ $stopDebugging(sessionId?: string): Promise<void>;
1499
+ $customRequest(sessionId: string, command: string, args?: any): Promise<DebugProtocol.Response>;
1500
+ $getDebugProtocolBreakpoint(sessionId: string, breakpointId: string): Promise<theia.DebugProtocolBreakpoint | undefined>;
1501
+ }
1502
+ export interface FileSystemExt {
1503
+ $acceptProviderInfos(scheme: string, capabilities?: files.FileSystemProviderCapabilities): void;
1504
+ $stat(handle: number, resource: UriComponents): Promise<files.Stat>;
1505
+ $readdir(handle: number, resource: UriComponents): Promise<[string, files.FileType][]>;
1506
+ $readFile(handle: number, resource: UriComponents): Promise<BinaryBuffer>;
1507
+ $writeFile(handle: number, resource: UriComponents, content: BinaryBuffer, opts: files.FileWriteOptions): Promise<void>;
1508
+ $rename(handle: number, resource: UriComponents, target: UriComponents, opts: files.FileOverwriteOptions): Promise<void>;
1509
+ $copy(handle: number, resource: UriComponents, target: UriComponents, opts: files.FileOverwriteOptions): Promise<void>;
1510
+ $mkdir(handle: number, resource: UriComponents): Promise<void>;
1511
+ $delete(handle: number, resource: UriComponents, opts: files.FileDeleteOptions): Promise<void>;
1512
+ $watch(handle: number, session: number, resource: UriComponents, opts: files.WatchOptions): void;
1513
+ $unwatch(handle: number, session: number): void;
1514
+ $open(handle: number, resource: UriComponents, opts: files.FileOpenOptions): Promise<number>;
1515
+ $close(handle: number, fd: number): Promise<void>;
1516
+ $read(handle: number, fd: number, pos: number, length: number): Promise<BinaryBuffer>;
1517
+ $write(handle: number, fd: number, pos: number, data: BinaryBuffer): Promise<number>;
1518
+ }
1519
+ export interface IFileChangeDto {
1520
+ resource: UriComponents;
1521
+ type: files.FileChangeType;
1522
+ }
1523
+ export interface FileSystemMain {
1524
+ $registerFileSystemProvider(handle: number, scheme: string, capabilities: files.FileSystemProviderCapabilities): void;
1525
+ $unregisterProvider(handle: number): void;
1526
+ $onFileSystemChange(handle: number, resource: IFileChangeDto[]): void;
1527
+ $stat(uri: UriComponents): Promise<files.Stat>;
1528
+ $readdir(resource: UriComponents): Promise<[string, files.FileType][]>;
1529
+ $readFile(resource: UriComponents): Promise<BinaryBuffer>;
1530
+ $writeFile(resource: UriComponents, content: BinaryBuffer): Promise<void>;
1531
+ $rename(resource: UriComponents, target: UriComponents, opts: files.FileOverwriteOptions): Promise<void>;
1532
+ $copy(resource: UriComponents, target: UriComponents, opts: files.FileOverwriteOptions): Promise<void>;
1533
+ $mkdir(resource: UriComponents): Promise<void>;
1534
+ $delete(resource: UriComponents, opts: files.FileDeleteOptions): Promise<void>;
1535
+ }
1536
+ export interface FileSystemEvents {
1537
+ created: UriComponents[];
1538
+ changed: UriComponents[];
1539
+ deleted: UriComponents[];
1540
+ }
1541
+ export interface ExtHostFileSystemEventServiceShape {
1542
+ $onFileEvent(events: FileSystemEvents): void;
1543
+ $onWillRunFileOperation(operation: files.FileOperation, target: UriComponents, source: UriComponents | undefined, timeout: number, token: CancellationToken): Promise<any>;
1544
+ $onDidRunFileOperation(operation: files.FileOperation, target: UriComponents, source: UriComponents | undefined): void;
1545
+ }
1546
+ export interface ClipboardMain {
1547
+ $readText(): Promise<string>;
1548
+ $writeText(value: string): Promise<void>;
1549
+ }
1550
+ export interface CommentsExt {
1551
+ $createCommentThreadTemplate(commentControllerHandle: number, uriComponents: UriComponents, range: Range): void;
1552
+ $updateCommentThreadTemplate(commentControllerHandle: number, threadHandle: number, range: Range): Promise<void>;
1553
+ $deleteCommentThread(commentControllerHandle: number, commentThreadHandle: number): Promise<void>;
1554
+ $provideCommentingRanges(commentControllerHandle: number, uriComponents: UriComponents, token: CancellationToken): Promise<Range[] | undefined>;
1555
+ }
1556
+ export interface CommentProviderFeatures {
1557
+ options?: CommentOptions;
1558
+ }
1559
+ export declare type CommentThreadChanges = Partial<{
1560
+ range: Range;
1561
+ label: string;
1562
+ contextValue: string;
1563
+ comments: Comment[];
1564
+ collapseState: CommentThreadCollapsibleState;
1565
+ state: CommentThreadState;
1566
+ canReply: boolean;
1567
+ }>;
1568
+ export interface CommentsMain {
1569
+ $registerCommentController(handle: number, id: string, label: string): void;
1570
+ $unregisterCommentController(handle: number): void;
1571
+ $updateCommentControllerFeatures(handle: number, features: CommentProviderFeatures): void;
1572
+ $createCommentThread(handle: number, commentThreadHandle: number, threadId: string, resource: UriComponents, range: Range, extensionId: string): CommentThread | undefined;
1573
+ $updateCommentThread(handle: number, commentThreadHandle: number, threadId: string, resource: UriComponents, changes: CommentThreadChanges): void;
1574
+ $deleteCommentThread(handle: number, commentThreadHandle: number): void;
1575
+ $onDidCommentThreadsChange(handle: number, event: CommentThreadChangedEvent): void;
1576
+ }
1577
+ export declare const enum TabInputKind {
1578
+ UnknownInput = 0,
1579
+ TextInput = 1,
1580
+ TextDiffInput = 2,
1581
+ TextMergeInput = 3,
1582
+ NotebookInput = 4,
1583
+ NotebookDiffInput = 5,
1584
+ CustomEditorInput = 6,
1585
+ WebviewEditorInput = 7,
1586
+ TerminalEditorInput = 8,
1587
+ InteractiveEditorInput = 9
1588
+ }
1589
+ export interface UnknownInputDto {
1590
+ kind: TabInputKind.UnknownInput;
1591
+ }
1592
+ export interface TextInputDto {
1593
+ kind: TabInputKind.TextInput;
1594
+ uri: UriComponents;
1595
+ }
1596
+ export interface TextDiffInputDto {
1597
+ kind: TabInputKind.TextDiffInput;
1598
+ original: UriComponents;
1599
+ modified: UriComponents;
1600
+ }
1601
+ export interface TextMergeInputDto {
1602
+ kind: TabInputKind.TextMergeInput;
1603
+ base: UriComponents;
1604
+ input1: UriComponents;
1605
+ input2: UriComponents;
1606
+ result: UriComponents;
1607
+ }
1608
+ export interface NotebookInputDto {
1609
+ kind: TabInputKind.NotebookInput;
1610
+ notebookType: string;
1611
+ uri: UriComponents;
1612
+ }
1613
+ export interface NotebookDiffInputDto {
1614
+ kind: TabInputKind.NotebookDiffInput;
1615
+ notebookType: string;
1616
+ original: UriComponents;
1617
+ modified: UriComponents;
1618
+ }
1619
+ export interface CustomInputDto {
1620
+ kind: TabInputKind.CustomEditorInput;
1621
+ viewType: string;
1622
+ uri: UriComponents;
1623
+ }
1624
+ export interface WebviewInputDto {
1625
+ kind: TabInputKind.WebviewEditorInput;
1626
+ viewType: string;
1627
+ }
1628
+ export interface InteractiveEditorInputDto {
1629
+ kind: TabInputKind.InteractiveEditorInput;
1630
+ uri: UriComponents;
1631
+ inputBoxUri: UriComponents;
1632
+ }
1633
+ export interface TabInputDto {
1634
+ kind: TabInputKind.TerminalEditorInput;
1635
+ }
1636
+ export declare type EditorGroupColumn = number;
1637
+ export declare type AnyInputDto = UnknownInputDto | TextInputDto | TextDiffInputDto | TextMergeInputDto | NotebookInputDto | NotebookDiffInputDto | CustomInputDto | WebviewInputDto | InteractiveEditorInputDto | TabInputDto;
1638
+ export interface TabGroupDto {
1639
+ isActive: boolean;
1640
+ viewColumn: EditorGroupColumn;
1641
+ tabs: TabDto[];
1642
+ groupId: number;
1643
+ }
1644
+ export declare const enum TabModelOperationKind {
1645
+ TAB_OPEN = 0,
1646
+ TAB_CLOSE = 1,
1647
+ TAB_UPDATE = 2,
1648
+ TAB_MOVE = 3
1649
+ }
1650
+ export interface TabOperation {
1651
+ readonly kind: TabModelOperationKind.TAB_OPEN | TabModelOperationKind.TAB_CLOSE | TabModelOperationKind.TAB_UPDATE | TabModelOperationKind.TAB_MOVE;
1652
+ readonly index: number;
1653
+ readonly tabDto: TabDto;
1654
+ readonly groupId: number;
1655
+ readonly oldIndex?: number;
1656
+ }
1657
+ export interface TabDto {
1658
+ id: string;
1659
+ label: string;
1660
+ input: AnyInputDto;
1661
+ editorId?: string;
1662
+ isActive: boolean;
1663
+ isPinned: boolean;
1664
+ isPreview: boolean;
1665
+ isDirty: boolean;
1666
+ }
1667
+ export interface TabsExt {
1668
+ $acceptEditorTabModel(tabGroups: TabGroupDto[]): void;
1669
+ $acceptTabGroupUpdate(groupDto: TabGroupDto): void;
1670
+ $acceptTabOperation(operation: TabOperation): void;
1671
+ }
1672
+ export interface TabsMain {
1673
+ $moveTab(tabId: string, index: number, viewColumn: EditorGroupColumn, preserveFocus?: boolean): void;
1674
+ $closeTab(tabIds: string[], preserveFocus?: boolean): Promise<boolean>;
1675
+ $closeGroup(groupIds: number[], preserveFocus?: boolean): Promise<boolean>;
1676
+ }
1677
+ export interface TelemetryMain {
1678
+ }
1679
+ export interface TelemetryExt {
1680
+ }
1681
+ export declare const enum TestingResourceExt {
1682
+ Workspace = 0,
1683
+ TextDocument = 1
1684
+ }
1685
+ export interface TestingExt {
1686
+ $onCancelTestRun(controllerId: string, runId: string): void;
1687
+ /** Configures a test run config. */
1688
+ $onConfigureRunProfile(controllerId: string, profileId: string): void;
1689
+ $onRunControllerTests(reqs: TestRunRequestDTO[]): void;
1690
+ /** Asks the controller to refresh its tests */
1691
+ $refreshTests(controllerId: string, token: CancellationToken): Promise<void>;
1692
+ $onResolveChildren(controllerId: string, path: string[]): void;
1693
+ }
1694
+ export interface TestControllerUpdate {
1695
+ label: string;
1696
+ canRefresh: boolean;
1697
+ canResolve: boolean;
1698
+ }
1699
+ export interface TestingMain {
1700
+ /** Registers that there's a test controller with the given ID */
1701
+ $registerTestController(controllerId: string, label: string): void;
1702
+ /** Updates the label of an existing test controller. */
1703
+ $updateController(controllerId: string, patch: Partial<TestControllerUpdate>): void;
1704
+ /** Disposes of the test controller with the given ID */
1705
+ $unregisterTestController(controllerId: string): void;
1706
+ $notifyDelta(controllerId: string, diff: TreeDelta<string, TestItemDTO>[]): void;
1707
+ /** Called when a new test run profile is available */
1708
+ $notifyTestRunProfileCreated(controllerId: string, profile: TestRunProfileDTO): void;
1709
+ /** Updates an existing test run profile */
1710
+ $updateTestRunProfile(controllerId: string, profileId: string, update: Partial<TestRunProfileDTO>): void;
1711
+ /** Removes a previously-published test run profile */
1712
+ $removeTestRunProfile(controllerId: string, profileId: string): void;
1713
+ $notifyTestRunCreated(controllerId: string, run: TestRunDTO): void;
1714
+ $notifyTestStateChanged(controllerId: string, runId: string, stateChanges: TestStateChangeDTO[], outputChanges: TestOutputDTO[]): void;
1715
+ $notifyTestRunEnded(controllerId: string, runId: string): void;
1716
+ }
1717
+ export declare const PLUGIN_RPC_CONTEXT: {
1718
+ AUTHENTICATION_MAIN: ProxyIdentifier<AuthenticationMain>;
1719
+ COMMAND_REGISTRY_MAIN: ProxyIdentifier<CommandRegistryMain>;
1720
+ QUICK_OPEN_MAIN: ProxyIdentifier<QuickOpenMain>;
1721
+ DIALOGS_MAIN: ProxyIdentifier<DialogsMain>;
1722
+ WORKSPACE_MAIN: ProxyIdentifier<WorkspaceMain>;
1723
+ MESSAGE_REGISTRY_MAIN: ProxyIdentifier<MessageRegistryMain>;
1724
+ TEXT_EDITORS_MAIN: ProxyIdentifier<TextEditorsMain>;
1725
+ DOCUMENTS_MAIN: ProxyIdentifier<DocumentsMain>;
1726
+ NOTEBOOKS_MAIN: ProxyIdentifier<NotebooksMain>;
1727
+ NOTEBOOK_DOCUMENTS_MAIN: ProxyIdentifier<NotebookDocumentsMain>;
1728
+ NOTEBOOK_EDITORS_MAIN: ProxyIdentifier<NotebookEditorsMain>;
1729
+ NOTEBOOK_DOCUMENTS_AND_EDITORS_MAIN: ProxyIdentifier<NotebookDocumentsAndEditorsMain>;
1730
+ NOTEBOOK_RENDERERS_MAIN: ProxyIdentifier<NotebookRenderersMain>;
1731
+ NOTEBOOK_KERNELS_MAIN: ProxyIdentifier<NotebookKernelsMain>;
1732
+ STATUS_BAR_MESSAGE_REGISTRY_MAIN: ProxyIdentifier<StatusBarMessageRegistryMain>;
1733
+ ENV_MAIN: ProxyIdentifier<EnvMain>;
1734
+ NOTIFICATION_MAIN: ProxyIdentifier<NotificationMain>;
1735
+ TERMINAL_MAIN: ProxyIdentifier<TerminalServiceMain>;
1736
+ TREE_VIEWS_MAIN: ProxyIdentifier<TreeViewsMain>;
1737
+ PREFERENCE_REGISTRY_MAIN: ProxyIdentifier<PreferenceRegistryMain>;
1738
+ OUTPUT_CHANNEL_REGISTRY_MAIN: ProxyIdentifier<OutputChannelRegistryMain>;
1739
+ LANGUAGES_MAIN: ProxyIdentifier<LanguagesMain>;
1740
+ CONNECTION_MAIN: ProxyIdentifier<ConnectionMain>;
1741
+ WEBVIEWS_MAIN: ProxyIdentifier<WebviewsMain>;
1742
+ CUSTOM_EDITORS_MAIN: ProxyIdentifier<CustomEditorsMain>;
1743
+ WEBVIEW_VIEWS_MAIN: ProxyIdentifier<WebviewViewsMain>;
1744
+ STORAGE_MAIN: ProxyIdentifier<StorageMain>;
1745
+ TASKS_MAIN: ProxyIdentifier<TasksMain>;
1746
+ DEBUG_MAIN: ProxyIdentifier<DebugMain>;
1747
+ FILE_SYSTEM_MAIN: ProxyIdentifier<FileSystemMain>;
1748
+ SCM_MAIN: ProxyIdentifier<ScmMain>;
1749
+ SECRETS_MAIN: ProxyIdentifier<SecretsMain>;
1750
+ DECORATIONS_MAIN: ProxyIdentifier<DecorationsMain>;
1751
+ WINDOW_MAIN: ProxyIdentifier<WindowMain>;
1752
+ CLIPBOARD_MAIN: ProxyIdentifier<ClipboardMain>;
1753
+ LABEL_SERVICE_MAIN: ProxyIdentifier<LabelServiceMain>;
1754
+ TIMELINE_MAIN: ProxyIdentifier<TimelineMain>;
1755
+ THEMING_MAIN: ProxyIdentifier<ThemingMain>;
1756
+ COMMENTS_MAIN: ProxyIdentifier<CommentsMain>;
1757
+ TABS_MAIN: ProxyIdentifier<TabsMain>;
1758
+ TELEMETRY_MAIN: ProxyIdentifier<TelemetryMain>;
1759
+ LOCALIZATION_MAIN: ProxyIdentifier<LocalizationMain>;
1760
+ TESTING_MAIN: ProxyIdentifier<TestingMain>;
1761
+ };
1762
+ export declare const MAIN_RPC_CONTEXT: {
1763
+ AUTHENTICATION_EXT: ProxyIdentifier<AuthenticationExt>;
1764
+ HOSTED_PLUGIN_MANAGER_EXT: ProxyIdentifier<PluginManagerExt>;
1765
+ COMMAND_REGISTRY_EXT: ProxyIdentifier<CommandRegistryExt>;
1766
+ QUICK_OPEN_EXT: ProxyIdentifier<QuickOpenExt>;
1767
+ WINDOW_STATE_EXT: ProxyIdentifier<WindowStateExt>;
1768
+ NOTIFICATION_EXT: ProxyIdentifier<NotificationExt>;
1769
+ WORKSPACE_EXT: ProxyIdentifier<WorkspaceExt>;
1770
+ TEXT_EDITORS_EXT: ProxyIdentifier<TextEditorsExt>;
1771
+ EDITORS_AND_DOCUMENTS_EXT: ProxyIdentifier<EditorsAndDocumentsExt>;
1772
+ DOCUMENTS_EXT: ProxyIdentifier<DocumentsExt>;
1773
+ NOTEBOOKS_EXT: ProxyIdentifier<NotebooksExt>;
1774
+ NOTEBOOK_DOCUMENTS_EXT: ProxyIdentifier<NotebookDocumentsExt>;
1775
+ NOTEBOOK_EDITORS_EXT: ProxyIdentifier<NotebookEditorsExt>;
1776
+ NOTEBOOK_RENDERERS_EXT: ProxyIdentifier<NotebookRenderersExt>;
1777
+ NOTEBOOK_KERNELS_EXT: ProxyIdentifier<NotebookKernelsExt>;
1778
+ TERMINAL_EXT: ProxyIdentifier<TerminalServiceExt>;
1779
+ OUTPUT_CHANNEL_REGISTRY_EXT: ProxyIdentifier<OutputChannelRegistryExt>;
1780
+ TREE_VIEWS_EXT: ProxyIdentifier<TreeViewsExt>;
1781
+ PREFERENCE_REGISTRY_EXT: ProxyIdentifier<PreferenceRegistryExt>;
1782
+ LANGUAGES_EXT: ProxyIdentifier<LanguagesExt>;
1783
+ CONNECTION_EXT: ProxyIdentifier<ConnectionExt>;
1784
+ WEBVIEWS_EXT: ProxyIdentifier<WebviewsExt>;
1785
+ CUSTOM_EDITORS_EXT: ProxyIdentifier<CustomEditorsExt>;
1786
+ WEBVIEW_VIEWS_EXT: ProxyIdentifier<WebviewViewsExt>;
1787
+ STORAGE_EXT: ProxyIdentifier<StorageExt>;
1788
+ TASKS_EXT: ProxyIdentifier<TasksExt>;
1789
+ DEBUG_EXT: ProxyIdentifier<DebugExt>;
1790
+ FILE_SYSTEM_EXT: ProxyIdentifier<FileSystemExt>;
1791
+ ExtHostFileSystemEventService: ProxyIdentifier<ExtHostFileSystemEventServiceShape>;
1792
+ SCM_EXT: ProxyIdentifier<ScmExt>;
1793
+ SECRETS_EXT: ProxyIdentifier<SecretsExt>;
1794
+ DECORATIONS_EXT: ProxyIdentifier<DecorationsExt>;
1795
+ LABEL_SERVICE_EXT: ProxyIdentifier<LabelServiceExt>;
1796
+ TIMELINE_EXT: ProxyIdentifier<TimelineExt>;
1797
+ THEMING_EXT: ProxyIdentifier<ThemingExt>;
1798
+ COMMENTS_EXT: ProxyIdentifier<CommentsExt>;
1799
+ TABS_EXT: ProxyIdentifier<TabsExt>;
1800
+ TELEMETRY_EXT: ProxyIdentifier<TelemetryExt>;
1801
+ TESTING_EXT: ProxyIdentifier<TestingExt>;
1802
+ };
1803
+ export interface TasksExt {
1804
+ $initLoadedTasks(executions: TaskExecutionDto[]): Promise<void>;
1805
+ $provideTasks(handle: number): Promise<TaskDto[]>;
1806
+ $resolveTask(handle: number, task: TaskDto, token?: CancellationToken): Promise<TaskDto>;
1807
+ $onDidStartTask(execution: TaskExecutionDto, terminalId: number): void;
1808
+ $onDidEndTask(id: number): void;
1809
+ $onDidStartTaskProcess(processId: number | undefined, execution: TaskExecutionDto): void;
1810
+ $onDidEndTaskProcess(exitCode: number | undefined, taskId: number): void;
1811
+ }
1812
+ export interface TasksMain {
1813
+ $registerTaskProvider(handle: number, type: string): void;
1814
+ $fetchTasks(taskVersion: string | undefined, taskType: string | undefined): Promise<TaskDto[]>;
1815
+ $executeTask(taskDto: TaskDto): Promise<TaskExecutionDto | undefined>;
1816
+ $taskExecutions(): Promise<TaskExecutionDto[]>;
1817
+ $unregister(handle: number): void;
1818
+ $terminateTask(id: number): void;
1819
+ $customExecutionComplete(id: number, exitCode: number | undefined): void;
1820
+ }
1821
+ export interface AuthenticationExt {
1822
+ $getSessions(id: string, scopes?: string[]): Promise<ReadonlyArray<theia.AuthenticationSession>>;
1823
+ $createSession(id: string, scopes: string[]): Promise<theia.AuthenticationSession>;
1824
+ $removeSession(id: string, sessionId: string): Promise<void>;
1825
+ $onDidChangeAuthenticationSessions(provider: theia.AuthenticationProviderInformation): Promise<void>;
1826
+ }
1827
+ export interface AuthenticationMain {
1828
+ $registerAuthenticationProvider(id: string, label: string, supportsMultipleAccounts: boolean): void;
1829
+ $unregisterAuthenticationProvider(id: string): void;
1830
+ $onDidChangeSessions(providerId: string, event: AuthenticationProviderAuthenticationSessionsChangeEvent): void;
1831
+ $getSession(providerId: string, scopes: readonly string[], extensionId: string, extensionName: string, options: theia.AuthenticationGetSessionOptions): Promise<theia.AuthenticationSession | undefined>;
1832
+ }
1833
+ export interface NotebookOutputItemDto {
1834
+ readonly mime: string;
1835
+ readonly valueBytes: BinaryBuffer;
1836
+ }
1837
+ export interface NotebookOutputDto {
1838
+ outputId: string;
1839
+ items: NotebookOutputItemDto[];
1840
+ metadata?: Record<string, unknown>;
1841
+ }
1842
+ export interface NotebookCellDataDto {
1843
+ source: string;
1844
+ language: string;
1845
+ cellKind: notebookCommon.CellKind;
1846
+ outputs: NotebookOutputDto[];
1847
+ metadata?: notebookCommon.NotebookCellMetadata;
1848
+ internalMetadata?: notebookCommon.NotebookCellInternalMetadata;
1849
+ }
1850
+ export interface NotebookDataDto {
1851
+ readonly cells: NotebookCellDataDto[];
1852
+ readonly metadata: notebookCommon.NotebookDocumentMetadata;
1853
+ }
1854
+ export interface NotebookCellDto {
1855
+ handle: number;
1856
+ uri: UriComponents;
1857
+ eol: string;
1858
+ source: string[];
1859
+ language: string;
1860
+ mime?: string;
1861
+ cellKind: notebookCommon.CellKind;
1862
+ outputs: NotebookOutputDto[];
1863
+ metadata?: notebookCommon.NotebookCellMetadata;
1864
+ internalMetadata?: notebookCommon.NotebookCellInternalMetadata;
1865
+ }
1866
+ export interface NotebookModelAddedData {
1867
+ uri: UriComponents;
1868
+ versionId: number;
1869
+ cells: NotebookCellDto[];
1870
+ viewType: string;
1871
+ metadata?: notebookCommon.NotebookDocumentMetadata;
1872
+ }
1873
+ export interface NotebookEditorAddData {
1874
+ id: string;
1875
+ documentUri: UriComponents;
1876
+ selections: CellRange[];
1877
+ visibleRanges: CellRange[];
1878
+ viewColumn?: number;
1879
+ }
1880
+ export interface NotebookDocumentsAndEditorsDelta {
1881
+ removedDocuments?: UriComponents[];
1882
+ addedDocuments?: NotebookModelAddedData[];
1883
+ removedEditors?: string[];
1884
+ addedEditors?: NotebookEditorAddData[];
1885
+ newActiveEditor?: string | null;
1886
+ visibleEditors?: string[];
1887
+ }
1888
+ export declare type NotebookCellStatusBarEntryDto = notebookCommon.NotebookCellStatusBarItem;
1889
+ export interface NotebookCellStatusBarListDto {
1890
+ items: NotebookCellStatusBarEntryDto[];
1891
+ cacheId: number;
1892
+ }
1893
+ export declare type NotebookRawContentEventDto = {
1894
+ readonly kind: notebookCommon.NotebookCellsChangeType.ModelChange;
1895
+ readonly changes: notebookCommon.NotebookCellTextModelSplice<NotebookCellDto>[];
1896
+ } | {
1897
+ readonly kind: notebookCommon.NotebookCellsChangeType.Move;
1898
+ readonly index: number;
1899
+ readonly length: number;
1900
+ readonly newIdx: number;
1901
+ } | {
1902
+ readonly kind: notebookCommon.NotebookCellsChangeType.Output;
1903
+ readonly index: number;
1904
+ readonly outputs: NotebookOutputDto[];
1905
+ } | {
1906
+ readonly kind: notebookCommon.NotebookCellsChangeType.OutputItem;
1907
+ readonly index: number;
1908
+ readonly outputId: string;
1909
+ readonly outputItems: NotebookOutputItemDto[];
1910
+ readonly append: boolean;
1911
+ } | notebookCommon.NotebookCellsChangeLanguageEvent | notebookCommon.NotebookCellsChangeMetadataEvent | notebookCommon.NotebookCellsChangeInternalMetadataEvent | notebookCommon.NotebookCellContentChangeEvent;
1912
+ export interface NotebookCellsChangedEventDto {
1913
+ readonly rawEvents: NotebookRawContentEventDto[];
1914
+ readonly versionId: number;
1915
+ }
1916
+ export interface NotebookSelectionChangeEvent {
1917
+ selections: CellRange[];
1918
+ }
1919
+ export interface NotebookVisibleRangesEvent {
1920
+ ranges: CellRange[];
1921
+ }
1922
+ export interface NotebookEditorPropertiesChangeData {
1923
+ visibleRanges?: NotebookVisibleRangesEvent;
1924
+ selections?: NotebookSelectionChangeEvent;
1925
+ }
1926
+ export declare enum NotebookEditorRevealType {
1927
+ Default = 0,
1928
+ InCenter = 1,
1929
+ InCenterIfOutsideViewport = 2,
1930
+ AtTop = 3
1931
+ }
1932
+ export interface NotebookDocumentShowOptions {
1933
+ position?: EditorGroupColumn;
1934
+ preserveFocus?: boolean;
1935
+ pinned?: boolean;
1936
+ selections?: CellRange[];
1937
+ }
1938
+ export interface NotebookKernelDto {
1939
+ id: string;
1940
+ notebookType: string;
1941
+ extensionId: string;
1942
+ extensionLocation: UriComponents;
1943
+ label: string;
1944
+ detail?: string;
1945
+ description?: string;
1946
+ supportedLanguages?: string[];
1947
+ supportsInterrupt?: boolean;
1948
+ supportsExecutionOrder?: boolean;
1949
+ preloads?: {
1950
+ uri: UriComponents;
1951
+ provides: readonly string[];
1952
+ }[];
1953
+ rendererScripts?: NotebookRendererScript[];
1954
+ }
1955
+ export declare type CellExecuteUpdateDto = CellExecuteOutputEditDto | CellExecuteOutputItemEditDto | CellExecutionStateUpdateDto;
1956
+ export interface CellExecuteOutputEditDto {
1957
+ editType: CellExecutionUpdateType.Output;
1958
+ cellHandle: number;
1959
+ append?: boolean;
1960
+ outputs: NotebookOutputDto[];
1961
+ }
1962
+ export interface CellExecuteOutputItemEditDto {
1963
+ editType: CellExecutionUpdateType.OutputItems;
1964
+ append?: boolean;
1965
+ outputId: string;
1966
+ items: NotebookOutputItemDto[];
1967
+ }
1968
+ export interface CellExecutionStateUpdateDto {
1969
+ editType: CellExecutionUpdateType.ExecutionState;
1970
+ executionOrder?: number;
1971
+ runStartTime?: number;
1972
+ didPause?: boolean;
1973
+ isPaused?: boolean;
1974
+ }
1975
+ export interface CellExecutionCompleteDto {
1976
+ runEndTime?: number;
1977
+ lastRunSuccess?: boolean;
1978
+ }
1979
+ export interface NotebookKernelSourceActionDto {
1980
+ readonly label: string;
1981
+ readonly description?: string;
1982
+ readonly detail?: string;
1983
+ readonly command?: string | Command;
1984
+ readonly documentation?: UriComponents | string;
1985
+ }
1986
+ export interface NotebookEditorAddData {
1987
+ id: string;
1988
+ documentUri: UriComponents;
1989
+ selections: CellRange[];
1990
+ visibleRanges: CellRange[];
1991
+ viewColumn?: number;
1992
+ }
1993
+ export interface NotebooksExt extends NotebookDocumentsAndEditorsExt {
1994
+ $provideNotebookCellStatusBarItems(handle: number, uri: UriComponents, index: number, token: CancellationToken): Promise<NotebookCellStatusBarListDto | undefined>;
1995
+ $releaseNotebookCellStatusBarItems(id: number): void;
1996
+ $dataToNotebook(handle: number, data: BinaryBuffer, token: CancellationToken): Promise<NotebookDataDto>;
1997
+ $notebookToData(handle: number, data: NotebookDataDto, token: CancellationToken): Promise<BinaryBuffer>;
1998
+ }
1999
+ export interface NotebooksMain extends Disposable {
2000
+ $registerNotebookSerializer(handle: number, viewType: string, options: notebookCommon.TransientOptions): void;
2001
+ $unregisterNotebookSerializer(handle: number): void;
2002
+ $registerNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined, viewType: string): Promise<void>;
2003
+ $unregisterNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined): Promise<void>;
2004
+ $emitCellStatusBarEvent(eventHandle: number): void;
2005
+ }
2006
+ export interface NotebookKernelsExt {
2007
+ $acceptNotebookAssociation(handle: number, uri: UriComponents, value: boolean): void;
2008
+ $executeCells(handle: number, uri: UriComponents, handles: number[]): Promise<void>;
2009
+ $cancelCells(handle: number, uri: UriComponents, handles: number[]): Promise<void>;
2010
+ $acceptKernelMessageFromRenderer(handle: number, editorId: string, message: any): void;
2011
+ $cellExecutionChanged(uri: UriComponents, cellHandle: number, state: NotebookCellExecutionState | undefined): void;
2012
+ $provideKernelSourceActions(handle: number, token: CancellationToken): Promise<NotebookKernelSourceActionDto[]>;
2013
+ }
2014
+ export interface NotebookKernelsMain extends Disposable {
2015
+ $postMessage(handle: number, editorId: string | undefined, message: any): Promise<boolean>;
2016
+ $addKernel(handle: number, data: NotebookKernelDto): Promise<void>;
2017
+ $updateKernel(handle: number, data: Partial<NotebookKernelDto>): void;
2018
+ $removeKernel(handle: number): void;
2019
+ $updateNotebookPriority(handle: number, uri: UriComponents, value: number | undefined): void;
2020
+ $createExecution(handle: number, controllerId: string, uri: UriComponents, cellHandle: number): void;
2021
+ $updateExecution(handle: number, data: CellExecuteUpdateDto[]): void;
2022
+ $completeExecution(handle: number, data: CellExecutionCompleteDto): void;
2023
+ $createNotebookExecution(handle: number, controllerId: string, uri: UriComponents): void;
2024
+ $beginNotebookExecution(handle: number): void;
2025
+ $completeNotebookExecution(handle: number): void;
2026
+ $addKernelDetectionTask(handle: number, notebookType: string): Promise<void>;
2027
+ $removeKernelDetectionTask(handle: number): void;
2028
+ $addKernelSourceActionProvider(handle: number, eventHandle: number, notebookType: string): Promise<void>;
2029
+ $removeKernelSourceActionProvider(handle: number, eventHandle: number): void;
2030
+ $emitNotebookKernelSourceActionsChangeEvent(eventHandle: number): void;
2031
+ }
2032
+ export interface NotebookDocumentsMain extends Disposable {
2033
+ $tryCreateNotebook(options: {
2034
+ viewType: string;
2035
+ content?: NotebookDataDto;
2036
+ }): Promise<UriComponents>;
2037
+ $tryOpenNotebook(uriComponents: UriComponents): Promise<UriComponents>;
2038
+ $trySaveNotebook(uri: UriComponents): Promise<boolean>;
2039
+ }
2040
+ export interface NotebookDocumentsExt {
2041
+ $acceptModelChanged(uriComponents: UriComponents, event: NotebookCellsChangedEventDto, isDirty: boolean, newMetadata?: notebookCommon.NotebookDocumentMetadata): void;
2042
+ $acceptDirtyStateChanged(uriComponents: UriComponents, isDirty: boolean): void;
2043
+ $acceptModelSaved(uriComponents: UriComponents): void;
2044
+ }
2045
+ export interface NotebookDocumentsAndEditorsExt {
2046
+ $acceptDocumentsAndEditorsDelta(delta: NotebookDocumentsAndEditorsDelta): Promise<void>;
2047
+ }
2048
+ export interface NotebookDocumentsAndEditorsMain extends Disposable {
2049
+ }
2050
+ export declare type NotebookEditorViewColumnInfo = Record<string, number>;
2051
+ export interface NotebookEditorsExt {
2052
+ $acceptEditorPropertiesChanged(id: string, data: NotebookEditorPropertiesChangeData): void;
2053
+ $acceptEditorViewColumns(data: NotebookEditorViewColumnInfo): void;
2054
+ }
2055
+ export interface NotebookEditorsMain extends Disposable {
2056
+ $tryShowNotebookDocument(uriComponents: UriComponents, viewType: string, options: NotebookDocumentShowOptions): Promise<string>;
2057
+ $tryRevealRange(id: string, range: CellRange, revealType: NotebookEditorRevealType): Promise<void>;
2058
+ $trySetSelections(id: string, range: CellRange[]): void;
2059
+ }
2060
+ export interface NotebookRenderersExt {
2061
+ $postRendererMessage(editorId: string, rendererId: string, message: unknown): void;
2062
+ }
2063
+ export interface NotebookRenderersMain extends Disposable {
2064
+ $postMessage(editorId: string | undefined, rendererId: string, message: unknown): Promise<boolean>;
2065
+ }
2066
+ export interface RawColorInfo {
2067
+ color: [number, number, number, number];
2068
+ range: Range;
2069
+ }
2070
+ export interface LabelServiceExt {
2071
+ $registerResourceLabelFormatter(formatter: ResourceLabelFormatter): theia.Disposable;
2072
+ }
2073
+ export interface LabelServiceMain {
2074
+ $registerResourceLabelFormatter(handle: number, formatter: ResourceLabelFormatter): void;
2075
+ $unregisterResourceLabelFormatter(handle: number): void;
2076
+ }
2077
+ export interface SecretsExt {
2078
+ $onDidChangePassword(e: {
2079
+ extensionId: string;
2080
+ key: string;
2081
+ }): Promise<void>;
2082
+ }
2083
+ export interface SecretsMain {
2084
+ $getPassword(extensionId: string, key: string): Promise<string | undefined>;
2085
+ $setPassword(extensionId: string, key: string, value: string): Promise<void>;
2086
+ $deletePassword(extensionId: string, key: string): Promise<void>;
2087
+ }
2088
+ export declare type InlayHintDto = CachedSessionItem<InlayHint>;
2089
+ export declare type InlayHintsDto = CachedSession<{
2090
+ hints: InlayHint[];
2091
+ }>;
2092
+ export interface IdentifiableInlineCompletions extends InlineCompletions<IdentifiableInlineCompletion> {
2093
+ pid: number;
2094
+ }
2095
+ export interface IdentifiableInlineCompletion extends InlineCompletion {
2096
+ idx: number;
2097
+ }
2098
+ export declare const LocalizationExt: unique symbol;
2099
+ export interface LocalizationExt {
2100
+ translateMessage(pluginId: string, details: StringDetails): string;
2101
+ getBundle(pluginId: string): Record<string, string> | undefined;
2102
+ getBundleUri(pluginId: string): theia.Uri | undefined;
2103
+ initializeLocalizedMessages(plugin: Plugin, currentLanguage: string): Promise<void>;
2104
+ }
2105
+ export interface StringDetails {
2106
+ message: string;
2107
+ args?: Record<string | number, any>;
2108
+ comment?: string | string[];
2109
+ }
2110
+ export interface LocalizationMain {
2111
+ $fetchBundle(id: string): Promise<LanguagePackBundle | undefined>;
2112
+ }
2089
2113
  //# sourceMappingURL=plugin-api-rpc.d.ts.map