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

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 (1319) hide show
  1. package/lib/common/arrays.d.ts +24 -0
  2. package/lib/common/arrays.d.ts.map +1 -0
  3. package/lib/common/arrays.js +61 -0
  4. package/lib/common/arrays.js.map +1 -0
  5. package/lib/common/assert.d.ts +2 -0
  6. package/lib/common/assert.d.ts.map +1 -0
  7. package/lib/common/assert.js +26 -0
  8. package/lib/common/assert.js.map +1 -0
  9. package/lib/common/cache.d.ts +12 -0
  10. package/lib/common/cache.d.ts.map +1 -0
  11. package/lib/common/cache.js +48 -0
  12. package/lib/common/cache.js.map +1 -0
  13. package/lib/common/character-classifier.d.ts +19 -0
  14. package/lib/common/character-classifier.d.ts.map +1 -0
  15. package/lib/common/character-classifier.js +61 -0
  16. package/lib/common/character-classifier.js.map +1 -0
  17. package/lib/common/collections.d.ts +9 -0
  18. package/lib/common/collections.d.ts.map +1 -0
  19. package/lib/common/collections.js +56 -0
  20. package/lib/common/collections.js.map +1 -0
  21. package/lib/common/commands.d.ts +4 -0
  22. package/lib/common/commands.d.ts.map +1 -0
  23. package/lib/common/commands.js +17 -0
  24. package/lib/common/commands.js.map +1 -0
  25. package/lib/common/connection.d.ts +55 -0
  26. package/lib/common/connection.d.ts.map +1 -0
  27. package/lib/common/connection.js +108 -0
  28. package/lib/common/connection.js.map +1 -0
  29. package/lib/common/disposable-util.d.ts +7 -0
  30. package/lib/common/disposable-util.d.ts.map +1 -0
  31. package/lib/common/disposable-util.js +38 -0
  32. package/lib/common/disposable-util.js.map +1 -0
  33. package/lib/common/editor-options.d.ts +31 -0
  34. package/lib/common/editor-options.d.ts.map +1 -0
  35. package/lib/common/editor-options.js +73 -0
  36. package/lib/common/editor-options.js.map +1 -0
  37. package/lib/common/env.d.ts +4 -0
  38. package/lib/common/env.d.ts.map +1 -0
  39. package/lib/common/env.js +18 -0
  40. package/lib/common/env.js.map +1 -0
  41. package/lib/common/errors.d.ts +18 -0
  42. package/lib/common/errors.d.ts.map +1 -0
  43. package/lib/common/errors.js +59 -0
  44. package/lib/common/errors.js.map +1 -0
  45. package/lib/common/id-generator.d.ts +7 -0
  46. package/lib/common/id-generator.d.ts.map +1 -0
  47. package/lib/common/id-generator.js +29 -0
  48. package/lib/common/id-generator.js.map +1 -0
  49. package/lib/common/index.d.ts +4 -0
  50. package/lib/common/index.d.ts.map +1 -0
  51. package/lib/common/index.js +25 -0
  52. package/lib/common/index.js.map +1 -0
  53. package/lib/common/language-pack-service.d.ts +16 -0
  54. package/lib/common/language-pack-service.d.ts.map +1 -0
  55. package/lib/common/language-pack-service.js +21 -0
  56. package/lib/common/language-pack-service.js.map +1 -0
  57. package/lib/common/link-computer.d.ts +42 -0
  58. package/lib/common/link-computer.d.ts.map +1 -0
  59. package/lib/common/link-computer.js +276 -0
  60. package/lib/common/link-computer.js.map +1 -0
  61. package/lib/common/lm-protocol.d.ts +103 -0
  62. package/lib/common/lm-protocol.d.ts.map +1 -0
  63. package/lib/common/lm-protocol.js +21 -0
  64. package/lib/common/lm-protocol.js.map +1 -0
  65. package/lib/common/object-identifier.d.ts +9 -0
  66. package/lib/common/object-identifier.d.ts.map +1 -0
  67. package/lib/common/object-identifier.js +33 -0
  68. package/lib/common/object-identifier.js.map +1 -0
  69. package/lib/common/objects.d.ts +2 -0
  70. package/lib/common/objects.d.ts.map +1 -0
  71. package/lib/common/objects.js +47 -0
  72. package/lib/common/objects.js.map +1 -0
  73. package/lib/common/paths-util.d.ts +4 -0
  74. package/lib/common/paths-util.d.ts.map +1 -0
  75. package/lib/common/paths-util.js +145 -0
  76. package/lib/common/paths-util.js.map +1 -0
  77. package/lib/common/plugin-api-rpc-model.d.ts +776 -0
  78. package/lib/common/plugin-api-rpc-model.d.ts.map +1 -0
  79. package/lib/common/plugin-api-rpc-model.js +179 -0
  80. package/lib/common/plugin-api-rpc-model.js.map +1 -0
  81. package/lib/common/plugin-api-rpc.d.ts +2220 -0
  82. package/lib/common/plugin-api-rpc.d.ts.map +1 -0
  83. package/lib/common/plugin-api-rpc.js +341 -0
  84. package/lib/common/plugin-api-rpc.js.map +1 -0
  85. package/lib/common/plugin-ext-api-contribution.d.ts +89 -0
  86. package/lib/common/plugin-ext-api-contribution.d.ts.map +1 -0
  87. package/lib/common/plugin-ext-api-contribution.js +6 -0
  88. package/lib/common/plugin-ext-api-contribution.js.map +1 -0
  89. package/lib/common/plugin-identifiers.d.ts +47 -0
  90. package/lib/common/plugin-identifiers.d.ts.map +1 -0
  91. package/lib/common/plugin-identifiers.js +90 -0
  92. package/lib/common/plugin-identifiers.js.map +1 -0
  93. package/lib/common/plugin-protocol.d.ts +960 -0
  94. package/lib/common/plugin-protocol.d.ts.map +1 -0
  95. package/lib/common/plugin-protocol.js +73 -0
  96. package/lib/common/plugin-protocol.js.map +1 -0
  97. package/lib/common/reference-map.d.ts +8 -0
  98. package/lib/common/reference-map.d.ts.map +1 -0
  99. package/lib/common/reference-map.js +40 -0
  100. package/lib/common/reference-map.js.map +1 -0
  101. package/lib/common/rpc-protocol.d.ts +83 -0
  102. package/lib/common/rpc-protocol.d.ts.map +1 -0
  103. package/lib/common/rpc-protocol.js +262 -0
  104. package/lib/common/rpc-protocol.js.map +1 -0
  105. package/lib/common/semantic-tokens-dto.d.ts +19 -0
  106. package/lib/common/semantic-tokens-dto.d.ts.map +1 -0
  107. package/lib/common/semantic-tokens-dto.js +163 -0
  108. package/lib/common/semantic-tokens-dto.js.map +1 -0
  109. package/lib/common/test-types.d.ts +103 -0
  110. package/lib/common/test-types.d.ts.map +1 -0
  111. package/lib/common/test-types.js +83 -0
  112. package/lib/common/test-types.js.map +1 -0
  113. package/lib/common/types.d.ts +38 -0
  114. package/lib/common/types.d.ts.map +1 -0
  115. package/lib/common/types.js +122 -0
  116. package/lib/common/types.js.map +1 -0
  117. package/lib/common/uint.d.ts +8 -0
  118. package/lib/common/uint.d.ts.map +1 -0
  119. package/lib/common/uint.js +34 -0
  120. package/lib/common/uint.js.map +1 -0
  121. package/lib/common/uri-components.d.ts +40 -0
  122. package/lib/common/uri-components.d.ts.map +1 -0
  123. package/lib/common/uri-components.js +65 -0
  124. package/lib/common/uri-components.js.map +1 -0
  125. package/lib/hosted/browser/hosted-plugin-watcher.d.ts +16 -0
  126. package/lib/hosted/browser/hosted-plugin-watcher.d.ts.map +1 -0
  127. package/lib/hosted/browser/hosted-plugin-watcher.js +55 -0
  128. package/lib/hosted/browser/hosted-plugin-watcher.js.map +1 -0
  129. package/lib/hosted/browser/hosted-plugin.d.ts +101 -0
  130. package/lib/hosted/browser/hosted-plugin.d.ts.map +1 -0
  131. package/lib/hosted/browser/hosted-plugin.js +605 -0
  132. package/lib/hosted/browser/hosted-plugin.js.map +1 -0
  133. package/lib/hosted/browser/plugin-worker.d.ts +7 -0
  134. package/lib/hosted/browser/plugin-worker.d.ts.map +1 -0
  135. package/lib/hosted/browser/plugin-worker.js +50 -0
  136. package/lib/hosted/browser/plugin-worker.js.map +1 -0
  137. package/lib/hosted/browser/worker/debug-stub.d.ts +4 -0
  138. package/lib/hosted/browser/worker/debug-stub.d.ts.map +1 -0
  139. package/lib/hosted/browser/worker/debug-stub.js +30 -0
  140. package/lib/hosted/browser/worker/debug-stub.js.map +1 -0
  141. package/lib/hosted/browser/worker/plugin-manifest-loader.d.ts +3 -0
  142. package/lib/hosted/browser/worker/plugin-manifest-loader.d.ts.map +1 -0
  143. package/lib/hosted/browser/worker/plugin-manifest-loader.js +108 -0
  144. package/lib/hosted/browser/worker/plugin-manifest-loader.js.map +1 -0
  145. package/lib/hosted/browser/worker/worker-env-ext.d.ts +11 -0
  146. package/lib/hosted/browser/worker/worker-env-ext.d.ts.map +1 -0
  147. package/lib/hosted/browser/worker/worker-env-ext.js +43 -0
  148. package/lib/hosted/browser/worker/worker-env-ext.js.map +1 -0
  149. package/lib/hosted/browser/worker/worker-main.d.ts +2 -0
  150. package/lib/hosted/browser/worker/worker-main.d.ts.map +1 -0
  151. package/lib/hosted/browser/worker/worker-main.js +183 -0
  152. package/lib/hosted/browser/worker/worker-main.js.map +1 -0
  153. package/lib/hosted/browser/worker/worker-plugin-module.d.ts +5 -0
  154. package/lib/hosted/browser/worker/worker-plugin-module.d.ts.map +1 -0
  155. package/lib/hosted/browser/worker/worker-plugin-module.js +80 -0
  156. package/lib/hosted/browser/worker/worker-plugin-module.js.map +1 -0
  157. package/lib/hosted/common/hosted-plugin.d.ts +97 -0
  158. package/lib/hosted/common/hosted-plugin.d.ts.map +1 -0
  159. package/lib/hosted/common/hosted-plugin.js +408 -0
  160. package/lib/hosted/common/hosted-plugin.js.map +1 -0
  161. package/lib/hosted/node/hosted-plugin-cli-contribution.d.ts +17 -0
  162. package/lib/hosted/node/hosted-plugin-cli-contribution.d.ts.map +1 -0
  163. package/lib/hosted/node/hosted-plugin-cli-contribution.js +72 -0
  164. package/lib/hosted/node/hosted-plugin-cli-contribution.js.map +1 -0
  165. package/lib/hosted/node/hosted-plugin-localization-service.d.ts +47 -0
  166. package/lib/hosted/node/hosted-plugin-localization-service.d.ts.map +1 -0
  167. package/lib/hosted/node/hosted-plugin-localization-service.js +380 -0
  168. package/lib/hosted/node/hosted-plugin-localization-service.js.map +1 -0
  169. package/lib/hosted/node/hosted-plugin-process.d.ts +42 -0
  170. package/lib/hosted/node/hosted-plugin-process.d.ts.map +1 -0
  171. package/lib/hosted/node/hosted-plugin-process.js +205 -0
  172. package/lib/hosted/node/hosted-plugin-process.js.map +1 -0
  173. package/lib/hosted/node/hosted-plugin-protocol.d.ts +22 -0
  174. package/lib/hosted/node/hosted-plugin-protocol.d.ts.map +1 -0
  175. package/lib/hosted/node/hosted-plugin-protocol.js +37 -0
  176. package/lib/hosted/node/hosted-plugin-protocol.js.map +1 -0
  177. package/lib/hosted/node/hosted-plugin.d.ts +29 -0
  178. package/lib/hosted/node/hosted-plugin.d.ts.map +1 -0
  179. package/lib/hosted/node/hosted-plugin.js +99 -0
  180. package/lib/hosted/node/hosted-plugin.js.map +1 -0
  181. package/lib/hosted/node/metadata-scanner.d.ts +18 -0
  182. package/lib/hosted/node/metadata-scanner.d.ts.map +1 -0
  183. package/lib/hosted/node/metadata-scanner.js +73 -0
  184. package/lib/hosted/node/metadata-scanner.js.map +1 -0
  185. package/lib/hosted/node/plugin-activation-events.d.ts +7 -0
  186. package/lib/hosted/node/plugin-activation-events.d.ts.map +1 -0
  187. package/lib/hosted/node/plugin-activation-events.js +96 -0
  188. package/lib/hosted/node/plugin-activation-events.js.map +1 -0
  189. package/lib/hosted/node/plugin-deployer-handler-impl.d.ts +48 -0
  190. package/lib/hosted/node/plugin-deployer-handler-impl.d.ts.map +1 -0
  191. package/lib/hosted/node/plugin-deployer-handler-impl.js +277 -0
  192. package/lib/hosted/node/plugin-deployer-handler-impl.js.map +1 -0
  193. package/lib/hosted/node/plugin-ext-hosted-backend-module.d.ts +4 -0
  194. package/lib/hosted/node/plugin-ext-hosted-backend-module.d.ts.map +1 -0
  195. package/lib/hosted/node/plugin-ext-hosted-backend-module.js +83 -0
  196. package/lib/hosted/node/plugin-ext-hosted-backend-module.js.map +1 -0
  197. package/lib/hosted/node/plugin-host-logger.d.ts +3 -0
  198. package/lib/hosted/node/plugin-host-logger.d.ts.map +1 -0
  199. package/lib/hosted/node/plugin-host-logger.js +39 -0
  200. package/lib/hosted/node/plugin-host-logger.js.map +1 -0
  201. package/lib/hosted/node/plugin-host-module.d.ts +5 -0
  202. package/lib/hosted/node/plugin-host-module.d.ts.map +1 -0
  203. package/lib/hosted/node/plugin-host-module.js +75 -0
  204. package/lib/hosted/node/plugin-host-module.js.map +1 -0
  205. package/lib/hosted/node/plugin-host-proxy.d.ts +19 -0
  206. package/lib/hosted/node/plugin-host-proxy.d.ts.map +1 -0
  207. package/lib/hosted/node/plugin-host-proxy.js +71 -0
  208. package/lib/hosted/node/plugin-host-proxy.js.map +1 -0
  209. package/lib/hosted/node/plugin-host-rpc.d.ts +108 -0
  210. package/lib/hosted/node/plugin-host-rpc.d.ts.map +1 -0
  211. package/lib/hosted/node/plugin-host-rpc.js +333 -0
  212. package/lib/hosted/node/plugin-host-rpc.js.map +1 -0
  213. package/lib/hosted/node/plugin-host.d.ts +2 -0
  214. package/lib/hosted/node/plugin-host.d.ts.map +1 -0
  215. package/lib/hosted/node/plugin-host.js +114 -0
  216. package/lib/hosted/node/plugin-host.js.map +1 -0
  217. package/lib/hosted/node/plugin-language-pack-service.d.ts +8 -0
  218. package/lib/hosted/node/plugin-language-pack-service.d.ts.map +1 -0
  219. package/lib/hosted/node/plugin-language-pack-service.js +49 -0
  220. package/lib/hosted/node/plugin-language-pack-service.js.map +1 -0
  221. package/lib/hosted/node/plugin-manifest-loader.d.ts +3 -0
  222. package/lib/hosted/node/plugin-manifest-loader.d.ts.map +1 -0
  223. package/lib/hosted/node/plugin-manifest-loader.js +36 -0
  224. package/lib/hosted/node/plugin-manifest-loader.js.map +1 -0
  225. package/lib/hosted/node/plugin-reader.d.ts +26 -0
  226. package/lib/hosted/node/plugin-reader.d.ts.map +1 -0
  227. package/lib/hosted/node/plugin-reader.js +140 -0
  228. package/lib/hosted/node/plugin-reader.js.map +1 -0
  229. package/lib/hosted/node/plugin-require-override.d.ts +25 -0
  230. package/lib/hosted/node/plugin-require-override.d.ts.map +1 -0
  231. package/lib/hosted/node/plugin-require-override.js +56 -0
  232. package/lib/hosted/node/plugin-require-override.js.map +1 -0
  233. package/lib/hosted/node/plugin-service.d.ts +56 -0
  234. package/lib/hosted/node/plugin-service.d.ts.map +1 -0
  235. package/lib/hosted/node/plugin-service.js +203 -0
  236. package/lib/hosted/node/plugin-service.js.map +1 -0
  237. package/lib/hosted/node/scanners/backend-init-theia.d.ts +3 -0
  238. package/lib/hosted/node/scanners/backend-init-theia.d.ts.map +1 -0
  239. package/lib/hosted/node/scanners/backend-init-theia.js +61 -0
  240. package/lib/hosted/node/scanners/backend-init-theia.js.map +1 -0
  241. package/lib/hosted/node/scanners/file-plugin-uri-factory.d.ts +11 -0
  242. package/lib/hosted/node/scanners/file-plugin-uri-factory.d.ts.map +1 -0
  243. package/lib/hosted/node/scanners/file-plugin-uri-factory.js +36 -0
  244. package/lib/hosted/node/scanners/file-plugin-uri-factory.js.map +1 -0
  245. package/lib/hosted/node/scanners/grammars-reader.d.ts +6 -0
  246. package/lib/hosted/node/scanners/grammars-reader.d.ts.map +1 -0
  247. package/lib/hosted/node/scanners/grammars-reader.js +59 -0
  248. package/lib/hosted/node/scanners/grammars-reader.js.map +1 -0
  249. package/lib/hosted/node/scanners/plugin-uri-factory.d.ts +17 -0
  250. package/lib/hosted/node/scanners/plugin-uri-factory.d.ts.map +1 -0
  251. package/lib/hosted/node/scanners/plugin-uri-factory.js +20 -0
  252. package/lib/hosted/node/scanners/plugin-uri-factory.js.map +1 -0
  253. package/lib/hosted/node/scanners/scanner-theia.d.ts +113 -0
  254. package/lib/hosted/node/scanners/scanner-theia.d.ts.map +1 -0
  255. package/lib/hosted/node/scanners/scanner-theia.js +923 -0
  256. package/lib/hosted/node/scanners/scanner-theia.js.map +1 -0
  257. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.d.ts +3 -0
  258. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.d.ts.map +1 -0
  259. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.js +27 -0
  260. package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.js.map +1 -0
  261. package/lib/hosted/node-electron/scanner-theia-electron.d.ts +6 -0
  262. package/lib/hosted/node-electron/scanner-theia-electron.d.ts.map +1 -0
  263. package/lib/hosted/node-electron/scanner-theia-electron.js +36 -0
  264. package/lib/hosted/node-electron/scanner-theia-electron.js.map +1 -0
  265. package/lib/main/browser/authentication-main.d.ts +52 -0
  266. package/lib/main/browser/authentication-main.d.ts.map +1 -0
  267. package/lib/main/browser/authentication-main.js +324 -0
  268. package/lib/main/browser/authentication-main.js.map +1 -0
  269. package/lib/main/browser/clipboard-main.d.ts +10 -0
  270. package/lib/main/browser/clipboard-main.d.ts.map +1 -0
  271. package/lib/main/browser/clipboard-main.js +33 -0
  272. package/lib/main/browser/clipboard-main.js.map +1 -0
  273. package/lib/main/browser/command-registry-main.d.ts +28 -0
  274. package/lib/main/browser/command-registry-main.d.ts.map +1 -0
  275. package/lib/main/browser/command-registry-main.js +113 -0
  276. package/lib/main/browser/command-registry-main.js.map +1 -0
  277. package/lib/main/browser/commands.d.ts +13 -0
  278. package/lib/main/browser/commands.d.ts.map +1 -0
  279. package/lib/main/browser/commands.js +92 -0
  280. package/lib/main/browser/commands.js.map +1 -0
  281. package/lib/main/browser/comments/comment-glyph-widget.d.ts +13 -0
  282. package/lib/main/browser/comments/comment-glyph-widget.d.ts.map +1 -0
  283. package/lib/main/browser/comments/comment-glyph-widget.js +43 -0
  284. package/lib/main/browser/comments/comment-glyph-widget.js.map +1 -0
  285. package/lib/main/browser/comments/comment-thread-widget.d.ts +178 -0
  286. package/lib/main/browser/comments/comment-thread-widget.d.ts.map +1 -0
  287. package/lib/main/browser/comments/comment-thread-widget.js +523 -0
  288. package/lib/main/browser/comments/comment-thread-widget.js.map +1 -0
  289. package/lib/main/browser/comments/comments-context.d.ts +13 -0
  290. package/lib/main/browser/comments/comments-context.d.ts.map +1 -0
  291. package/lib/main/browser/comments/comments-context.js +56 -0
  292. package/lib/main/browser/comments/comments-context.js.map +1 -0
  293. package/lib/main/browser/comments/comments-contribution.d.ts +32 -0
  294. package/lib/main/browser/comments/comments-contribution.d.ts.map +1 -0
  295. package/lib/main/browser/comments/comments-contribution.js +258 -0
  296. package/lib/main/browser/comments/comments-contribution.js.map +1 -0
  297. package/lib/main/browser/comments/comments-decorator.d.ts +16 -0
  298. package/lib/main/browser/comments/comments-decorator.d.ts.map +1 -0
  299. package/lib/main/browser/comments/comments-decorator.js +100 -0
  300. package/lib/main/browser/comments/comments-decorator.js.map +1 -0
  301. package/lib/main/browser/comments/comments-main.d.ts +116 -0
  302. package/lib/main/browser/comments/comments-main.d.ts.map +1 -0
  303. package/lib/main/browser/comments/comments-main.js +358 -0
  304. package/lib/main/browser/comments/comments-main.js.map +1 -0
  305. package/lib/main/browser/comments/comments-service.d.ts +76 -0
  306. package/lib/main/browser/comments/comments-service.d.ts.map +1 -0
  307. package/lib/main/browser/comments/comments-service.js +118 -0
  308. package/lib/main/browser/comments/comments-service.js.map +1 -0
  309. package/lib/main/browser/custom-editors/custom-editor-opener.d.ts +29 -0
  310. package/lib/main/browser/custom-editors/custom-editor-opener.d.ts.map +1 -0
  311. package/lib/main/browser/custom-editors/custom-editor-opener.js +196 -0
  312. package/lib/main/browser/custom-editors/custom-editor-opener.js.map +1 -0
  313. package/lib/main/browser/custom-editors/custom-editor-service.d.ts +17 -0
  314. package/lib/main/browser/custom-editors/custom-editor-service.d.ts.map +1 -0
  315. package/lib/main/browser/custom-editors/custom-editor-service.js +98 -0
  316. package/lib/main/browser/custom-editors/custom-editor-service.js.map +1 -0
  317. package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.d.ts +10 -0
  318. package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.d.ts.map +1 -0
  319. package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.js +49 -0
  320. package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.js.map +1 -0
  321. package/lib/main/browser/custom-editors/custom-editor-widget-factory.d.ts +10 -0
  322. package/lib/main/browser/custom-editors/custom-editor-widget-factory.d.ts.map +1 -0
  323. package/lib/main/browser/custom-editors/custom-editor-widget-factory.js +40 -0
  324. package/lib/main/browser/custom-editors/custom-editor-widget-factory.js.map +1 -0
  325. package/lib/main/browser/custom-editors/custom-editor-widget.d.ts +35 -0
  326. package/lib/main/browser/custom-editors/custom-editor-widget.d.ts.map +1 -0
  327. package/lib/main/browser/custom-editors/custom-editor-widget.js +108 -0
  328. package/lib/main/browser/custom-editors/custom-editor-widget.js.map +1 -0
  329. package/lib/main/browser/custom-editors/custom-editors-main.d.ts +123 -0
  330. package/lib/main/browser/custom-editors/custom-editors-main.d.ts.map +1 -0
  331. package/lib/main/browser/custom-editors/custom-editors-main.js +380 -0
  332. package/lib/main/browser/custom-editors/custom-editors-main.js.map +1 -0
  333. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.d.ts +22 -0
  334. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.d.ts.map +1 -0
  335. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.js +128 -0
  336. package/lib/main/browser/custom-editors/plugin-custom-editor-registry.js.map +1 -0
  337. package/lib/main/browser/data-transfer/data-transfer-type-converters.d.ts +9 -0
  338. package/lib/main/browser/data-transfer/data-transfer-type-converters.d.ts.map +1 -0
  339. package/lib/main/browser/data-transfer/data-transfer-type-converters.js +63 -0
  340. package/lib/main/browser/data-transfer/data-transfer-type-converters.js.map +1 -0
  341. package/lib/main/browser/debug/debug-main.d.ts +52 -0
  342. package/lib/main/browser/debug/debug-main.d.ts.map +1 -0
  343. package/lib/main/browser/debug/debug-main.js +314 -0
  344. package/lib/main/browser/debug/debug-main.js.map +1 -0
  345. package/lib/main/browser/debug/plugin-debug-adapter-contribution.d.ts +19 -0
  346. package/lib/main/browser/debug/plugin-debug-adapter-contribution.d.ts.map +1 -0
  347. package/lib/main/browser/debug/plugin-debug-adapter-contribution.js +43 -0
  348. package/lib/main/browser/debug/plugin-debug-adapter-contribution.js.map +1 -0
  349. package/lib/main/browser/debug/plugin-debug-configuration-provider.d.ts +18 -0
  350. package/lib/main/browser/debug/plugin-debug-configuration-provider.d.ts.map +1 -0
  351. package/lib/main/browser/debug/plugin-debug-configuration-provider.js +40 -0
  352. package/lib/main/browser/debug/plugin-debug-configuration-provider.js.map +1 -0
  353. package/lib/main/browser/debug/plugin-debug-service.d.ts +56 -0
  354. package/lib/main/browser/debug/plugin-debug-service.d.ts.map +1 -0
  355. package/lib/main/browser/debug/plugin-debug-service.js +365 -0
  356. package/lib/main/browser/debug/plugin-debug-service.js.map +1 -0
  357. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.d.ts +31 -0
  358. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.d.ts.map +1 -0
  359. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.js +68 -0
  360. package/lib/main/browser/debug/plugin-debug-session-contribution-registry.js.map +1 -0
  361. package/lib/main/browser/debug/plugin-debug-session-factory.d.ts +59 -0
  362. package/lib/main/browser/debug/plugin-debug-session-factory.d.ts.map +1 -0
  363. package/lib/main/browser/debug/plugin-debug-session-factory.js +72 -0
  364. package/lib/main/browser/debug/plugin-debug-session-factory.js.map +1 -0
  365. package/lib/main/browser/decorations/decorations-main.d.ts +16 -0
  366. package/lib/main/browser/decorations/decorations-main.d.ts.map +1 -0
  367. package/lib/main/browser/decorations/decorations-main.js +120 -0
  368. package/lib/main/browser/decorations/decorations-main.js.map +1 -0
  369. package/lib/main/browser/dialogs/modal-notification.d.ts +19 -0
  370. package/lib/main/browser/dialogs/modal-notification.d.ts.map +1 -0
  371. package/lib/main/browser/dialogs/modal-notification.js +102 -0
  372. package/lib/main/browser/dialogs/modal-notification.js.map +1 -0
  373. package/lib/main/browser/dialogs-main.d.ts +17 -0
  374. package/lib/main/browser/dialogs-main.d.ts.map +1 -0
  375. package/lib/main/browser/dialogs-main.js +163 -0
  376. package/lib/main/browser/dialogs-main.js.map +1 -0
  377. package/lib/main/browser/documents-main.d.ts +51 -0
  378. package/lib/main/browser/documents-main.d.ts.map +1 -0
  379. package/lib/main/browser/documents-main.js +252 -0
  380. package/lib/main/browser/documents-main.js.map +1 -0
  381. package/lib/main/browser/editors-and-documents-main.d.ts +41 -0
  382. package/lib/main/browser/editors-and-documents-main.d.ts.map +1 -0
  383. package/lib/main/browser/editors-and-documents-main.js +357 -0
  384. package/lib/main/browser/editors-and-documents-main.js.map +1 -0
  385. package/lib/main/browser/env-main.d.ts +7 -0
  386. package/lib/main/browser/env-main.d.ts.map +1 -0
  387. package/lib/main/browser/env-main.js +64 -0
  388. package/lib/main/browser/env-main.js.map +1 -0
  389. package/lib/main/browser/file-system-main-impl.d.ts +29 -0
  390. package/lib/main/browser/file-system-main-impl.d.ts.map +1 -0
  391. package/lib/main/browser/file-system-main-impl.js +208 -0
  392. package/lib/main/browser/file-system-main-impl.js.map +1 -0
  393. package/lib/main/browser/hierarchy/hierarchy-types-converters.d.ts +25 -0
  394. package/lib/main/browser/hierarchy/hierarchy-types-converters.d.ts.map +1 -0
  395. package/lib/main/browser/hierarchy/hierarchy-types-converters.js +185 -0
  396. package/lib/main/browser/hierarchy/hierarchy-types-converters.js.map +1 -0
  397. package/lib/main/browser/keybindings/keybindings-contribution-handler.d.ts +10 -0
  398. package/lib/main/browser/keybindings/keybindings-contribution-handler.d.ts.map +1 -0
  399. package/lib/main/browser/keybindings/keybindings-contribution-handler.js +70 -0
  400. package/lib/main/browser/keybindings/keybindings-contribution-handler.js.map +1 -0
  401. package/lib/main/browser/label-service-main.d.ts +11 -0
  402. package/lib/main/browser/label-service-main.d.ts.map +1 -0
  403. package/lib/main/browser/label-service-main.js +47 -0
  404. package/lib/main/browser/label-service-main.js.map +1 -0
  405. package/lib/main/browser/languages-main.d.ts +144 -0
  406. package/lib/main/browser/languages-main.d.ts.map +1 -0
  407. package/lib/main/browser/languages-main.js +1179 -0
  408. package/lib/main/browser/languages-main.js.map +1 -0
  409. package/lib/main/browser/lm-main.d.ts +17 -0
  410. package/lib/main/browser/lm-main.d.ts.map +1 -0
  411. package/lib/main/browser/lm-main.js +154 -0
  412. package/lib/main/browser/lm-main.js.map +1 -0
  413. package/lib/main/browser/localization-main.d.ts +9 -0
  414. package/lib/main/browser/localization-main.d.ts.map +1 -0
  415. package/lib/main/browser/localization-main.js +32 -0
  416. package/lib/main/browser/localization-main.js.map +1 -0
  417. package/lib/main/browser/logger-main.d.ts +8 -0
  418. package/lib/main/browser/logger-main.d.ts.map +1 -0
  419. package/lib/main/browser/logger-main.js +53 -0
  420. package/lib/main/browser/logger-main.js.map +1 -0
  421. package/lib/main/browser/main-context.d.ts +4 -0
  422. package/lib/main/browser/main-context.d.ts.map +1 -0
  423. package/lib/main/browser/main-context.js +161 -0
  424. package/lib/main/browser/main-context.js.map +1 -0
  425. package/lib/main/browser/main-file-system-event-service.d.ts +8 -0
  426. package/lib/main/browser/main-file-system-event-service.d.ts.map +1 -0
  427. package/lib/main/browser/main-file-system-event-service.js +66 -0
  428. package/lib/main/browser/main-file-system-event-service.js.map +1 -0
  429. package/lib/main/browser/menus/menus-contribution-handler.d.ts +24 -0
  430. package/lib/main/browser/menus/menus-contribution-handler.d.ts.map +1 -0
  431. package/lib/main/browser/menus/menus-contribution-handler.js +208 -0
  432. package/lib/main/browser/menus/menus-contribution-handler.js.map +1 -0
  433. package/lib/main/browser/menus/plugin-menu-command-adapter.d.ts +24 -0
  434. package/lib/main/browser/menus/plugin-menu-command-adapter.d.ts.map +1 -0
  435. package/lib/main/browser/menus/plugin-menu-command-adapter.js +281 -0
  436. package/lib/main/browser/menus/plugin-menu-command-adapter.js.map +1 -0
  437. package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts +19 -0
  438. package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts.map +1 -0
  439. package/lib/main/browser/menus/vscode-theia-menu-mappings.js +115 -0
  440. package/lib/main/browser/menus/vscode-theia-menu-mappings.js.map +1 -0
  441. package/lib/main/browser/message-registry-main.d.ts +11 -0
  442. package/lib/main/browser/message-registry-main.d.ts.map +1 -0
  443. package/lib/main/browser/message-registry-main.js +41 -0
  444. package/lib/main/browser/message-registry-main.js.map +1 -0
  445. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts +52 -0
  446. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts.map +1 -0
  447. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js +208 -0
  448. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js.map +1 -0
  449. package/lib/main/browser/notebooks/notebook-documents-main.d.ts +30 -0
  450. package/lib/main/browser/notebooks/notebook-documents-main.d.ts.map +1 -0
  451. package/lib/main/browser/notebooks/notebook-documents-main.js +164 -0
  452. package/lib/main/browser/notebooks/notebook-documents-main.js.map +1 -0
  453. package/lib/main/browser/notebooks/notebook-dto.d.ts +18 -0
  454. package/lib/main/browser/notebooks/notebook-dto.d.ts.map +1 -0
  455. package/lib/main/browser/notebooks/notebook-dto.js +131 -0
  456. package/lib/main/browser/notebooks/notebook-dto.js.map +1 -0
  457. package/lib/main/browser/notebooks/notebook-editors-main.d.ts +21 -0
  458. package/lib/main/browser/notebooks/notebook-editors-main.d.ts.map +1 -0
  459. package/lib/main/browser/notebooks/notebook-editors-main.js +76 -0
  460. package/lib/main/browser/notebooks/notebook-editors-main.js.map +1 -0
  461. package/lib/main/browser/notebooks/notebook-kernels-main.d.ts +43 -0
  462. package/lib/main/browser/notebooks/notebook-kernels-main.d.ts.map +1 -0
  463. package/lib/main/browser/notebooks/notebook-kernels-main.js +274 -0
  464. package/lib/main/browser/notebooks/notebook-kernels-main.js.map +1 -0
  465. package/lib/main/browser/notebooks/notebook-renderers-main.d.ts +12 -0
  466. package/lib/main/browser/notebooks/notebook-renderers-main.d.ts.map +1 -0
  467. package/lib/main/browser/notebooks/notebook-renderers-main.js +39 -0
  468. package/lib/main/browser/notebooks/notebook-renderers-main.js.map +1 -0
  469. package/lib/main/browser/notebooks/notebooks-main.d.ts +25 -0
  470. package/lib/main/browser/notebooks/notebooks-main.d.ts.map +1 -0
  471. package/lib/main/browser/notebooks/notebooks-main.js +134 -0
  472. package/lib/main/browser/notebooks/notebooks-main.js.map +1 -0
  473. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +75 -0
  474. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -0
  475. package/lib/main/browser/notebooks/renderers/cell-output-webview.js +571 -0
  476. package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -0
  477. package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts +14 -0
  478. package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts.map +1 -0
  479. package/lib/main/browser/notebooks/renderers/output-webview-internal.js +660 -0
  480. package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -0
  481. package/lib/main/browser/notebooks/renderers/webview-communication.d.ts +127 -0
  482. package/lib/main/browser/notebooks/renderers/webview-communication.d.ts.map +1 -0
  483. package/lib/main/browser/notebooks/renderers/webview-communication.js +22 -0
  484. package/lib/main/browser/notebooks/renderers/webview-communication.js.map +1 -0
  485. package/lib/main/browser/notification-main.d.ts +7 -0
  486. package/lib/main/browser/notification-main.d.ts.map +1 -0
  487. package/lib/main/browser/notification-main.js +27 -0
  488. package/lib/main/browser/notification-main.js.map +1 -0
  489. package/lib/main/browser/output-channel-registry-main.d.ts +11 -0
  490. package/lib/main/browser/output-channel-registry-main.d.ts.map +1 -0
  491. package/lib/main/browser/output-channel-registry-main.js +53 -0
  492. package/lib/main/browser/output-channel-registry-main.js.map +1 -0
  493. package/lib/main/browser/plugin-authentication-service.d.ts +14 -0
  494. package/lib/main/browser/plugin-authentication-service.d.ts.map +1 -0
  495. package/lib/main/browser/plugin-authentication-service.js +73 -0
  496. package/lib/main/browser/plugin-authentication-service.js.map +1 -0
  497. package/lib/main/browser/plugin-contribution-handler.d.ts +75 -0
  498. package/lib/main/browser/plugin-contribution-handler.d.ts.map +1 -0
  499. package/lib/main/browser/plugin-contribution-handler.js +640 -0
  500. package/lib/main/browser/plugin-contribution-handler.js.map +1 -0
  501. package/lib/main/browser/plugin-ext-argument-processor.d.ts +12 -0
  502. package/lib/main/browser/plugin-ext-argument-processor.d.ts.map +1 -0
  503. package/lib/main/browser/plugin-ext-argument-processor.js +41 -0
  504. package/lib/main/browser/plugin-ext-argument-processor.js.map +1 -0
  505. package/lib/main/browser/plugin-ext-frontend-module.d.ts +8 -0
  506. package/lib/main/browser/plugin-ext-frontend-module.d.ts.map +1 -0
  507. package/lib/main/browser/plugin-ext-frontend-module.js +257 -0
  508. package/lib/main/browser/plugin-ext-frontend-module.js.map +1 -0
  509. package/lib/main/browser/plugin-ext-widget.d.ts +29 -0
  510. package/lib/main/browser/plugin-ext-widget.d.ts.map +1 -0
  511. package/lib/main/browser/plugin-ext-widget.js +122 -0
  512. package/lib/main/browser/plugin-ext-widget.js.map +1 -0
  513. package/lib/main/browser/plugin-frontend-contribution.d.ts +10 -0
  514. package/lib/main/browser/plugin-frontend-contribution.d.ts.map +1 -0
  515. package/lib/main/browser/plugin-frontend-contribution.js +72 -0
  516. package/lib/main/browser/plugin-frontend-contribution.js.map +1 -0
  517. package/lib/main/browser/plugin-frontend-view-contribution.d.ts +7 -0
  518. package/lib/main/browser/plugin-frontend-view-contribution.d.ts.map +1 -0
  519. package/lib/main/browser/plugin-frontend-view-contribution.js +43 -0
  520. package/lib/main/browser/plugin-frontend-view-contribution.js.map +1 -0
  521. package/lib/main/browser/plugin-icon-service.d.ts +17 -0
  522. package/lib/main/browser/plugin-icon-service.d.ts.map +1 -0
  523. package/lib/main/browser/plugin-icon-service.js +89 -0
  524. package/lib/main/browser/plugin-icon-service.js.map +1 -0
  525. package/lib/main/browser/plugin-icon-theme-service.d.ts +147 -0
  526. package/lib/main/browser/plugin-icon-theme-service.d.ts.map +1 -0
  527. package/lib/main/browser/plugin-icon-theme-service.js +554 -0
  528. package/lib/main/browser/plugin-icon-theme-service.js.map +1 -0
  529. package/lib/main/browser/plugin-shared-style.d.ts +41 -0
  530. package/lib/main/browser/plugin-shared-style.d.ts.map +1 -0
  531. package/lib/main/browser/plugin-shared-style.js +137 -0
  532. package/lib/main/browser/plugin-shared-style.js.map +1 -0
  533. package/lib/main/browser/plugin-storage.d.ts +14 -0
  534. package/lib/main/browser/plugin-storage.d.ts.map +1 -0
  535. package/lib/main/browser/plugin-storage.js +47 -0
  536. package/lib/main/browser/plugin-storage.js.map +1 -0
  537. package/lib/main/browser/plugin-terminal-registry.d.ts +5 -0
  538. package/lib/main/browser/plugin-terminal-registry.d.ts.map +1 -0
  539. package/lib/main/browser/plugin-terminal-registry.js +30 -0
  540. package/lib/main/browser/plugin-terminal-registry.js.map +1 -0
  541. package/lib/main/browser/preference-registry-main.d.ts +20 -0
  542. package/lib/main/browser/preference-registry-main.d.ts.map +1 -0
  543. package/lib/main/browser/preference-registry-main.js +107 -0
  544. package/lib/main/browser/preference-registry-main.js.map +1 -0
  545. package/lib/main/browser/quick-open-main.d.ts +36 -0
  546. package/lib/main/browser/quick-open-main.d.ts.map +1 -0
  547. package/lib/main/browser/quick-open-main.js +314 -0
  548. package/lib/main/browser/quick-open-main.js.map +1 -0
  549. package/lib/main/browser/scm-main.d.ts +108 -0
  550. package/lib/main/browser/scm-main.d.ts.map +1 -0
  551. package/lib/main/browser/scm-main.js +348 -0
  552. package/lib/main/browser/scm-main.js.map +1 -0
  553. package/lib/main/browser/secrets-main.d.ts +16 -0
  554. package/lib/main/browser/secrets-main.d.ts.map +1 -0
  555. package/lib/main/browser/secrets-main.js +91 -0
  556. package/lib/main/browser/secrets-main.js.map +1 -0
  557. package/lib/main/browser/selection-provider-command.d.ts +13 -0
  558. package/lib/main/browser/selection-provider-command.d.ts.map +1 -0
  559. package/lib/main/browser/selection-provider-command.js +49 -0
  560. package/lib/main/browser/selection-provider-command.js.map +1 -0
  561. package/lib/main/browser/status-bar-message-registry-main.d.ts +19 -0
  562. package/lib/main/browser/status-bar-message-registry-main.d.ts.map +1 -0
  563. package/lib/main/browser/status-bar-message-registry-main.js +54 -0
  564. package/lib/main/browser/status-bar-message-registry-main.js.map +1 -0
  565. package/lib/main/browser/tabs/tabs-main.d.ts +54 -0
  566. package/lib/main/browser/tabs/tabs-main.d.ts.map +1 -0
  567. package/lib/main/browser/tabs/tabs-main.js +368 -0
  568. package/lib/main/browser/tabs/tabs-main.js.map +1 -0
  569. package/lib/main/browser/tasks-main.d.ts +34 -0
  570. package/lib/main/browser/tasks-main.d.ts.map +1 -0
  571. package/lib/main/browser/tasks-main.js +209 -0
  572. package/lib/main/browser/tasks-main.js.map +1 -0
  573. package/lib/main/browser/terminal-main.d.ts +64 -0
  574. package/lib/main/browser/terminal-main.d.ts.map +1 -0
  575. package/lib/main/browser/terminal-main.js +331 -0
  576. package/lib/main/browser/terminal-main.js.map +1 -0
  577. package/lib/main/browser/test-main.d.ts +144 -0
  578. package/lib/main/browser/test-main.d.ts.map +1 -0
  579. package/lib/main/browser/test-main.js +563 -0
  580. package/lib/main/browser/test-main.js.map +1 -0
  581. package/lib/main/browser/text-editor-main.d.ts +53 -0
  582. package/lib/main/browser/text-editor-main.d.ts.map +1 -0
  583. package/lib/main/browser/text-editor-main.js +443 -0
  584. package/lib/main/browser/text-editor-main.js.map +1 -0
  585. package/lib/main/browser/text-editor-model-service.d.ts +35 -0
  586. package/lib/main/browser/text-editor-model-service.d.ts.map +1 -0
  587. package/lib/main/browser/text-editor-model-service.js +111 -0
  588. package/lib/main/browser/text-editor-model-service.js.map +1 -0
  589. package/lib/main/browser/text-editors-main.d.ts +41 -0
  590. package/lib/main/browser/text-editors-main.d.ts.map +1 -0
  591. package/lib/main/browser/text-editors-main.js +180 -0
  592. package/lib/main/browser/text-editors-main.js.map +1 -0
  593. package/lib/main/browser/theme-icon-override.d.ts +2 -0
  594. package/lib/main/browser/theme-icon-override.d.ts.map +1 -0
  595. package/lib/main/browser/theme-icon-override.js +245 -0
  596. package/lib/main/browser/theme-icon-override.js.map +1 -0
  597. package/lib/main/browser/theming-main.d.ts +10 -0
  598. package/lib/main/browser/theming-main.d.ts.map +1 -0
  599. package/lib/main/browser/theming-main.js +36 -0
  600. package/lib/main/browser/theming-main.js.map +1 -0
  601. package/lib/main/browser/timeline-main.d.ts +14 -0
  602. package/lib/main/browser/timeline-main.d.ts.map +1 -0
  603. package/lib/main/browser/timeline-main.js +51 -0
  604. package/lib/main/browser/timeline-main.js.map +1 -0
  605. package/lib/main/browser/uri-main.d.ts +16 -0
  606. package/lib/main/browser/uri-main.d.ts.map +1 -0
  607. package/lib/main/browser/uri-main.js +64 -0
  608. package/lib/main/browser/uri-main.js.map +1 -0
  609. package/lib/main/browser/view/dnd-file-content-store.d.ts +8 -0
  610. package/lib/main/browser/view/dnd-file-content-store.d.ts.map +1 -0
  611. package/lib/main/browser/view/dnd-file-content-store.js +47 -0
  612. package/lib/main/browser/view/dnd-file-content-store.js.map +1 -0
  613. package/lib/main/browser/view/plugin-tree-view-node-label-provider.d.ts +12 -0
  614. package/lib/main/browser/view/plugin-tree-view-node-label-provider.d.ts.map +1 -0
  615. package/lib/main/browser/view/plugin-tree-view-node-label-provider.js +83 -0
  616. package/lib/main/browser/view/plugin-tree-view-node-label-provider.js.map +1 -0
  617. package/lib/main/browser/view/plugin-view-registry.d.ts +112 -0
  618. package/lib/main/browser/view/plugin-view-registry.d.ts.map +1 -0
  619. package/lib/main/browser/view/plugin-view-registry.js +901 -0
  620. package/lib/main/browser/view/plugin-view-registry.js.map +1 -0
  621. package/lib/main/browser/view/plugin-view-widget.d.ts +53 -0
  622. package/lib/main/browser/view/plugin-view-widget.d.ts.map +1 -0
  623. package/lib/main/browser/view/plugin-view-widget.js +164 -0
  624. package/lib/main/browser/view/plugin-view-widget.js.map +1 -0
  625. package/lib/main/browser/view/tree-view-decorator-service.d.ts +31 -0
  626. package/lib/main/browser/view/tree-view-decorator-service.d.ts.map +1 -0
  627. package/lib/main/browser/view/tree-view-decorator-service.js +58 -0
  628. package/lib/main/browser/view/tree-view-decorator-service.js.map +1 -0
  629. package/lib/main/browser/view/tree-view-widget.d.ts +166 -0
  630. package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -0
  631. package/lib/main/browser/view/tree-view-widget.js +848 -0
  632. package/lib/main/browser/view/tree-view-widget.js.map +1 -0
  633. package/lib/main/browser/view/tree-views-main.d.ts +35 -0
  634. package/lib/main/browser/view/tree-views-main.d.ts.map +1 -0
  635. package/lib/main/browser/view/tree-views-main.js +179 -0
  636. package/lib/main/browser/view/tree-views-main.js.map +1 -0
  637. package/lib/main/browser/view/view-context-key-service.d.ts +17 -0
  638. package/lib/main/browser/view/view-context-key-service.d.ts.map +1 -0
  639. package/lib/main/browser/view/view-context-key-service.js +63 -0
  640. package/lib/main/browser/view/view-context-key-service.js.map +1 -0
  641. package/lib/main/browser/webview/webview-context-keys.d.ts +17 -0
  642. package/lib/main/browser/webview/webview-context-keys.d.ts.map +1 -0
  643. package/lib/main/browser/webview/webview-context-keys.js +65 -0
  644. package/lib/main/browser/webview/webview-context-keys.js.map +1 -0
  645. package/lib/main/browser/webview/webview-environment.d.ts +17 -0
  646. package/lib/main/browser/webview/webview-environment.d.ts.map +1 -0
  647. package/lib/main/browser/webview/webview-environment.js +89 -0
  648. package/lib/main/browser/webview/webview-environment.js.map +1 -0
  649. package/lib/main/browser/webview/webview-frontend-preference-contribution.d.ts +5 -0
  650. package/lib/main/browser/webview/webview-frontend-preference-contribution.d.ts.map +1 -0
  651. package/lib/main/browser/webview/webview-frontend-preference-contribution.js +40 -0
  652. package/lib/main/browser/webview/webview-frontend-preference-contribution.js.map +1 -0
  653. package/lib/main/browser/webview/webview-frontend-security-warnings.d.ts +12 -0
  654. package/lib/main/browser/webview/webview-frontend-security-warnings.d.ts.map +1 -0
  655. package/lib/main/browser/webview/webview-frontend-security-warnings.js +66 -0
  656. package/lib/main/browser/webview/webview-frontend-security-warnings.js.map +1 -0
  657. package/lib/main/browser/webview/webview-resource-cache.d.ts +18 -0
  658. package/lib/main/browser/webview/webview-resource-cache.d.ts.map +1 -0
  659. package/lib/main/browser/webview/webview-resource-cache.js +83 -0
  660. package/lib/main/browser/webview/webview-resource-cache.js.map +1 -0
  661. package/lib/main/browser/webview/webview-secondary-window-support.d.ts +8 -0
  662. package/lib/main/browser/webview/webview-secondary-window-support.d.ts.map +1 -0
  663. package/lib/main/browser/webview/webview-secondary-window-support.js +52 -0
  664. package/lib/main/browser/webview/webview-secondary-window-support.js.map +1 -0
  665. package/lib/main/browser/webview/webview-theme-data-provider.d.ts +31 -0
  666. package/lib/main/browser/webview/webview-theme-data-provider.d.ts.map +1 -0
  667. package/lib/main/browser/webview/webview-theme-data-provider.js +125 -0
  668. package/lib/main/browser/webview/webview-theme-data-provider.js.map +1 -0
  669. package/lib/main/browser/webview/webview-widget-factory.d.ts +9 -0
  670. package/lib/main/browser/webview/webview-widget-factory.d.ts.map +1 -0
  671. package/lib/main/browser/webview/webview-widget-factory.js +40 -0
  672. package/lib/main/browser/webview/webview-widget-factory.js.map +1 -0
  673. package/lib/main/browser/webview/webview.d.ts +150 -0
  674. package/lib/main/browser/webview/webview.d.ts.map +1 -0
  675. package/lib/main/browser/webview/webview.js +591 -0
  676. package/lib/main/browser/webview/webview.js.map +1 -0
  677. package/lib/main/browser/webview-views/webview-views-main.d.ts +34 -0
  678. package/lib/main/browser/webview-views/webview-views-main.d.ts.map +1 -0
  679. package/lib/main/browser/webview-views/webview-views-main.js +133 -0
  680. package/lib/main/browser/webview-views/webview-views-main.js.map +1 -0
  681. package/lib/main/browser/webview-views/webview-views.d.ts +16 -0
  682. package/lib/main/browser/webview-views/webview-views.d.ts.map +1 -0
  683. package/lib/main/browser/webview-views/webview-views.js +23 -0
  684. package/lib/main/browser/webview-views/webview-views.js.map +1 -0
  685. package/lib/main/browser/webviews-main.d.ts +40 -0
  686. package/lib/main/browser/webviews-main.d.ts.map +1 -0
  687. package/lib/main/browser/webviews-main.js +247 -0
  688. package/lib/main/browser/webviews-main.js.map +1 -0
  689. package/lib/main/browser/window-activity-tracker.d.ts +20 -0
  690. package/lib/main/browser/window-activity-tracker.d.ts.map +1 -0
  691. package/lib/main/browser/window-activity-tracker.js +86 -0
  692. package/lib/main/browser/window-activity-tracker.js.map +1 -0
  693. package/lib/main/browser/window-state-main.d.ts +18 -0
  694. package/lib/main/browser/window-state-main.d.ts.map +1 -0
  695. package/lib/main/browser/window-state-main.js +69 -0
  696. package/lib/main/browser/window-state-main.js.map +1 -0
  697. package/lib/main/browser/workspace-main.d.ts +98 -0
  698. package/lib/main/browser/workspace-main.d.ts.map +1 -0
  699. package/lib/main/browser/workspace-main.js +384 -0
  700. package/lib/main/browser/workspace-main.js.map +1 -0
  701. package/lib/main/common/basic-message-registry-main.d.ts +14 -0
  702. package/lib/main/common/basic-message-registry-main.d.ts.map +1 -0
  703. package/lib/main/common/basic-message-registry-main.js +50 -0
  704. package/lib/main/common/basic-message-registry-main.js.map +1 -0
  705. package/lib/main/common/basic-notification-main.d.ts +19 -0
  706. package/lib/main/common/basic-notification-main.d.ts.map +1 -0
  707. package/lib/main/common/basic-notification-main.js +75 -0
  708. package/lib/main/common/basic-notification-main.js.map +1 -0
  709. package/lib/main/common/env-main.d.ts +11 -0
  710. package/lib/main/common/env-main.d.ts.map +1 -0
  711. package/lib/main/common/env-main.js +40 -0
  712. package/lib/main/common/env-main.js.map +1 -0
  713. package/lib/main/common/plugin-paths-protocol.d.ts +9 -0
  714. package/lib/main/common/plugin-paths-protocol.d.ts.map +1 -0
  715. package/lib/main/common/plugin-paths-protocol.js +22 -0
  716. package/lib/main/common/plugin-paths-protocol.js.map +1 -0
  717. package/lib/main/common/plugin-theia-environment.d.ts +8 -0
  718. package/lib/main/common/plugin-theia-environment.d.ts.map +1 -0
  719. package/lib/main/common/plugin-theia-environment.js +40 -0
  720. package/lib/main/common/plugin-theia-environment.js.map +1 -0
  721. package/lib/main/common/webview-preferences.d.ts +13 -0
  722. package/lib/main/common/webview-preferences.d.ts.map +1 -0
  723. package/lib/main/common/webview-preferences.js +47 -0
  724. package/lib/main/common/webview-preferences.js.map +1 -0
  725. package/lib/main/common/webview-protocol.d.ts +13 -0
  726. package/lib/main/common/webview-protocol.d.ts.map +1 -0
  727. package/lib/main/common/webview-protocol.js +32 -0
  728. package/lib/main/common/webview-protocol.js.map +1 -0
  729. package/lib/main/electron-browser/plugin-ext-frontend-electron-module.d.ts +4 -0
  730. package/lib/main/electron-browser/plugin-ext-frontend-electron-module.d.ts.map +1 -0
  731. package/lib/main/electron-browser/plugin-ext-frontend-electron-module.js +26 -0
  732. package/lib/main/electron-browser/plugin-ext-frontend-electron-module.js.map +1 -0
  733. package/lib/main/electron-browser/webview/electron-webview-widget-factory.d.ts +24 -0
  734. package/lib/main/electron-browser/webview/electron-webview-widget-factory.d.ts.map +1 -0
  735. package/lib/main/electron-browser/webview/electron-webview-widget-factory.js +54 -0
  736. package/lib/main/electron-browser/webview/electron-webview-widget-factory.js.map +1 -0
  737. package/lib/main/node/errors.spec.d.ts +2 -0
  738. package/lib/main/node/errors.spec.d.ts.map +1 -0
  739. package/lib/main/node/errors.spec.js +36 -0
  740. package/lib/main/node/errors.spec.js.map +1 -0
  741. package/lib/main/node/handlers/plugin-theia-directory-handler.d.ts +19 -0
  742. package/lib/main/node/handlers/plugin-theia-directory-handler.d.ts.map +1 -0
  743. package/lib/main/node/handlers/plugin-theia-directory-handler.js +130 -0
  744. package/lib/main/node/handlers/plugin-theia-directory-handler.js.map +1 -0
  745. package/lib/main/node/handlers/plugin-theia-file-handler.d.ts +11 -0
  746. package/lib/main/node/handlers/plugin-theia-file-handler.d.ts.map +1 -0
  747. package/lib/main/node/handlers/plugin-theia-file-handler.js +67 -0
  748. package/lib/main/node/handlers/plugin-theia-file-handler.js.map +1 -0
  749. package/lib/main/node/paths/const.d.ts +6 -0
  750. package/lib/main/node/paths/const.d.ts.map +1 -0
  751. package/lib/main/node/paths/const.js +25 -0
  752. package/lib/main/node/paths/const.js.map +1 -0
  753. package/lib/main/node/paths/plugin-paths-service.d.ts +26 -0
  754. package/lib/main/node/paths/plugin-paths-service.d.ts.map +1 -0
  755. package/lib/main/node/paths/plugin-paths-service.js +153 -0
  756. package/lib/main/node/paths/plugin-paths-service.js.map +1 -0
  757. package/lib/main/node/plugin-cli-contribution.d.ts +22 -0
  758. package/lib/main/node/plugin-cli-contribution.d.ts.map +1 -0
  759. package/lib/main/node/plugin-cli-contribution.js +80 -0
  760. package/lib/main/node/plugin-cli-contribution.js.map +1 -0
  761. package/lib/main/node/plugin-deployer-contribution.d.ts +9 -0
  762. package/lib/main/node/plugin-deployer-contribution.d.ts.map +1 -0
  763. package/lib/main/node/plugin-deployer-contribution.js +41 -0
  764. package/lib/main/node/plugin-deployer-contribution.js.map +1 -0
  765. package/lib/main/node/plugin-deployer-directory-handler-context-impl.d.ts +8 -0
  766. package/lib/main/node/plugin-deployer-directory-handler-context-impl.d.ts.map +1 -0
  767. package/lib/main/node/plugin-deployer-directory-handler-context-impl.js +45 -0
  768. package/lib/main/node/plugin-deployer-directory-handler-context-impl.js.map +1 -0
  769. package/lib/main/node/plugin-deployer-entry-impl.d.ts +35 -0
  770. package/lib/main/node/plugin-deployer-entry-impl.d.ts.map +1 -0
  771. package/lib/main/node/plugin-deployer-entry-impl.js +112 -0
  772. package/lib/main/node/plugin-deployer-entry-impl.js.map +1 -0
  773. package/lib/main/node/plugin-deployer-file-handler-context-impl.d.ts +8 -0
  774. package/lib/main/node/plugin-deployer-file-handler-context-impl.d.ts.map +1 -0
  775. package/lib/main/node/plugin-deployer-file-handler-context-impl.js +32 -0
  776. package/lib/main/node/plugin-deployer-file-handler-context-impl.js.map +1 -0
  777. package/lib/main/node/plugin-deployer-impl.d.ts +64 -0
  778. package/lib/main/node/plugin-deployer-impl.d.ts.map +1 -0
  779. package/lib/main/node/plugin-deployer-impl.js +350 -0
  780. package/lib/main/node/plugin-deployer-impl.js.map +1 -0
  781. package/lib/main/node/plugin-deployer-proxy-entry-impl.d.ts +30 -0
  782. package/lib/main/node/plugin-deployer-proxy-entry-impl.d.ts.map +1 -0
  783. package/lib/main/node/plugin-deployer-proxy-entry-impl.js +93 -0
  784. package/lib/main/node/plugin-deployer-proxy-entry-impl.js.map +1 -0
  785. package/lib/main/node/plugin-deployer-resolver-context-impl.d.ts +16 -0
  786. package/lib/main/node/plugin-deployer-resolver-context-impl.d.ts.map +1 -0
  787. package/lib/main/node/plugin-deployer-resolver-context-impl.js +43 -0
  788. package/lib/main/node/plugin-deployer-resolver-context-impl.js.map +1 -0
  789. package/lib/main/node/plugin-ext-backend-module.d.ts +3 -0
  790. package/lib/main/node/plugin-ext-backend-module.d.ts.map +1 -0
  791. package/lib/main/node/plugin-ext-backend-module.js +84 -0
  792. package/lib/main/node/plugin-ext-backend-module.js.map +1 -0
  793. package/lib/main/node/plugin-github-resolver.d.ts +24 -0
  794. package/lib/main/node/plugin-github-resolver.d.ts.map +1 -0
  795. package/lib/main/node/plugin-github-resolver.js +136 -0
  796. package/lib/main/node/plugin-github-resolver.js.map +1 -0
  797. package/lib/main/node/plugin-http-resolver.d.ts +21 -0
  798. package/lib/main/node/plugin-http-resolver.d.ts.map +1 -0
  799. package/lib/main/node/plugin-http-resolver.js +92 -0
  800. package/lib/main/node/plugin-http-resolver.js.map +1 -0
  801. package/lib/main/node/plugin-localization-server.d.ts +10 -0
  802. package/lib/main/node/plugin-localization-server.d.ts.map +1 -0
  803. package/lib/main/node/plugin-localization-server.js +51 -0
  804. package/lib/main/node/plugin-localization-server.js.map +1 -0
  805. package/lib/main/node/plugin-mgmt-cli-contribution.d.ts +13 -0
  806. package/lib/main/node/plugin-mgmt-cli-contribution.d.ts.map +1 -0
  807. package/lib/main/node/plugin-mgmt-cli-contribution.js +63 -0
  808. package/lib/main/node/plugin-mgmt-cli-contribution.js.map +1 -0
  809. package/lib/main/node/plugin-remote-cli-contribution.d.ts +8 -0
  810. package/lib/main/node/plugin-remote-cli-contribution.d.ts.map +1 -0
  811. package/lib/main/node/plugin-remote-cli-contribution.js +40 -0
  812. package/lib/main/node/plugin-remote-cli-contribution.js.map +1 -0
  813. package/lib/main/node/plugin-remote-copy-contribution.d.ts +7 -0
  814. package/lib/main/node/plugin-remote-copy-contribution.d.ts.map +1 -0
  815. package/lib/main/node/plugin-remote-copy-contribution.js +44 -0
  816. package/lib/main/node/plugin-remote-copy-contribution.js.map +1 -0
  817. package/lib/main/node/plugin-server-impl.d.ts +24 -0
  818. package/lib/main/node/plugin-server-impl.d.ts.map +1 -0
  819. package/lib/main/node/plugin-server-impl.js +88 -0
  820. package/lib/main/node/plugin-server-impl.js.map +1 -0
  821. package/lib/main/node/plugin-service.d.ts +24 -0
  822. package/lib/main/node/plugin-service.d.ts.map +1 -0
  823. package/lib/main/node/plugin-service.js +102 -0
  824. package/lib/main/node/plugin-service.js.map +1 -0
  825. package/lib/main/node/plugin-theia-deployer-participant.d.ts +7 -0
  826. package/lib/main/node/plugin-theia-deployer-participant.d.ts.map +1 -0
  827. package/lib/main/node/plugin-theia-deployer-participant.js +36 -0
  828. package/lib/main/node/plugin-theia-deployer-participant.js.map +1 -0
  829. package/lib/main/node/plugin-uninstallation-manager.d.ts +27 -0
  830. package/lib/main/node/plugin-uninstallation-manager.d.ts.map +1 -0
  831. package/lib/main/node/plugin-uninstallation-manager.js +133 -0
  832. package/lib/main/node/plugin-uninstallation-manager.js.map +1 -0
  833. package/lib/main/node/plugins-key-value-storage.d.ts +29 -0
  834. package/lib/main/node/plugins-key-value-storage.d.ts.map +1 -0
  835. package/lib/main/node/plugins-key-value-storage.js +160 -0
  836. package/lib/main/node/plugins-key-value-storage.js.map +1 -0
  837. package/lib/main/node/plugins-key-value-storage.spec.d.ts +17 -0
  838. package/lib/main/node/plugins-key-value-storage.spec.d.ts.map +1 -0
  839. package/lib/main/node/plugins-key-value-storage.spec.js +101 -0
  840. package/lib/main/node/plugins-key-value-storage.spec.js.map +1 -0
  841. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.d.ts +8 -0
  842. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.d.ts.map +1 -0
  843. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js +39 -0
  844. package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js.map +1 -0
  845. package/lib/main/node/resolvers/local-plugin-deployer-resolver.d.ts +9 -0
  846. package/lib/main/node/resolvers/local-plugin-deployer-resolver.d.ts.map +1 -0
  847. package/lib/main/node/resolvers/local-plugin-deployer-resolver.js +55 -0
  848. package/lib/main/node/resolvers/local-plugin-deployer-resolver.js.map +1 -0
  849. package/lib/main/node/temp-dir-util.d.ts +3 -0
  850. package/lib/main/node/temp-dir-util.d.ts.map +1 -0
  851. package/lib/main/node/temp-dir-util.js +40 -0
  852. package/lib/main/node/temp-dir-util.js.map +1 -0
  853. package/lib/main/node/webview-backend-security-warnings.d.ts +6 -0
  854. package/lib/main/node/webview-backend-security-warnings.d.ts.map +1 -0
  855. package/lib/main/node/webview-backend-security-warnings.js +47 -0
  856. package/lib/main/node/webview-backend-security-warnings.js.map +1 -0
  857. package/lib/plugin/authentication-ext.d.ts +32 -0
  858. package/lib/plugin/authentication-ext.d.ts.map +1 -0
  859. package/lib/plugin/authentication-ext.js +108 -0
  860. package/lib/plugin/authentication-ext.js.map +1 -0
  861. package/lib/plugin/clipboard-ext.d.ts +11 -0
  862. package/lib/plugin/clipboard-ext.d.ts.map +1 -0
  863. package/lib/plugin/clipboard-ext.js +48 -0
  864. package/lib/plugin/clipboard-ext.js.map +1 -0
  865. package/lib/plugin/command-registry.d.ts +42 -0
  866. package/lib/plugin/command-registry.d.ts.map +1 -0
  867. package/lib/plugin/command-registry.js +183 -0
  868. package/lib/plugin/command-registry.js.map +1 -0
  869. package/lib/plugin/comments.d.ts +96 -0
  870. package/lib/plugin/comments.d.ts.map +1 -0
  871. package/lib/plugin/comments.js +406 -0
  872. package/lib/plugin/comments.js.map +1 -0
  873. package/lib/plugin/custom-editors.d.ts +46 -0
  874. package/lib/plugin/custom-editors.d.ts.map +1 -0
  875. package/lib/plugin/custom-editors.js +254 -0
  876. package/lib/plugin/custom-editors.js.map +1 -0
  877. package/lib/plugin/debug/debug-ext.d.ts +97 -0
  878. package/lib/plugin/debug/debug-ext.d.ts.map +1 -0
  879. package/lib/plugin/debug/debug-ext.js +459 -0
  880. package/lib/plugin/debug/debug-ext.js.map +1 -0
  881. package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts +11 -0
  882. package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts.map +1 -0
  883. package/lib/plugin/debug/plugin-debug-adapter-creator.js +42 -0
  884. package/lib/plugin/debug/plugin-debug-adapter-creator.js.map +1 -0
  885. package/lib/plugin/debug/plugin-debug-adapter-session.d.ts +27 -0
  886. package/lib/plugin/debug/plugin-debug-adapter-session.d.ts.map +1 -0
  887. package/lib/plugin/debug/plugin-debug-adapter-session.js +97 -0
  888. package/lib/plugin/debug/plugin-debug-adapter-session.js.map +1 -0
  889. package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts +13 -0
  890. package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts.map +1 -0
  891. package/lib/plugin/debug/plugin-debug-adapter-tracker.js +78 -0
  892. package/lib/plugin/debug/plugin-debug-adapter-tracker.js.map +1 -0
  893. package/lib/plugin/decorations.d.ts +16 -0
  894. package/lib/plugin/decorations.d.ts.map +1 -0
  895. package/lib/plugin/decorations.js +115 -0
  896. package/lib/plugin/decorations.js.map +1 -0
  897. package/lib/plugin/dialogs.d.ts +11 -0
  898. package/lib/plugin/dialogs.d.ts.map +1 -0
  899. package/lib/plugin/dialogs.js +92 -0
  900. package/lib/plugin/dialogs.js.map +1 -0
  901. package/lib/plugin/document-data.d.ts +41 -0
  902. package/lib/plugin/document-data.d.ts.map +1 -0
  903. package/lib/plugin/document-data.js +316 -0
  904. package/lib/plugin/document-data.js.map +1 -0
  905. package/lib/plugin/documents.d.ts +63 -0
  906. package/lib/plugin/documents.d.ts.map +1 -0
  907. package/lib/plugin/documents.js +272 -0
  908. package/lib/plugin/documents.js.map +1 -0
  909. package/lib/plugin/editors-and-documents.d.ts +27 -0
  910. package/lib/plugin/editors-and-documents.d.ts.map +1 -0
  911. package/lib/plugin/editors-and-documents.js +150 -0
  912. package/lib/plugin/editors-and-documents.js.map +1 -0
  913. package/lib/plugin/env.d.ts +41 -0
  914. package/lib/plugin/env.d.ts.map +1 -0
  915. package/lib/plugin/env.js +114 -0
  916. package/lib/plugin/env.js.map +1 -0
  917. package/lib/plugin/file-system-event-service-ext-impl.d.ts +56 -0
  918. package/lib/plugin/file-system-event-service-ext-impl.d.ts.map +1 -0
  919. package/lib/plugin/file-system-event-service-ext-impl.js +206 -0
  920. package/lib/plugin/file-system-event-service-ext-impl.js.map +1 -0
  921. package/lib/plugin/file-system-ext-impl.d.ts +82 -0
  922. package/lib/plugin/file-system-ext-impl.d.ts.map +1 -0
  923. package/lib/plugin/file-system-ext-impl.js +361 -0
  924. package/lib/plugin/file-system-ext-impl.js.map +1 -0
  925. package/lib/plugin/file-system-watcher.spec.d.ts +2 -0
  926. package/lib/plugin/file-system-watcher.spec.d.ts.map +1 -0
  927. package/lib/plugin/file-system-watcher.spec.js +108 -0
  928. package/lib/plugin/file-system-watcher.spec.js.map +1 -0
  929. package/lib/plugin/known-commands.d.ts +6 -0
  930. package/lib/plugin/known-commands.d.ts.map +1 -0
  931. package/lib/plugin/known-commands.js +402 -0
  932. package/lib/plugin/known-commands.js.map +1 -0
  933. package/lib/plugin/known-commands.spec.d.ts +2 -0
  934. package/lib/plugin/known-commands.spec.d.ts.map +1 -0
  935. package/lib/plugin/known-commands.spec.js +43 -0
  936. package/lib/plugin/known-commands.spec.js.map +1 -0
  937. package/lib/plugin/label-service.d.ts +12 -0
  938. package/lib/plugin/label-service.d.ts.map +1 -0
  939. package/lib/plugin/label-service.js +36 -0
  940. package/lib/plugin/label-service.js.map +1 -0
  941. package/lib/plugin/languages/call-hierarchy.d.ts +21 -0
  942. package/lib/plugin/languages/call-hierarchy.d.ts.map +1 -0
  943. package/lib/plugin/languages/call-hierarchy.js +102 -0
  944. package/lib/plugin/languages/call-hierarchy.js.map +1 -0
  945. package/lib/plugin/languages/code-action.d.ts +25 -0
  946. package/lib/plugin/languages/code-action.d.ts.map +1 -0
  947. package/lib/plugin/languages/code-action.js +138 -0
  948. package/lib/plugin/languages/code-action.js.map +1 -0
  949. package/lib/plugin/languages/color.d.ts +13 -0
  950. package/lib/plugin/languages/color.d.ts.map +1 -0
  951. package/lib/plugin/languages/color.js +59 -0
  952. package/lib/plugin/languages/color.js.map +1 -0
  953. package/lib/plugin/languages/completion.d.ts +21 -0
  954. package/lib/plugin/languages/completion.d.ts.map +1 -0
  955. package/lib/plugin/languages/completion.js +165 -0
  956. package/lib/plugin/languages/completion.js.map +1 -0
  957. package/lib/plugin/languages/declaration.d.ts +12 -0
  958. package/lib/plugin/languages/declaration.d.ts.map +1 -0
  959. package/lib/plugin/languages/declaration.js +59 -0
  960. package/lib/plugin/languages/declaration.js.map +1 -0
  961. package/lib/plugin/languages/definition.d.ts +12 -0
  962. package/lib/plugin/languages/definition.d.ts.map +1 -0
  963. package/lib/plugin/languages/definition.js +59 -0
  964. package/lib/plugin/languages/definition.js.map +1 -0
  965. package/lib/plugin/languages/diagnostics.d.ts +51 -0
  966. package/lib/plugin/languages/diagnostics.d.ts.map +1 -0
  967. package/lib/plugin/languages/diagnostics.js +288 -0
  968. package/lib/plugin/languages/diagnostics.js.map +1 -0
  969. package/lib/plugin/languages/document-drop-edit.d.ts +16 -0
  970. package/lib/plugin/languages/document-drop-edit.d.ts.map +1 -0
  971. package/lib/plugin/languages/document-drop-edit.js +23 -0
  972. package/lib/plugin/languages/document-drop-edit.js.map +1 -0
  973. package/lib/plugin/languages/document-formatting.d.ts +11 -0
  974. package/lib/plugin/languages/document-formatting.d.ts.map +1 -0
  975. package/lib/plugin/languages/document-formatting.js +41 -0
  976. package/lib/plugin/languages/document-formatting.js.map +1 -0
  977. package/lib/plugin/languages/document-highlight.d.ts +13 -0
  978. package/lib/plugin/languages/document-highlight.d.ts.map +1 -0
  979. package/lib/plugin/languages/document-highlight.js +51 -0
  980. package/lib/plugin/languages/document-highlight.js.map +1 -0
  981. package/lib/plugin/languages/evaluatable-expression.d.ts +12 -0
  982. package/lib/plugin/languages/evaluatable-expression.d.ts.map +1 -0
  983. package/lib/plugin/languages/evaluatable-expression.js +41 -0
  984. package/lib/plugin/languages/evaluatable-expression.js.map +1 -0
  985. package/lib/plugin/languages/folding.d.ts +11 -0
  986. package/lib/plugin/languages/folding.d.ts.map +1 -0
  987. package/lib/plugin/languages/folding.js +40 -0
  988. package/lib/plugin/languages/folding.js.map +1 -0
  989. package/lib/plugin/languages/hover.d.ts +12 -0
  990. package/lib/plugin/languages/hover.d.ts.map +1 -0
  991. package/lib/plugin/languages/hover.js +49 -0
  992. package/lib/plugin/languages/hover.js.map +1 -0
  993. package/lib/plugin/languages/implementation.d.ts +12 -0
  994. package/lib/plugin/languages/implementation.d.ts.map +1 -0
  995. package/lib/plugin/languages/implementation.js +59 -0
  996. package/lib/plugin/languages/implementation.js.map +1 -0
  997. package/lib/plugin/languages/inlay-hints.d.ts +20 -0
  998. package/lib/plugin/languages/inlay-hints.d.ts.map +1 -0
  999. package/lib/plugin/languages/inlay-hints.js +128 -0
  1000. package/lib/plugin/languages/inlay-hints.js.map +1 -0
  1001. package/lib/plugin/languages/inline-completion.d.ts +21 -0
  1002. package/lib/plugin/languages/inline-completion.d.ts.map +1 -0
  1003. package/lib/plugin/languages/inline-completion.js +94 -0
  1004. package/lib/plugin/languages/inline-completion.js.map +1 -0
  1005. package/lib/plugin/languages/inline-values.d.ts +11 -0
  1006. package/lib/plugin/languages/inline-values.d.ts.map +1 -0
  1007. package/lib/plugin/languages/inline-values.js +45 -0
  1008. package/lib/plugin/languages/inline-values.js.map +1 -0
  1009. package/lib/plugin/languages/lens.d.ts +20 -0
  1010. package/lib/plugin/languages/lens.d.ts.map +1 -0
  1011. package/lib/plugin/languages/lens.js +90 -0
  1012. package/lib/plugin/languages/lens.js.map +1 -0
  1013. package/lib/plugin/languages/link-provider.d.ts +15 -0
  1014. package/lib/plugin/languages/link-provider.d.ts.map +1 -0
  1015. package/lib/plugin/languages/link-provider.js +74 -0
  1016. package/lib/plugin/languages/link-provider.js.map +1 -0
  1017. package/lib/plugin/languages/linked-editing-range.d.ts +12 -0
  1018. package/lib/plugin/languages/linked-editing-range.d.ts.map +1 -0
  1019. package/lib/plugin/languages/linked-editing-range.js +41 -0
  1020. package/lib/plugin/languages/linked-editing-range.js.map +1 -0
  1021. package/lib/plugin/languages/on-type-formatting.d.ts +12 -0
  1022. package/lib/plugin/languages/on-type-formatting.d.ts.map +1 -0
  1023. package/lib/plugin/languages/on-type-formatting.js +42 -0
  1024. package/lib/plugin/languages/on-type-formatting.js.map +1 -0
  1025. package/lib/plugin/languages/outline.d.ts +21 -0
  1026. package/lib/plugin/languages/outline.d.ts.map +1 -0
  1027. package/lib/plugin/languages/outline.js +116 -0
  1028. package/lib/plugin/languages/outline.js.map +1 -0
  1029. package/lib/plugin/languages/range-formatting.d.ts +11 -0
  1030. package/lib/plugin/languages/range-formatting.d.ts.map +1 -0
  1031. package/lib/plugin/languages/range-formatting.js +42 -0
  1032. package/lib/plugin/languages/range-formatting.js.map +1 -0
  1033. package/lib/plugin/languages/reference.d.ts +12 -0
  1034. package/lib/plugin/languages/reference.d.ts.map +1 -0
  1035. package/lib/plugin/languages/reference.js +48 -0
  1036. package/lib/plugin/languages/reference.js.map +1 -0
  1037. package/lib/plugin/languages/rename.d.ts +15 -0
  1038. package/lib/plugin/languages/rename.d.ts.map +1 -0
  1039. package/lib/plugin/languages/rename.js +115 -0
  1040. package/lib/plugin/languages/rename.js.map +1 -0
  1041. package/lib/plugin/languages/selection-range.d.ts +12 -0
  1042. package/lib/plugin/languages/selection-range.d.ts.map +1 -0
  1043. package/lib/plugin/languages/selection-range.js +66 -0
  1044. package/lib/plugin/languages/selection-range.js.map +1 -0
  1045. package/lib/plugin/languages/semantic-highlighting.d.ts +29 -0
  1046. package/lib/plugin/languages/semantic-highlighting.d.ts.map +1 -0
  1047. package/lib/plugin/languages/semantic-highlighting.js +176 -0
  1048. package/lib/plugin/languages/semantic-highlighting.js.map +1 -0
  1049. package/lib/plugin/languages/signature.d.ts +16 -0
  1050. package/lib/plugin/languages/signature.d.ts.map +1 -0
  1051. package/lib/plugin/languages/signature.js +72 -0
  1052. package/lib/plugin/languages/signature.js.map +1 -0
  1053. package/lib/plugin/languages/type-definition.d.ts +12 -0
  1054. package/lib/plugin/languages/type-definition.d.ts.map +1 -0
  1055. package/lib/plugin/languages/type-definition.js +59 -0
  1056. package/lib/plugin/languages/type-definition.js.map +1 -0
  1057. package/lib/plugin/languages/type-hierarchy.d.ts +19 -0
  1058. package/lib/plugin/languages/type-hierarchy.d.ts.map +1 -0
  1059. package/lib/plugin/languages/type-hierarchy.js +96 -0
  1060. package/lib/plugin/languages/type-hierarchy.js.map +1 -0
  1061. package/lib/plugin/languages/util.d.ts +5 -0
  1062. package/lib/plugin/languages/util.d.ts.map +1 -0
  1063. package/lib/plugin/languages/util.js +28 -0
  1064. package/lib/plugin/languages/util.js.map +1 -0
  1065. package/lib/plugin/languages/workspace-symbol.d.ts +9 -0
  1066. package/lib/plugin/languages/workspace-symbol.d.ts.map +1 -0
  1067. package/lib/plugin/languages/workspace-symbol.js +62 -0
  1068. package/lib/plugin/languages/workspace-symbol.js.map +1 -0
  1069. package/lib/plugin/languages-utils.d.ts +7 -0
  1070. package/lib/plugin/languages-utils.d.ts.map +1 -0
  1071. package/lib/plugin/languages-utils.js +66 -0
  1072. package/lib/plugin/languages-utils.js.map +1 -0
  1073. package/lib/plugin/languages.d.ts +128 -0
  1074. package/lib/plugin/languages.d.ts.map +1 -0
  1075. package/lib/plugin/languages.js +720 -0
  1076. package/lib/plugin/languages.js.map +1 -0
  1077. package/lib/plugin/lm-ext.d.ts +28 -0
  1078. package/lib/plugin/lm-ext.d.ts.map +1 -0
  1079. package/lib/plugin/lm-ext.js +131 -0
  1080. package/lib/plugin/lm-ext.js.map +1 -0
  1081. package/lib/plugin/localization-ext.d.ts +19 -0
  1082. package/lib/plugin/localization-ext.d.ts.map +1 -0
  1083. package/lib/plugin/localization-ext.js +94 -0
  1084. package/lib/plugin/localization-ext.js.map +1 -0
  1085. package/lib/plugin/logger.d.ts +16 -0
  1086. package/lib/plugin/logger.d.ts.map +1 -0
  1087. package/lib/plugin/logger.js +56 -0
  1088. package/lib/plugin/logger.js.map +1 -0
  1089. package/lib/plugin/markdown-string.d.ts +25 -0
  1090. package/lib/plugin/markdown-string.d.ts.map +1 -0
  1091. package/lib/plugin/markdown-string.js +106 -0
  1092. package/lib/plugin/markdown-string.js.map +1 -0
  1093. package/lib/plugin/message-registry.d.ts +10 -0
  1094. package/lib/plugin/message-registry.d.ts.map +1 -0
  1095. package/lib/plugin/message-registry.js +77 -0
  1096. package/lib/plugin/message-registry.js.map +1 -0
  1097. package/lib/plugin/node/debug/debug.spec.d.ts +2 -0
  1098. package/lib/plugin/node/debug/debug.spec.d.ts.map +1 -0
  1099. package/lib/plugin/node/debug/debug.spec.js +88 -0
  1100. package/lib/plugin/node/debug/debug.spec.js.map +1 -0
  1101. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts +18 -0
  1102. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts.map +1 -0
  1103. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.js +155 -0
  1104. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.js.map +1 -0
  1105. package/lib/plugin/node/env-node-ext.d.ts +17 -0
  1106. package/lib/plugin/node/env-node-ext.d.ts.map +1 -0
  1107. package/lib/plugin/node/env-node-ext.js +64 -0
  1108. package/lib/plugin/node/env-node-ext.js.map +1 -0
  1109. package/lib/plugin/node/plugin-container-module.d.ts +75 -0
  1110. package/lib/plugin/node/plugin-container-module.d.ts.map +1 -0
  1111. package/lib/plugin/node/plugin-container-module.js +115 -0
  1112. package/lib/plugin/node/plugin-container-module.js.map +1 -0
  1113. package/lib/plugin/notebook/notebook-document.d.ts +60 -0
  1114. package/lib/plugin/notebook/notebook-document.d.ts.map +1 -0
  1115. package/lib/plugin/notebook/notebook-document.js +383 -0
  1116. package/lib/plugin/notebook/notebook-document.js.map +1 -0
  1117. package/lib/plugin/notebook/notebook-documents.d.ts +17 -0
  1118. package/lib/plugin/notebook/notebook-documents.d.ts.map +1 -0
  1119. package/lib/plugin/notebook/notebook-documents.js +48 -0
  1120. package/lib/plugin/notebook/notebook-documents.js.map +1 -0
  1121. package/lib/plugin/notebook/notebook-editor.d.ts +21 -0
  1122. package/lib/plugin/notebook/notebook-editor.d.ts.map +1 -0
  1123. package/lib/plugin/notebook/notebook-editor.js +99 -0
  1124. package/lib/plugin/notebook/notebook-editor.js.map +1 -0
  1125. package/lib/plugin/notebook/notebook-editors.d.ts +14 -0
  1126. package/lib/plugin/notebook/notebook-editors.d.ts.map +1 -0
  1127. package/lib/plugin/notebook/notebook-editors.js +65 -0
  1128. package/lib/plugin/notebook/notebook-editors.js.map +1 -0
  1129. package/lib/plugin/notebook/notebook-kernels.d.ts +40 -0
  1130. package/lib/plugin/notebook/notebook-kernels.d.ts.map +1 -0
  1131. package/lib/plugin/notebook/notebook-kernels.js +536 -0
  1132. package/lib/plugin/notebook/notebook-kernels.js.map +1 -0
  1133. package/lib/plugin/notebook/notebook-renderers.d.ts +14 -0
  1134. package/lib/plugin/notebook/notebook-renderers.d.ts.map +1 -0
  1135. package/lib/plugin/notebook/notebook-renderers.js +63 -0
  1136. package/lib/plugin/notebook/notebook-renderers.js.map +1 -0
  1137. package/lib/plugin/notebook/notebooks.d.ts +62 -0
  1138. package/lib/plugin/notebook/notebooks.d.ts.map +1 -0
  1139. package/lib/plugin/notebook/notebooks.js +381 -0
  1140. package/lib/plugin/notebook/notebooks.js.map +1 -0
  1141. package/lib/plugin/notification.d.ts +18 -0
  1142. package/lib/plugin/notification.d.ts.map +1 -0
  1143. package/lib/plugin/notification.js +68 -0
  1144. package/lib/plugin/notification.js.map +1 -0
  1145. package/lib/plugin/output-channel/log-output-channel.d.ts +24 -0
  1146. package/lib/plugin/output-channel/log-output-channel.d.ts.map +1 -0
  1147. package/lib/plugin/output-channel/log-output-channel.js +101 -0
  1148. package/lib/plugin/output-channel/log-output-channel.js.map +1 -0
  1149. package/lib/plugin/output-channel/output-channel-item.d.ts +18 -0
  1150. package/lib/plugin/output-channel/output-channel-item.d.ts.map +1 -0
  1151. package/lib/plugin/output-channel/output-channel-item.js +60 -0
  1152. package/lib/plugin/output-channel/output-channel-item.js.map +1 -0
  1153. package/lib/plugin/output-channel-registry.d.ts +14 -0
  1154. package/lib/plugin/output-channel-registry.d.ts.map +1 -0
  1155. package/lib/plugin/output-channel-registry.js +45 -0
  1156. package/lib/plugin/output-channel-registry.js.map +1 -0
  1157. package/lib/plugin/path.d.ts +3 -0
  1158. package/lib/plugin/path.d.ts.map +1 -0
  1159. package/lib/plugin/path.js +60 -0
  1160. package/lib/plugin/path.js.map +1 -0
  1161. package/lib/plugin/path.spec.d.ts +2 -0
  1162. package/lib/plugin/path.spec.d.ts.map +1 -0
  1163. package/lib/plugin/path.spec.js +35 -0
  1164. package/lib/plugin/path.spec.js.map +1 -0
  1165. package/lib/plugin/plugin-context.d.ts +60 -0
  1166. package/lib/plugin/plugin-context.d.ts.map +1 -0
  1167. package/lib/plugin/plugin-context.js +1351 -0
  1168. package/lib/plugin/plugin-context.js.map +1 -0
  1169. package/lib/plugin/plugin-icon-path.d.ts +13 -0
  1170. package/lib/plugin/plugin-icon-path.d.ts.map +1 -0
  1171. package/lib/plugin/plugin-icon-path.js +54 -0
  1172. package/lib/plugin/plugin-icon-path.js.map +1 -0
  1173. package/lib/plugin/plugin-manager.d.ts +96 -0
  1174. package/lib/plugin/plugin-manager.d.ts.map +1 -0
  1175. package/lib/plugin/plugin-manager.js +434 -0
  1176. package/lib/plugin/plugin-manager.js.map +1 -0
  1177. package/lib/plugin/plugin-storage.d.ts +45 -0
  1178. package/lib/plugin/plugin-storage.d.ts.map +1 -0
  1179. package/lib/plugin/plugin-storage.js +109 -0
  1180. package/lib/plugin/plugin-storage.js.map +1 -0
  1181. package/lib/plugin/preference-registry.d.ts +41 -0
  1182. package/lib/plugin/preference-registry.d.ts.map +1 -0
  1183. package/lib/plugin/preference-registry.js +337 -0
  1184. package/lib/plugin/preference-registry.js.map +1 -0
  1185. package/lib/plugin/preference-registry.spec.d.ts +2 -0
  1186. package/lib/plugin/preference-registry.spec.d.ts.map +1 -0
  1187. package/lib/plugin/preference-registry.spec.js +247 -0
  1188. package/lib/plugin/preference-registry.spec.js.map +1 -0
  1189. package/lib/plugin/prefix-sum-computer.d.ts +31 -0
  1190. package/lib/plugin/prefix-sum-computer.d.ts.map +1 -0
  1191. package/lib/plugin/prefix-sum-computer.js +173 -0
  1192. package/lib/plugin/prefix-sum-computer.js.map +1 -0
  1193. package/lib/plugin/quick-open.d.ts +182 -0
  1194. package/lib/plugin/quick-open.d.ts.map +1 -0
  1195. package/lib/plugin/quick-open.js +605 -0
  1196. package/lib/plugin/quick-open.js.map +1 -0
  1197. package/lib/plugin/scm.d.ts +55 -0
  1198. package/lib/plugin/scm.d.ts.map +1 -0
  1199. package/lib/plugin/scm.js +740 -0
  1200. package/lib/plugin/scm.js.map +1 -0
  1201. package/lib/plugin/secrets-ext.d.ts +43 -0
  1202. package/lib/plugin/secrets-ext.d.ts.map +1 -0
  1203. package/lib/plugin/secrets-ext.js +84 -0
  1204. package/lib/plugin/secrets-ext.js.map +1 -0
  1205. package/lib/plugin/status-bar/status-bar-item.d.ts +52 -0
  1206. package/lib/plugin/status-bar/status-bar-item.d.ts.map +1 -0
  1207. package/lib/plugin/status-bar/status-bar-item.js +190 -0
  1208. package/lib/plugin/status-bar/status-bar-item.js.map +1 -0
  1209. package/lib/plugin/status-bar-message-registry.d.ts +26 -0
  1210. package/lib/plugin/status-bar-message-registry.d.ts.map +1 -0
  1211. package/lib/plugin/status-bar-message-registry.js +100 -0
  1212. package/lib/plugin/status-bar-message-registry.js.map +1 -0
  1213. package/lib/plugin/tabs.d.ts +23 -0
  1214. package/lib/plugin/tabs.d.ts.map +1 -0
  1215. package/lib/plugin/tabs.js +363 -0
  1216. package/lib/plugin/tabs.js.map +1 -0
  1217. package/lib/plugin/tasks/task-provider.d.ts +9 -0
  1218. package/lib/plugin/tasks/task-provider.d.ts.map +1 -0
  1219. package/lib/plugin/tasks/task-provider.js +54 -0
  1220. package/lib/plugin/tasks/task-provider.js.map +1 -0
  1221. package/lib/plugin/tasks/tasks.d.ts +47 -0
  1222. package/lib/plugin/tasks/tasks.d.ts.map +1 -0
  1223. package/lib/plugin/tasks/tasks.js +216 -0
  1224. package/lib/plugin/tasks/tasks.js.map +1 -0
  1225. package/lib/plugin/telemetry-ext.d.ts +44 -0
  1226. package/lib/plugin/telemetry-ext.d.ts.map +1 -0
  1227. package/lib/plugin/telemetry-ext.js +252 -0
  1228. package/lib/plugin/telemetry-ext.js.map +1 -0
  1229. package/lib/plugin/terminal-ext.d.ts +115 -0
  1230. package/lib/plugin/terminal-ext.d.ts.map +1 -0
  1231. package/lib/plugin/terminal-ext.js +502 -0
  1232. package/lib/plugin/terminal-ext.js.map +1 -0
  1233. package/lib/plugin/test-item.d.ts +47 -0
  1234. package/lib/plugin/test-item.d.ts.map +1 -0
  1235. package/lib/plugin/test-item.js +188 -0
  1236. package/lib/plugin/test-item.js.map +1 -0
  1237. package/lib/plugin/tests.d.ts +141 -0
  1238. package/lib/plugin/tests.d.ts.map +1 -0
  1239. package/lib/plugin/tests.js +469 -0
  1240. package/lib/plugin/tests.js.map +1 -0
  1241. package/lib/plugin/text-editor.d.ts +109 -0
  1242. package/lib/plugin/text-editor.d.ts.map +1 -0
  1243. package/lib/plugin/text-editor.js +474 -0
  1244. package/lib/plugin/text-editor.js.map +1 -0
  1245. package/lib/plugin/text-editors.d.ts +44 -0
  1246. package/lib/plugin/text-editors.d.ts.map +1 -0
  1247. package/lib/plugin/text-editors.js +203 -0
  1248. package/lib/plugin/text-editors.js.map +1 -0
  1249. package/lib/plugin/theming.d.ts +16 -0
  1250. package/lib/plugin/theming.d.ts.map +1 -0
  1251. package/lib/plugin/theming.js +62 -0
  1252. package/lib/plugin/theming.js.map +1 -0
  1253. package/lib/plugin/timeline.d.ts +21 -0
  1254. package/lib/plugin/timeline.d.ts.map +1 -0
  1255. package/lib/plugin/timeline.js +161 -0
  1256. package/lib/plugin/timeline.js.map +1 -0
  1257. package/lib/plugin/tree/tree-views.d.ts +108 -0
  1258. package/lib/plugin/tree/tree-views.d.ts.map +1 -0
  1259. package/lib/plugin/tree/tree-views.js +610 -0
  1260. package/lib/plugin/tree/tree-views.js.map +1 -0
  1261. package/lib/plugin/type-converters.d.ts +216 -0
  1262. package/lib/plugin/type-converters.d.ts.map +1 -0
  1263. package/lib/plugin/type-converters.js +1737 -0
  1264. package/lib/plugin/type-converters.js.map +1 -0
  1265. package/lib/plugin/type-converters.spec.d.ts +2 -0
  1266. package/lib/plugin/type-converters.spec.d.ts.map +1 -0
  1267. package/lib/plugin/type-converters.spec.js +396 -0
  1268. package/lib/plugin/type-converters.spec.js.map +1 -0
  1269. package/lib/plugin/types-impl.d.ts +2132 -0
  1270. package/lib/plugin/types-impl.d.ts.map +1 -0
  1271. package/lib/plugin/types-impl.js +3633 -0
  1272. package/lib/plugin/types-impl.js.map +1 -0
  1273. package/lib/plugin/types-impl.spec.d.ts +2 -0
  1274. package/lib/plugin/types-impl.spec.d.ts.map +1 -0
  1275. package/lib/plugin/types-impl.spec.js +79 -0
  1276. package/lib/plugin/types-impl.spec.js.map +1 -0
  1277. package/lib/plugin/uri-ext.d.ts +13 -0
  1278. package/lib/plugin/uri-ext.d.ts.map +1 -0
  1279. package/lib/plugin/uri-ext.js +49 -0
  1280. package/lib/plugin/uri-ext.js.map +1 -0
  1281. package/lib/plugin/webview-views.d.ts +56 -0
  1282. package/lib/plugin/webview-views.d.ts.map +1 -0
  1283. package/lib/plugin/webview-views.js +157 -0
  1284. package/lib/plugin/webview-views.js.map +1 -0
  1285. package/lib/plugin/webviews.d.ts +113 -0
  1286. package/lib/plugin/webviews.d.ts.map +1 -0
  1287. package/lib/plugin/webviews.js +393 -0
  1288. package/lib/plugin/webviews.js.map +1 -0
  1289. package/lib/plugin/window-state.d.ts +19 -0
  1290. package/lib/plugin/window-state.d.ts.map +1 -0
  1291. package/lib/plugin/window-state.js +67 -0
  1292. package/lib/plugin/window-state.js.map +1 -0
  1293. package/lib/plugin/word-helper.d.ts +22 -0
  1294. package/lib/plugin/word-helper.d.ts.map +1 -0
  1295. package/lib/plugin/word-helper.js +126 -0
  1296. package/lib/plugin/word-helper.js.map +1 -0
  1297. package/lib/plugin/workspace.d.ts +75 -0
  1298. package/lib/plugin/workspace.d.ts.map +1 -0
  1299. package/lib/plugin/workspace.js +476 -0
  1300. package/lib/plugin/workspace.js.map +1 -0
  1301. package/lib/plugin-ext-backend-electron-module.d.ts +4 -0
  1302. package/lib/plugin-ext-backend-electron-module.d.ts.map +1 -0
  1303. package/lib/plugin-ext-backend-electron-module.js +25 -0
  1304. package/lib/plugin-ext-backend-electron-module.js.map +1 -0
  1305. package/lib/plugin-ext-backend-module.d.ts +4 -0
  1306. package/lib/plugin-ext-backend-module.d.ts.map +1 -0
  1307. package/lib/plugin-ext-backend-module.js +25 -0
  1308. package/lib/plugin-ext-backend-module.js.map +1 -0
  1309. package/lib/plugin-ext-frontend-electron-module.d.ts +3 -0
  1310. package/lib/plugin-ext-frontend-electron-module.d.ts.map +1 -0
  1311. package/lib/plugin-ext-frontend-electron-module.js +20 -0
  1312. package/lib/plugin-ext-frontend-electron-module.js.map +1 -0
  1313. package/lib/plugin-ext-frontend-module.d.ts +3 -0
  1314. package/lib/plugin-ext-frontend-module.d.ts.map +1 -0
  1315. package/lib/plugin-ext-frontend-module.js +20 -0
  1316. package/lib/plugin-ext-frontend-module.js.map +1 -0
  1317. package/package.json +29 -29
  1318. package/src/main/browser/debug/plugin-debug-session-factory.ts +4 -2
  1319. package/src/main/browser/status-bar-message-registry-main.ts +3 -8
@@ -0,0 +1,3633 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2018 Red Hat, Inc. and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ // copied from https://github.com/microsoft/vscode/blob/1.37.0/src/vs/workbench/api/common/extHostTypes.ts
18
+ /*---------------------------------------------------------------------------------------------
19
+ * Copyright (c) Microsoft Corporation. All rights reserved.
20
+ * Licensed under the MIT License. See License.txt in the project root for license information.
21
+ *--------------------------------------------------------------------------------------------*/
22
+ var _a, _NotebookCellOutputItem_encoder;
23
+ var URI_1, Disposable_1, Position_1, Range_1, SnippetString_1, ThemeIcon_1, TextEdit_1, Location_1, NotebookEdit_1, DocumentDropOrPasteEditKind_1, CodeActionKind_1, SymbolInformation_1, DocumentSymbol_1, FileSystemError_1, TaskGroup_1, CallHierarchyItem_1, TypeHierarchyItem_1, TestMessage_1, FileCoverage_1, SemanticTokensBuilder_1;
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.NotebookEditorRevealType = exports.NotebookControllerAffinity = exports.NotebookCellStatusBarAlignment = exports.NotebookCellKind = exports.MarkerTag = exports.MarkerSeverity = exports.Diagnostic = exports.CompletionItemTag = exports.DiagnosticTag = exports.DiagnosticRelatedInformation = exports.Location = exports.DebugConsoleMode = exports.DiagnosticSeverity = exports.InlineCompletionList = exports.InlineCompletionItem = exports.InlineCompletionTriggerKind = exports.CompletionList = exports.CompletionItem = exports.CompletionItemKind = exports.CompletionTriggerKind = exports.TextEdit = exports.SyntaxTokenType = exports.IndentAction = exports.RelativePattern = exports.ConfigurationTarget = exports.OverviewRulerLane = exports.DecorationRangeBehavior = exports.TextEditorRevealType = exports.ThemeIcon = exports.ThemeColor = exports.SnippetString = exports.EnvironmentVariableMutatorType = exports.EndOfLine = exports.TextDocumentShowOptions = exports.Selection = exports.Range = exports.Position = exports.TextDocumentChangeReason = exports.TextEditorSelectionChangeKind = exports.ColorTheme = exports.ExternalUriOpenerPriority = exports.SourceControlInputBoxValidationType = exports.ExtensionKind = exports.ExtensionMode = exports.ColorThemeKind = exports.ViewColumn = exports.TextEditorLineNumbersStyle = exports.StatusBarAlignment = exports.Disposable = exports.URI = void 0;
26
+ exports.TerminalExitReason = exports.TerminalProfile = exports.TerminalOutputAnchor = exports.TerminalLocation = exports.TerminalLink = exports.QuickInputButtons = exports.CommentThreadCollapsibleState = exports.CommentThreadState = exports.DocumentSymbol = exports.SymbolInformation = exports.SymbolTag = exports.TreeItemCheckboxState = exports.TreeItemCollapsibleState = exports.TreeItem = exports.DataTransfer = exports.DataTransferItem = exports.WorkspaceEdit = exports.CodeAction = exports.TextDocumentSaveReason = exports.CodeActionKind = exports.CodeActionTriggerKind = exports.CodeActionTrigger = exports.CodeLens = exports.DocumentDropEdit = exports.DocumentDropOrPasteEditKind = exports.DocumentLink = exports.MultiDocumentHighlight = exports.DocumentHighlight = exports.DocumentHighlightKind = exports.InlineValueEvaluatableExpression = exports.InlineValueVariableLookup = exports.InlineValueText = exports.InlineValueContext = exports.EvaluatableExpression = exports.Hover = exports.SignatureHelp = exports.SignatureHelpTriggerKind = exports.SignatureInformation = exports.ParameterInformation = exports.NotebookRendererScript = exports.NotebookEdit = exports.SnippetTextEdit = exports.NotebookRange = exports.NotebookData = exports.NotebookCellStatusBarItem = exports.NotebookCellOutputItem = exports.NotebookCellOutput = exports.NotebookCellData = exports.NotebookKernelSourceAction = exports.NotebookCellExecutionState = void 0;
27
+ exports.TestRunProfileKind = exports.TestResultState = exports.LinkedEditingRanges = exports.LanguageStatusSeverity = exports.TypeHierarchyItem = exports.CallHierarchyOutgoingCall = exports.CallHierarchyIncomingCall = exports.CallHierarchyItem = exports.UIKind = exports.WebviewPanelTargetArea = exports.OperatingSystem = exports.SelectionRange = exports.FoldingRangeKind = exports.FoldingRange = exports.InlayHintKind = exports.InlayHint = exports.InlayHintLabelPart = exports.ColorFormat = exports.ColorPresentation = exports.ColorInformation = exports.Color = exports.DebugStackFrame = exports.DebugThread = exports.FunctionBreakpoint = exports.SourceBreakpoint = exports.Breakpoint = exports.LogLevel = exports.DebugAdapterInlineImplementation = exports.DebugAdapterNamedPipeServer = exports.DebugAdapterServer = exports.DebugAdapterExecutable = exports.Task2 = exports.Task = exports.TaskScope = exports.TaskGroup = exports.CustomExecution = exports.ShellExecution = exports.TaskRevealKind = exports.TaskPanelKind = exports.ShellQuoting = exports.QuickPickItemKind = exports.ProcessExecution = exports.ProgressLocation = exports.Progress = exports.ProgressOptions = exports.FileType = exports.FileSystemError = exports.FileChangeType = exports.CommentMode = exports.FileDecoration = void 0;
28
+ exports.LanguageModelToolCallPart = exports.LanguageModelChatToolMode = exports.LanguageModelError = exports.LanguageModelChatMessage = exports.LanguageModelChatMessageRole = exports.ChatResultFeedbackKind = exports.ChatResponseFileTreePart = exports.ChatResponseMarkdownPart = exports.ChatResponseCommandButtonPart = exports.ChatResponseReferencePart = exports.ChatResponseProgressPart = exports.ChatResponseAnchorPart = exports.ChatResponseTurn = exports.ChatRequestTurn = exports.TerminalQuickFixOpener = exports.TerminalQuickFixTerminalCommand = exports.TerminalCompletionItemKind = exports.TerminalCompletionItem = exports.TerminalCompletionList = exports.EditSessionIdentityMatch = exports.DocumentPasteTriggerKind = exports.DocumentPasteEdit = exports.DocumentPasteEditKind = exports.InteractiveWindowInput = exports.TerminalEditorTabInput = exports.NotebookDiffEditorTabInput = exports.NotebookEditorTabInput = exports.TelemetryLogger = exports.TelemetryTrustedValue = exports.WebviewEditorTabInput = exports.CustomEditorTabInput = exports.TextMergeTabInput = exports.TextDiffTabInput = exports.TextTabInput = exports.InputBoxValidationSeverity = exports.SemanticTokensEdits = exports.SemanticTokensEdit = exports.SemanticTokens = exports.SemanticTokensBuilder = exports.SemanticTokensLegend = exports.TimelineItem = exports.DeclarationCoverage = exports.BranchCoverage = exports.StatementCoverage = exports.FileCoverage = exports.TestMessageStackFrame = exports.TestCoverageCount = exports.TestMessage = exports.TestRunRequest = exports.TestTag = void 0;
29
+ exports.TextEditorChangeKind = exports.McpHttpServerDefinition = exports.McpStdioServerDefinition = exports.TerminalShellExecutionCommandLineConfidence = exports.DebugVisualization = exports.PortAttributes = exports.PortAutoForwardAction = exports.LanguageModelDataPart = exports.LanguageModelPromptTsxPart = exports.LanguageModelToolResult = exports.LanguageModelTextPart = exports.LanguageModelToolResultPart = void 0;
30
+ const tslib_1 = require("tslib");
31
+ /* eslint-disable no-null/no-null */
32
+ const coreutils_1 = require("@theia/core/shared/@lumino/coreutils");
33
+ const errors_1 = require("../common/errors");
34
+ const vscode_uri_1 = require("@theia/core/shared/vscode-uri");
35
+ const paths_util_1 = require("../common/paths-util");
36
+ const strings_1 = require("@theia/core/lib/common/strings");
37
+ const plugin_api_rpc_model_1 = require("../common/plugin-api-rpc-model");
38
+ const files_1 = require("@theia/filesystem/lib/common/files");
39
+ const paths = require("path");
40
+ const types_1 = require("../common/types");
41
+ const common_1 = require("@theia/core/lib/common");
42
+ const buffer_1 = require("@theia/core/lib/common/buffer");
43
+ /**
44
+ * This is an implementation of #theia.Uri based on vscode-uri.
45
+ * This is supposed to fix https://github.com/eclipse-theia/theia/issues/8752
46
+ * We cannot simply upgrade the dependency, because the current version 3.x
47
+ * is not compatible with our current codebase
48
+ */
49
+ let URI = URI_1 = class URI extends vscode_uri_1.URI {
50
+ constructor(schemeOrData, authority, path, query, fragment, _strict = false) {
51
+ if (typeof schemeOrData === 'string') {
52
+ super(schemeOrData, authority, path, query, fragment, _strict);
53
+ }
54
+ else {
55
+ super(schemeOrData);
56
+ }
57
+ }
58
+ /**
59
+ * Override to create the correct class.
60
+ */
61
+ with(change) {
62
+ return new URI_1(super.with(change));
63
+ }
64
+ static joinPath(uri, ...pathSegments) {
65
+ if (!uri.path) {
66
+ throw new Error('\'joinPath\' called on URI without path');
67
+ }
68
+ const newPath = paths.posix.join(uri.path, ...pathSegments);
69
+ return new URI_1(uri.scheme, uri.authority, newPath, uri.query, uri.fragment);
70
+ }
71
+ static revive(data) {
72
+ const uri = vscode_uri_1.URI.revive(data);
73
+ return uri ? new URI_1(uri) : undefined;
74
+ }
75
+ static parse(value, _strict) {
76
+ return new URI_1(vscode_uri_1.URI.parse(value, _strict));
77
+ }
78
+ static file(path) {
79
+ return new URI_1(vscode_uri_1.URI.file(path));
80
+ }
81
+ /**
82
+ * There is quite some magic in to vscode URI class related to
83
+ * transferring via JSON.stringify(). Making the CodeURI instance
84
+ * makes sure we transfer this object as a vscode-uri URI.
85
+ */
86
+ toJSON() {
87
+ return vscode_uri_1.URI.from(this).toJSON();
88
+ }
89
+ };
90
+ exports.URI = URI;
91
+ exports.URI = URI = URI_1 = tslib_1.__decorate([
92
+ types_1.es5ClassCompat,
93
+ tslib_1.__metadata("design:paramtypes", [Object, String, String, String, String, Boolean])
94
+ ], URI);
95
+ let Disposable = Disposable_1 = class Disposable {
96
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
97
+ static from(...disposables) {
98
+ return new Disposable_1(() => {
99
+ if (disposables) {
100
+ for (const disposable of disposables) {
101
+ if (disposable && typeof disposable.dispose === 'function') {
102
+ disposable.dispose();
103
+ }
104
+ }
105
+ }
106
+ });
107
+ }
108
+ constructor(func) {
109
+ this.disposable = func;
110
+ }
111
+ /**
112
+ * Dispose this object.
113
+ */
114
+ dispose() {
115
+ if (this.disposable) {
116
+ this.disposable();
117
+ this.disposable = undefined;
118
+ }
119
+ }
120
+ static create(func) {
121
+ return new Disposable_1(func);
122
+ }
123
+ };
124
+ exports.Disposable = Disposable;
125
+ exports.Disposable = Disposable = Disposable_1 = tslib_1.__decorate([
126
+ types_1.es5ClassCompat,
127
+ tslib_1.__metadata("design:paramtypes", [Function])
128
+ ], Disposable);
129
+ var StatusBarAlignment;
130
+ (function (StatusBarAlignment) {
131
+ StatusBarAlignment[StatusBarAlignment["Left"] = 1] = "Left";
132
+ StatusBarAlignment[StatusBarAlignment["Right"] = 2] = "Right";
133
+ })(StatusBarAlignment || (exports.StatusBarAlignment = StatusBarAlignment = {}));
134
+ var TextEditorLineNumbersStyle;
135
+ (function (TextEditorLineNumbersStyle) {
136
+ TextEditorLineNumbersStyle[TextEditorLineNumbersStyle["Off"] = 0] = "Off";
137
+ TextEditorLineNumbersStyle[TextEditorLineNumbersStyle["On"] = 1] = "On";
138
+ TextEditorLineNumbersStyle[TextEditorLineNumbersStyle["Relative"] = 2] = "Relative";
139
+ TextEditorLineNumbersStyle[TextEditorLineNumbersStyle["Interval"] = 3] = "Interval";
140
+ })(TextEditorLineNumbersStyle || (exports.TextEditorLineNumbersStyle = TextEditorLineNumbersStyle = {}));
141
+ /**
142
+ * Denotes a column in the editor window.
143
+ * Columns are used to show editors side by side.
144
+ */
145
+ var ViewColumn;
146
+ (function (ViewColumn) {
147
+ ViewColumn[ViewColumn["Active"] = -1] = "Active";
148
+ ViewColumn[ViewColumn["Beside"] = -2] = "Beside";
149
+ ViewColumn[ViewColumn["One"] = 1] = "One";
150
+ ViewColumn[ViewColumn["Two"] = 2] = "Two";
151
+ ViewColumn[ViewColumn["Three"] = 3] = "Three";
152
+ ViewColumn[ViewColumn["Four"] = 4] = "Four";
153
+ ViewColumn[ViewColumn["Five"] = 5] = "Five";
154
+ ViewColumn[ViewColumn["Six"] = 6] = "Six";
155
+ ViewColumn[ViewColumn["Seven"] = 7] = "Seven";
156
+ ViewColumn[ViewColumn["Eight"] = 8] = "Eight";
157
+ ViewColumn[ViewColumn["Nine"] = 9] = "Nine";
158
+ })(ViewColumn || (exports.ViewColumn = ViewColumn = {}));
159
+ /**
160
+ * Represents a color theme kind.
161
+ */
162
+ var ColorThemeKind;
163
+ (function (ColorThemeKind) {
164
+ ColorThemeKind[ColorThemeKind["Light"] = 1] = "Light";
165
+ ColorThemeKind[ColorThemeKind["Dark"] = 2] = "Dark";
166
+ ColorThemeKind[ColorThemeKind["HighContrast"] = 3] = "HighContrast";
167
+ ColorThemeKind[ColorThemeKind["HighContrastLight"] = 4] = "HighContrastLight";
168
+ })(ColorThemeKind || (exports.ColorThemeKind = ColorThemeKind = {}));
169
+ var ExtensionMode;
170
+ (function (ExtensionMode) {
171
+ /**
172
+ * The extension is installed normally (for example, from the marketplace
173
+ * or VSIX) in the editor.
174
+ */
175
+ ExtensionMode[ExtensionMode["Production"] = 1] = "Production";
176
+ /**
177
+ * The extension is running from an `--extensionDevelopmentPath` provided
178
+ * when launching the editor.
179
+ */
180
+ ExtensionMode[ExtensionMode["Development"] = 2] = "Development";
181
+ /**
182
+ * The extension is running from an `--extensionTestsPath` and
183
+ * the extension host is running unit tests.
184
+ */
185
+ ExtensionMode[ExtensionMode["Test"] = 3] = "Test";
186
+ })(ExtensionMode || (exports.ExtensionMode = ExtensionMode = {}));
187
+ var ExtensionKind;
188
+ (function (ExtensionKind) {
189
+ ExtensionKind[ExtensionKind["UI"] = 1] = "UI";
190
+ ExtensionKind[ExtensionKind["Workspace"] = 2] = "Workspace";
191
+ })(ExtensionKind || (exports.ExtensionKind = ExtensionKind = {}));
192
+ /**
193
+ * Represents the validation type of the Source Control input.
194
+ */
195
+ var SourceControlInputBoxValidationType;
196
+ (function (SourceControlInputBoxValidationType) {
197
+ /**
198
+ * Something not allowed by the rules of a language or other means.
199
+ */
200
+ SourceControlInputBoxValidationType[SourceControlInputBoxValidationType["Error"] = 0] = "Error";
201
+ /**
202
+ * Something suspicious but allowed.
203
+ */
204
+ SourceControlInputBoxValidationType[SourceControlInputBoxValidationType["Warning"] = 1] = "Warning";
205
+ /**
206
+ * Something to inform about but not a problem.
207
+ */
208
+ SourceControlInputBoxValidationType[SourceControlInputBoxValidationType["Information"] = 2] = "Information";
209
+ })(SourceControlInputBoxValidationType || (exports.SourceControlInputBoxValidationType = SourceControlInputBoxValidationType = {}));
210
+ var ExternalUriOpenerPriority;
211
+ (function (ExternalUriOpenerPriority) {
212
+ ExternalUriOpenerPriority[ExternalUriOpenerPriority["None"] = 0] = "None";
213
+ ExternalUriOpenerPriority[ExternalUriOpenerPriority["Option"] = 1] = "Option";
214
+ ExternalUriOpenerPriority[ExternalUriOpenerPriority["Default"] = 2] = "Default";
215
+ ExternalUriOpenerPriority[ExternalUriOpenerPriority["Preferred"] = 3] = "Preferred";
216
+ })(ExternalUriOpenerPriority || (exports.ExternalUriOpenerPriority = ExternalUriOpenerPriority = {}));
217
+ let ColorTheme = class ColorTheme {
218
+ constructor(kind) {
219
+ this.kind = kind;
220
+ }
221
+ };
222
+ exports.ColorTheme = ColorTheme;
223
+ exports.ColorTheme = ColorTheme = tslib_1.__decorate([
224
+ types_1.es5ClassCompat,
225
+ tslib_1.__metadata("design:paramtypes", [Number])
226
+ ], ColorTheme);
227
+ /**
228
+ * Represents sources that can cause `window.onDidChangeEditorSelection`
229
+ */
230
+ var TextEditorSelectionChangeKind;
231
+ (function (TextEditorSelectionChangeKind) {
232
+ TextEditorSelectionChangeKind[TextEditorSelectionChangeKind["Keyboard"] = 1] = "Keyboard";
233
+ TextEditorSelectionChangeKind[TextEditorSelectionChangeKind["Mouse"] = 2] = "Mouse";
234
+ TextEditorSelectionChangeKind[TextEditorSelectionChangeKind["Command"] = 3] = "Command";
235
+ })(TextEditorSelectionChangeKind || (exports.TextEditorSelectionChangeKind = TextEditorSelectionChangeKind = {}));
236
+ (function (TextEditorSelectionChangeKind) {
237
+ function fromValue(s) {
238
+ switch (s) {
239
+ case 'keyboard': return TextEditorSelectionChangeKind.Keyboard;
240
+ case 'mouse': return TextEditorSelectionChangeKind.Mouse;
241
+ case 'api': return TextEditorSelectionChangeKind.Command;
242
+ }
243
+ return undefined;
244
+ }
245
+ TextEditorSelectionChangeKind.fromValue = fromValue;
246
+ })(TextEditorSelectionChangeKind || (exports.TextEditorSelectionChangeKind = TextEditorSelectionChangeKind = {}));
247
+ var TextDocumentChangeReason;
248
+ (function (TextDocumentChangeReason) {
249
+ TextDocumentChangeReason[TextDocumentChangeReason["Undo"] = 1] = "Undo";
250
+ TextDocumentChangeReason[TextDocumentChangeReason["Redo"] = 2] = "Redo";
251
+ })(TextDocumentChangeReason || (exports.TextDocumentChangeReason = TextDocumentChangeReason = {}));
252
+ let Position = Position_1 = class Position {
253
+ constructor(line, char) {
254
+ if (line < 0) {
255
+ throw new Error('line number cannot be negative');
256
+ }
257
+ if (char < 0) {
258
+ throw new Error('char number cannot be negative');
259
+ }
260
+ this._line = line;
261
+ this._character = char;
262
+ }
263
+ get line() {
264
+ return this._line;
265
+ }
266
+ get character() {
267
+ return this._character;
268
+ }
269
+ isBefore(other) {
270
+ if (this._line < other._line) {
271
+ return true;
272
+ }
273
+ if (other._line < this._line) {
274
+ return false;
275
+ }
276
+ return this._character < other._character;
277
+ }
278
+ isBeforeOrEqual(other) {
279
+ if (this._line < other._line) {
280
+ return true;
281
+ }
282
+ if (other._line < this._line) {
283
+ return false;
284
+ }
285
+ return this._character <= other._character;
286
+ }
287
+ isAfter(other) {
288
+ return !this.isBeforeOrEqual(other);
289
+ }
290
+ isAfterOrEqual(other) {
291
+ return !this.isBefore(other);
292
+ }
293
+ isEqual(other) {
294
+ return this._line === other._line && this._character === other._character;
295
+ }
296
+ compareTo(other) {
297
+ if (this._line < other._line) {
298
+ return -1;
299
+ }
300
+ else if (this._line > other.line) {
301
+ return 1;
302
+ }
303
+ else {
304
+ // equal line
305
+ if (this._character < other._character) {
306
+ return -1;
307
+ }
308
+ else if (this._character > other._character) {
309
+ return 1;
310
+ }
311
+ else {
312
+ // equal line and character
313
+ return 0;
314
+ }
315
+ }
316
+ }
317
+ translate(lineDeltaOrChange, characterDelta = 0) {
318
+ if (lineDeltaOrChange === null || characterDelta === null) {
319
+ throw (0, errors_1.illegalArgument)();
320
+ }
321
+ let lineDelta;
322
+ if (typeof lineDeltaOrChange === 'undefined') {
323
+ lineDelta = 0;
324
+ }
325
+ else if (typeof lineDeltaOrChange === 'number') {
326
+ lineDelta = lineDeltaOrChange;
327
+ }
328
+ else {
329
+ lineDelta = typeof lineDeltaOrChange.lineDelta === 'number' ? lineDeltaOrChange.lineDelta : 0;
330
+ characterDelta = typeof lineDeltaOrChange.characterDelta === 'number' ? lineDeltaOrChange.characterDelta : 0;
331
+ }
332
+ if (lineDelta === 0 && characterDelta === 0) {
333
+ return this;
334
+ }
335
+ return new Position_1(this.line + lineDelta, this.character + characterDelta);
336
+ }
337
+ with(lineOrChange, character = this.character) {
338
+ if (lineOrChange === null || character === null) {
339
+ throw (0, errors_1.illegalArgument)();
340
+ }
341
+ let line;
342
+ if (typeof lineOrChange === 'undefined') {
343
+ line = this.line;
344
+ }
345
+ else if (typeof lineOrChange === 'number') {
346
+ line = lineOrChange;
347
+ }
348
+ else {
349
+ line = typeof lineOrChange.line === 'number' ? lineOrChange.line : this.line;
350
+ character = typeof lineOrChange.character === 'number' ? lineOrChange.character : this.character;
351
+ }
352
+ if (line === this.line && character === this.character) {
353
+ return this;
354
+ }
355
+ return new Position_1(line, character);
356
+ }
357
+ static Min(...positions) {
358
+ let result = positions.pop();
359
+ for (const p of positions) {
360
+ if (p.isBefore(result)) {
361
+ result = p;
362
+ }
363
+ }
364
+ return result;
365
+ }
366
+ static Max(...positions) {
367
+ let result = positions.pop();
368
+ for (const p of positions) {
369
+ if (p.isAfter(result)) {
370
+ result = p;
371
+ }
372
+ }
373
+ return result;
374
+ }
375
+ static isPosition(other) {
376
+ if (!other) {
377
+ return false;
378
+ }
379
+ if (typeof other !== 'object' || Array.isArray(other)) {
380
+ return false;
381
+ }
382
+ if (other instanceof Position_1) {
383
+ return true;
384
+ }
385
+ const { line, character } = other;
386
+ if (typeof line === 'number' && typeof character === 'number') {
387
+ return true;
388
+ }
389
+ return false;
390
+ }
391
+ toJSON() {
392
+ return { line: this.line, character: this.character };
393
+ }
394
+ };
395
+ exports.Position = Position;
396
+ exports.Position = Position = Position_1 = tslib_1.__decorate([
397
+ types_1.es5ClassCompat,
398
+ tslib_1.__metadata("design:paramtypes", [Number, Number])
399
+ ], Position);
400
+ let Range = Range_1 = class Range {
401
+ constructor(startLineOrStart, startColumnOrEnd, endLine, endColumn) {
402
+ let start = undefined;
403
+ let end = undefined;
404
+ if (typeof startLineOrStart === 'number' && typeof startColumnOrEnd === 'number' && typeof endLine === 'number' && typeof endColumn === 'number') {
405
+ start = new Position(startLineOrStart, startColumnOrEnd);
406
+ end = new Position(endLine, endColumn);
407
+ }
408
+ else if (startLineOrStart instanceof Position && startColumnOrEnd instanceof Position) {
409
+ start = startLineOrStart;
410
+ end = startColumnOrEnd;
411
+ }
412
+ if (!start || !end) {
413
+ throw new Error('Invalid arguments');
414
+ }
415
+ if (start.isBefore(end)) {
416
+ this._start = start;
417
+ this._end = end;
418
+ }
419
+ else {
420
+ this._start = end;
421
+ this._end = start;
422
+ }
423
+ }
424
+ get start() {
425
+ return this._start;
426
+ }
427
+ get end() {
428
+ return this._end;
429
+ }
430
+ contains(positionOrRange) {
431
+ if (positionOrRange instanceof Range_1) {
432
+ return this.contains(positionOrRange._start)
433
+ && this.contains(positionOrRange._end);
434
+ }
435
+ else if (positionOrRange instanceof Position) {
436
+ if (positionOrRange.isBefore(this._start)) {
437
+ return false;
438
+ }
439
+ if (this._end.isBefore(positionOrRange)) {
440
+ return false;
441
+ }
442
+ return true;
443
+ }
444
+ return false;
445
+ }
446
+ isEqual(other) {
447
+ return this._start.isEqual(other._start) && this._end.isEqual(other._end);
448
+ }
449
+ intersection(other) {
450
+ const start = Position.Max(other.start, this._start);
451
+ const end = Position.Min(other.end, this._end);
452
+ if (start.isAfter(end)) {
453
+ // this happens when there is no overlap:
454
+ // |-----|
455
+ // |----|
456
+ return undefined;
457
+ }
458
+ return new Range_1(start, end);
459
+ }
460
+ union(other) {
461
+ if (this.contains(other)) {
462
+ return this;
463
+ }
464
+ else if (other.contains(this)) {
465
+ return other;
466
+ }
467
+ const start = Position.Min(other.start, this._start);
468
+ const end = Position.Max(other.end, this.end);
469
+ return new Range_1(start, end);
470
+ }
471
+ get isEmpty() {
472
+ return this._start.isEqual(this._end);
473
+ }
474
+ get isSingleLine() {
475
+ return this._start.line === this._end.line;
476
+ }
477
+ with(startOrChange, end = this.end) {
478
+ if (startOrChange === null || end === null) {
479
+ throw (0, errors_1.illegalArgument)();
480
+ }
481
+ let start;
482
+ if (!startOrChange) {
483
+ start = this.start;
484
+ }
485
+ else if (Position.isPosition(startOrChange)) {
486
+ start = startOrChange;
487
+ }
488
+ else {
489
+ start = startOrChange.start || this.start;
490
+ end = startOrChange.end || this.end;
491
+ }
492
+ if (start.isEqual(this._start) && end.isEqual(this.end)) {
493
+ return this;
494
+ }
495
+ return new Range_1(start, end);
496
+ }
497
+ static isRange(arg) {
498
+ if (arg instanceof Range_1) {
499
+ return true;
500
+ }
501
+ return (0, common_1.isObject)(arg)
502
+ && Position.isPosition(arg.start)
503
+ && Position.isPosition(arg.end);
504
+ }
505
+ toJSON() {
506
+ return [this.start, this.end];
507
+ }
508
+ };
509
+ exports.Range = Range;
510
+ exports.Range = Range = Range_1 = tslib_1.__decorate([
511
+ types_1.es5ClassCompat,
512
+ tslib_1.__metadata("design:paramtypes", [Object, Object, Number, Number])
513
+ ], Range);
514
+ let Selection = class Selection extends Range {
515
+ constructor(anchorLineOrAnchor, anchorColumnOrActive, activeLine, activeColumn) {
516
+ let anchor = undefined;
517
+ let active = undefined;
518
+ if (typeof anchorLineOrAnchor === 'number' && typeof anchorColumnOrActive === 'number' && typeof activeLine === 'number' && typeof activeColumn === 'number') {
519
+ anchor = new Position(anchorLineOrAnchor, anchorColumnOrActive);
520
+ active = new Position(activeLine, activeColumn);
521
+ }
522
+ else if (anchorLineOrAnchor instanceof Position && anchorColumnOrActive instanceof Position) {
523
+ anchor = anchorLineOrAnchor;
524
+ active = anchorColumnOrActive;
525
+ }
526
+ if (!anchor || !active) {
527
+ throw new Error('Invalid arguments');
528
+ }
529
+ super(anchor, active);
530
+ this._anchor = anchor;
531
+ this._active = active;
532
+ }
533
+ get active() {
534
+ return this._active;
535
+ }
536
+ get anchor() {
537
+ return this._anchor;
538
+ }
539
+ get isReversed() {
540
+ return this._anchor === this._end;
541
+ }
542
+ };
543
+ exports.Selection = Selection;
544
+ exports.Selection = Selection = tslib_1.__decorate([
545
+ types_1.es5ClassCompat,
546
+ tslib_1.__metadata("design:paramtypes", [Object, Object, Number, Number])
547
+ ], Selection);
548
+ var TextDocumentShowOptions;
549
+ (function (TextDocumentShowOptions) {
550
+ /**
551
+ * @param candidate
552
+ * @returns `true` if `candidate` is an instance of options that includes a selection.
553
+ * This function should be used to determine whether TextDocumentOptions passed into commands by plugins
554
+ * need to be translated to TextDocumentShowOptions in the style of the RPC model. Selection is the only field that requires translation.
555
+ */
556
+ function isTextDocumentShowOptions(candidate) {
557
+ if (!candidate) {
558
+ return false;
559
+ }
560
+ const options = candidate;
561
+ return Range.isRange(options.selection);
562
+ }
563
+ TextDocumentShowOptions.isTextDocumentShowOptions = isTextDocumentShowOptions;
564
+ })(TextDocumentShowOptions || (exports.TextDocumentShowOptions = TextDocumentShowOptions = {}));
565
+ var EndOfLine;
566
+ (function (EndOfLine) {
567
+ EndOfLine[EndOfLine["LF"] = 1] = "LF";
568
+ EndOfLine[EndOfLine["CRLF"] = 2] = "CRLF";
569
+ })(EndOfLine || (exports.EndOfLine = EndOfLine = {}));
570
+ var EnvironmentVariableMutatorType;
571
+ (function (EnvironmentVariableMutatorType) {
572
+ EnvironmentVariableMutatorType[EnvironmentVariableMutatorType["Replace"] = 1] = "Replace";
573
+ EnvironmentVariableMutatorType[EnvironmentVariableMutatorType["Append"] = 2] = "Append";
574
+ EnvironmentVariableMutatorType[EnvironmentVariableMutatorType["Prepend"] = 3] = "Prepend";
575
+ })(EnvironmentVariableMutatorType || (exports.EnvironmentVariableMutatorType = EnvironmentVariableMutatorType = {}));
576
+ let SnippetString = SnippetString_1 = class SnippetString {
577
+ static isSnippetString(thing) {
578
+ if (thing instanceof SnippetString_1) {
579
+ return true;
580
+ }
581
+ if (!thing) {
582
+ return false;
583
+ }
584
+ return typeof thing.value === 'string';
585
+ }
586
+ static _escape(value) {
587
+ return value.replace(/\$|}|\\/g, '\\$&');
588
+ }
589
+ constructor(value) {
590
+ this._tabstop = 1;
591
+ this.value = value || '';
592
+ }
593
+ appendText(string) {
594
+ this.value += SnippetString_1._escape(string);
595
+ return this;
596
+ }
597
+ appendTabstop(number = this._tabstop++) {
598
+ this.value += '$';
599
+ this.value += number;
600
+ return this;
601
+ }
602
+ appendPlaceholder(value, number = this._tabstop++) {
603
+ if (typeof value === 'function') {
604
+ const nested = new SnippetString_1();
605
+ nested._tabstop = this._tabstop;
606
+ value(nested);
607
+ this._tabstop = nested._tabstop;
608
+ value = nested.value;
609
+ }
610
+ else {
611
+ value = SnippetString_1._escape(value);
612
+ }
613
+ this.value += '${';
614
+ this.value += number;
615
+ this.value += ':';
616
+ this.value += value;
617
+ this.value += '}';
618
+ return this;
619
+ }
620
+ appendChoice(values, number = this._tabstop++) {
621
+ const value = values.map(s => s.replace(/\$|}|\\|,/g, '\\$&')).join(',');
622
+ this.value += `\$\{${number}|${value}|\}`;
623
+ return this;
624
+ }
625
+ appendVariable(name, defaultValue) {
626
+ if (typeof defaultValue === 'function') {
627
+ const nested = new SnippetString_1();
628
+ nested._tabstop = this._tabstop;
629
+ defaultValue(nested);
630
+ this._tabstop = nested._tabstop;
631
+ defaultValue = nested.value;
632
+ }
633
+ else if (typeof defaultValue === 'string') {
634
+ defaultValue = defaultValue.replace(/\$|}/g, '\\$&');
635
+ }
636
+ this.value += '${';
637
+ this.value += name;
638
+ if (defaultValue) {
639
+ this.value += ':';
640
+ this.value += defaultValue;
641
+ }
642
+ this.value += '}';
643
+ return this;
644
+ }
645
+ };
646
+ exports.SnippetString = SnippetString;
647
+ exports.SnippetString = SnippetString = SnippetString_1 = tslib_1.__decorate([
648
+ types_1.es5ClassCompat,
649
+ tslib_1.__metadata("design:paramtypes", [String])
650
+ ], SnippetString);
651
+ let ThemeColor = class ThemeColor {
652
+ constructor(id) {
653
+ this.id = id;
654
+ }
655
+ };
656
+ exports.ThemeColor = ThemeColor;
657
+ exports.ThemeColor = ThemeColor = tslib_1.__decorate([
658
+ types_1.es5ClassCompat,
659
+ tslib_1.__metadata("design:paramtypes", [String])
660
+ ], ThemeColor);
661
+ let ThemeIcon = ThemeIcon_1 = class ThemeIcon {
662
+ constructor(id, color) {
663
+ this.id = id;
664
+ this.color = color;
665
+ }
666
+ };
667
+ exports.ThemeIcon = ThemeIcon;
668
+ ThemeIcon.File = new ThemeIcon_1('file');
669
+ ThemeIcon.Folder = new ThemeIcon_1('folder');
670
+ exports.ThemeIcon = ThemeIcon = ThemeIcon_1 = tslib_1.__decorate([
671
+ types_1.es5ClassCompat,
672
+ tslib_1.__metadata("design:paramtypes", [String, ThemeColor])
673
+ ], ThemeIcon);
674
+ (function (ThemeIcon) {
675
+ function is(item) {
676
+ return (0, common_1.isObject)(item) && 'id' in item;
677
+ }
678
+ ThemeIcon.is = is;
679
+ function get(item) {
680
+ return is(item) ? item : undefined;
681
+ }
682
+ ThemeIcon.get = get;
683
+ })(ThemeIcon || (exports.ThemeIcon = ThemeIcon = {}));
684
+ var TextEditorRevealType;
685
+ (function (TextEditorRevealType) {
686
+ TextEditorRevealType[TextEditorRevealType["Default"] = 0] = "Default";
687
+ TextEditorRevealType[TextEditorRevealType["InCenter"] = 1] = "InCenter";
688
+ TextEditorRevealType[TextEditorRevealType["InCenterIfOutsideViewport"] = 2] = "InCenterIfOutsideViewport";
689
+ TextEditorRevealType[TextEditorRevealType["AtTop"] = 3] = "AtTop";
690
+ })(TextEditorRevealType || (exports.TextEditorRevealType = TextEditorRevealType = {}));
691
+ /**
692
+ * These values match very carefully the values of `TrackedRangeStickiness`
693
+ */
694
+ var DecorationRangeBehavior;
695
+ (function (DecorationRangeBehavior) {
696
+ /**
697
+ * TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges
698
+ */
699
+ DecorationRangeBehavior[DecorationRangeBehavior["OpenOpen"] = 0] = "OpenOpen";
700
+ /**
701
+ * TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
702
+ */
703
+ DecorationRangeBehavior[DecorationRangeBehavior["ClosedClosed"] = 1] = "ClosedClosed";
704
+ /**
705
+ * TrackedRangeStickiness.GrowsOnlyWhenTypingBefore
706
+ */
707
+ DecorationRangeBehavior[DecorationRangeBehavior["OpenClosed"] = 2] = "OpenClosed";
708
+ /**
709
+ * TrackedRangeStickiness.GrowsOnlyWhenTypingAfter
710
+ */
711
+ DecorationRangeBehavior[DecorationRangeBehavior["ClosedOpen"] = 3] = "ClosedOpen";
712
+ })(DecorationRangeBehavior || (exports.DecorationRangeBehavior = DecorationRangeBehavior = {}));
713
+ /**
714
+ * Vertical Lane in the overview ruler of the editor.
715
+ */
716
+ var OverviewRulerLane;
717
+ (function (OverviewRulerLane) {
718
+ OverviewRulerLane[OverviewRulerLane["Left"] = 1] = "Left";
719
+ OverviewRulerLane[OverviewRulerLane["Center"] = 2] = "Center";
720
+ OverviewRulerLane[OverviewRulerLane["Right"] = 4] = "Right";
721
+ OverviewRulerLane[OverviewRulerLane["Full"] = 7] = "Full";
722
+ })(OverviewRulerLane || (exports.OverviewRulerLane = OverviewRulerLane = {}));
723
+ var ConfigurationTarget;
724
+ (function (ConfigurationTarget) {
725
+ ConfigurationTarget[ConfigurationTarget["Global"] = 1] = "Global";
726
+ ConfigurationTarget[ConfigurationTarget["Workspace"] = 2] = "Workspace";
727
+ ConfigurationTarget[ConfigurationTarget["WorkspaceFolder"] = 3] = "WorkspaceFolder";
728
+ ConfigurationTarget[ConfigurationTarget["Default"] = 4] = "Default";
729
+ ConfigurationTarget[ConfigurationTarget["Memory"] = 5] = "Memory";
730
+ })(ConfigurationTarget || (exports.ConfigurationTarget = ConfigurationTarget = {}));
731
+ let RelativePattern = class RelativePattern {
732
+ get base() {
733
+ return this._base;
734
+ }
735
+ set base(base) {
736
+ this._base = base;
737
+ this._baseUri = URI.file(base);
738
+ }
739
+ get baseUri() {
740
+ return this._baseUri;
741
+ }
742
+ set baseUri(baseUri) {
743
+ this._baseUri = baseUri;
744
+ this.base = baseUri.fsPath;
745
+ }
746
+ constructor(base, pattern) {
747
+ this.pattern = pattern;
748
+ if (typeof base !== 'string') {
749
+ if (!base || !URI.isUri(base) && !URI.isUri(base.uri)) {
750
+ throw (0, errors_1.illegalArgument)('base');
751
+ }
752
+ }
753
+ if (typeof pattern !== 'string') {
754
+ throw (0, errors_1.illegalArgument)('pattern');
755
+ }
756
+ if (typeof base === 'string') {
757
+ this.baseUri = URI.file(base);
758
+ }
759
+ else if (URI.isUri(base)) {
760
+ this.baseUri = base;
761
+ }
762
+ else {
763
+ this.baseUri = base.uri;
764
+ }
765
+ }
766
+ pathToRelative(from, to) {
767
+ return (0, paths_util_1.relative)(from, to);
768
+ }
769
+ };
770
+ exports.RelativePattern = RelativePattern;
771
+ exports.RelativePattern = RelativePattern = tslib_1.__decorate([
772
+ types_1.es5ClassCompat,
773
+ tslib_1.__metadata("design:paramtypes", [Object, String])
774
+ ], RelativePattern);
775
+ var IndentAction;
776
+ (function (IndentAction) {
777
+ IndentAction[IndentAction["None"] = 0] = "None";
778
+ IndentAction[IndentAction["Indent"] = 1] = "Indent";
779
+ IndentAction[IndentAction["IndentOutdent"] = 2] = "IndentOutdent";
780
+ IndentAction[IndentAction["Outdent"] = 3] = "Outdent";
781
+ })(IndentAction || (exports.IndentAction = IndentAction = {}));
782
+ var SyntaxTokenType;
783
+ (function (SyntaxTokenType) {
784
+ function toString(v) {
785
+ switch (v) {
786
+ case SyntaxTokenType.Other: return 'other';
787
+ case SyntaxTokenType.Comment: return 'comment';
788
+ case SyntaxTokenType.String: return 'string';
789
+ case SyntaxTokenType.RegEx: return 'regex';
790
+ }
791
+ return 'other';
792
+ }
793
+ SyntaxTokenType.toString = toString;
794
+ })(SyntaxTokenType || (exports.SyntaxTokenType = SyntaxTokenType = {}));
795
+ (function (SyntaxTokenType) {
796
+ /**
797
+ * Everything except tokens that are part of comments, string literals and regular expressions.
798
+ */
799
+ SyntaxTokenType[SyntaxTokenType["Other"] = 0] = "Other";
800
+ /**
801
+ * A comment.
802
+ */
803
+ SyntaxTokenType[SyntaxTokenType["Comment"] = 1] = "Comment";
804
+ /**
805
+ * A string literal.
806
+ */
807
+ SyntaxTokenType[SyntaxTokenType["String"] = 2] = "String";
808
+ /**
809
+ * A regular expression.
810
+ */
811
+ SyntaxTokenType[SyntaxTokenType["RegEx"] = 3] = "RegEx";
812
+ })(SyntaxTokenType || (exports.SyntaxTokenType = SyntaxTokenType = {}));
813
+ let TextEdit = TextEdit_1 = class TextEdit {
814
+ get range() {
815
+ return this._range;
816
+ }
817
+ set range(value) {
818
+ if (value && !Range.isRange(value)) {
819
+ throw (0, errors_1.illegalArgument)('range');
820
+ }
821
+ this._range = value;
822
+ }
823
+ get newText() {
824
+ return this._newText || '';
825
+ }
826
+ set newText(value) {
827
+ if (value && typeof value !== 'string') {
828
+ throw (0, errors_1.illegalArgument)('newText');
829
+ }
830
+ this._newText = value;
831
+ }
832
+ get newEol() {
833
+ return this._newEol;
834
+ }
835
+ set newEol(value) {
836
+ if (value && typeof value !== 'number') {
837
+ throw (0, errors_1.illegalArgument)('newEol');
838
+ }
839
+ this._newEol = value;
840
+ }
841
+ constructor(range, newText) {
842
+ this.range = range;
843
+ this.newText = newText;
844
+ }
845
+ static isTextEdit(thing) {
846
+ if (thing instanceof TextEdit_1) {
847
+ return true;
848
+ }
849
+ if (!thing) {
850
+ return false;
851
+ }
852
+ return Range.isRange(thing.range)
853
+ && typeof thing.newText === 'string';
854
+ }
855
+ static replace(range, newText) {
856
+ return new TextEdit_1(range, newText);
857
+ }
858
+ static insert(position, newText) {
859
+ return TextEdit_1.replace(new Range(position, position), newText);
860
+ }
861
+ static delete(range) {
862
+ return TextEdit_1.replace(range, '');
863
+ }
864
+ static setEndOfLine(eol) {
865
+ const ret = new TextEdit_1(undefined, undefined);
866
+ ret.newEol = eol;
867
+ return ret;
868
+ }
869
+ };
870
+ exports.TextEdit = TextEdit;
871
+ exports.TextEdit = TextEdit = TextEdit_1 = tslib_1.__decorate([
872
+ types_1.es5ClassCompat,
873
+ tslib_1.__metadata("design:paramtypes", [Object, Object])
874
+ ], TextEdit);
875
+ var CompletionTriggerKind;
876
+ (function (CompletionTriggerKind) {
877
+ CompletionTriggerKind[CompletionTriggerKind["Invoke"] = 0] = "Invoke";
878
+ CompletionTriggerKind[CompletionTriggerKind["TriggerCharacter"] = 1] = "TriggerCharacter";
879
+ CompletionTriggerKind[CompletionTriggerKind["TriggerForIncompleteCompletions"] = 2] = "TriggerForIncompleteCompletions";
880
+ })(CompletionTriggerKind || (exports.CompletionTriggerKind = CompletionTriggerKind = {}));
881
+ var CompletionItemKind;
882
+ (function (CompletionItemKind) {
883
+ CompletionItemKind[CompletionItemKind["Text"] = 0] = "Text";
884
+ CompletionItemKind[CompletionItemKind["Method"] = 1] = "Method";
885
+ CompletionItemKind[CompletionItemKind["Function"] = 2] = "Function";
886
+ CompletionItemKind[CompletionItemKind["Constructor"] = 3] = "Constructor";
887
+ CompletionItemKind[CompletionItemKind["Field"] = 4] = "Field";
888
+ CompletionItemKind[CompletionItemKind["Variable"] = 5] = "Variable";
889
+ CompletionItemKind[CompletionItemKind["Class"] = 6] = "Class";
890
+ CompletionItemKind[CompletionItemKind["Interface"] = 7] = "Interface";
891
+ CompletionItemKind[CompletionItemKind["Module"] = 8] = "Module";
892
+ CompletionItemKind[CompletionItemKind["Property"] = 9] = "Property";
893
+ CompletionItemKind[CompletionItemKind["Unit"] = 10] = "Unit";
894
+ CompletionItemKind[CompletionItemKind["Value"] = 11] = "Value";
895
+ CompletionItemKind[CompletionItemKind["Enum"] = 12] = "Enum";
896
+ CompletionItemKind[CompletionItemKind["Keyword"] = 13] = "Keyword";
897
+ CompletionItemKind[CompletionItemKind["Snippet"] = 14] = "Snippet";
898
+ CompletionItemKind[CompletionItemKind["Color"] = 15] = "Color";
899
+ CompletionItemKind[CompletionItemKind["File"] = 16] = "File";
900
+ CompletionItemKind[CompletionItemKind["Reference"] = 17] = "Reference";
901
+ CompletionItemKind[CompletionItemKind["Folder"] = 18] = "Folder";
902
+ CompletionItemKind[CompletionItemKind["EnumMember"] = 19] = "EnumMember";
903
+ CompletionItemKind[CompletionItemKind["Constant"] = 20] = "Constant";
904
+ CompletionItemKind[CompletionItemKind["Struct"] = 21] = "Struct";
905
+ CompletionItemKind[CompletionItemKind["Event"] = 22] = "Event";
906
+ CompletionItemKind[CompletionItemKind["Operator"] = 23] = "Operator";
907
+ CompletionItemKind[CompletionItemKind["TypeParameter"] = 24] = "TypeParameter";
908
+ CompletionItemKind[CompletionItemKind["User"] = 25] = "User";
909
+ CompletionItemKind[CompletionItemKind["Issue"] = 26] = "Issue";
910
+ })(CompletionItemKind || (exports.CompletionItemKind = CompletionItemKind = {}));
911
+ let CompletionItem = class CompletionItem {
912
+ constructor(label, kind) {
913
+ this.label = label;
914
+ this.kind = kind;
915
+ }
916
+ };
917
+ exports.CompletionItem = CompletionItem;
918
+ exports.CompletionItem = CompletionItem = tslib_1.__decorate([
919
+ types_1.es5ClassCompat,
920
+ tslib_1.__metadata("design:paramtypes", [String, Number])
921
+ ], CompletionItem);
922
+ let CompletionList = class CompletionList {
923
+ constructor(items = [], isIncomplete = false) {
924
+ this.items = items;
925
+ this.isIncomplete = isIncomplete;
926
+ }
927
+ };
928
+ exports.CompletionList = CompletionList;
929
+ exports.CompletionList = CompletionList = tslib_1.__decorate([
930
+ types_1.es5ClassCompat,
931
+ tslib_1.__metadata("design:paramtypes", [Array, Boolean])
932
+ ], CompletionList);
933
+ var InlineCompletionTriggerKind;
934
+ (function (InlineCompletionTriggerKind) {
935
+ InlineCompletionTriggerKind[InlineCompletionTriggerKind["Invoke"] = 0] = "Invoke";
936
+ InlineCompletionTriggerKind[InlineCompletionTriggerKind["Automatic"] = 1] = "Automatic";
937
+ })(InlineCompletionTriggerKind || (exports.InlineCompletionTriggerKind = InlineCompletionTriggerKind = {}));
938
+ let InlineCompletionItem = class InlineCompletionItem {
939
+ constructor(insertText, range, command) {
940
+ this.insertText = insertText;
941
+ this.range = range;
942
+ this.command = command;
943
+ }
944
+ };
945
+ exports.InlineCompletionItem = InlineCompletionItem;
946
+ exports.InlineCompletionItem = InlineCompletionItem = tslib_1.__decorate([
947
+ types_1.es5ClassCompat,
948
+ tslib_1.__metadata("design:paramtypes", [String, Range, Object])
949
+ ], InlineCompletionItem);
950
+ let InlineCompletionList = class InlineCompletionList {
951
+ constructor(items) {
952
+ this.commands = undefined;
953
+ this.items = items;
954
+ }
955
+ };
956
+ exports.InlineCompletionList = InlineCompletionList;
957
+ exports.InlineCompletionList = InlineCompletionList = tslib_1.__decorate([
958
+ types_1.es5ClassCompat,
959
+ tslib_1.__metadata("design:paramtypes", [Array])
960
+ ], InlineCompletionList);
961
+ var DiagnosticSeverity;
962
+ (function (DiagnosticSeverity) {
963
+ DiagnosticSeverity[DiagnosticSeverity["Error"] = 0] = "Error";
964
+ DiagnosticSeverity[DiagnosticSeverity["Warning"] = 1] = "Warning";
965
+ DiagnosticSeverity[DiagnosticSeverity["Information"] = 2] = "Information";
966
+ DiagnosticSeverity[DiagnosticSeverity["Hint"] = 3] = "Hint";
967
+ })(DiagnosticSeverity || (exports.DiagnosticSeverity = DiagnosticSeverity = {}));
968
+ var DebugConsoleMode;
969
+ (function (DebugConsoleMode) {
970
+ DebugConsoleMode[DebugConsoleMode["Separate"] = 0] = "Separate";
971
+ DebugConsoleMode[DebugConsoleMode["MergeWithParent"] = 1] = "MergeWithParent";
972
+ })(DebugConsoleMode || (exports.DebugConsoleMode = DebugConsoleMode = {}));
973
+ let Location = Location_1 = class Location {
974
+ constructor(uri, rangeOrPosition) {
975
+ this.uri = uri;
976
+ if (rangeOrPosition instanceof Range) {
977
+ this.range = rangeOrPosition;
978
+ }
979
+ else if (rangeOrPosition instanceof Position) {
980
+ this.range = new Range(rangeOrPosition, rangeOrPosition);
981
+ }
982
+ }
983
+ static isLocation(thing) {
984
+ if (thing instanceof Location_1) {
985
+ return true;
986
+ }
987
+ if (!thing) {
988
+ return false;
989
+ }
990
+ return Range.isRange(thing.range)
991
+ && URI.isUri(thing.uri);
992
+ }
993
+ };
994
+ exports.Location = Location;
995
+ exports.Location = Location = Location_1 = tslib_1.__decorate([
996
+ types_1.es5ClassCompat,
997
+ tslib_1.__metadata("design:paramtypes", [URI, Object])
998
+ ], Location);
999
+ let DiagnosticRelatedInformation = class DiagnosticRelatedInformation {
1000
+ constructor(location, message) {
1001
+ this.location = location;
1002
+ this.message = message;
1003
+ }
1004
+ };
1005
+ exports.DiagnosticRelatedInformation = DiagnosticRelatedInformation;
1006
+ exports.DiagnosticRelatedInformation = DiagnosticRelatedInformation = tslib_1.__decorate([
1007
+ types_1.es5ClassCompat,
1008
+ tslib_1.__metadata("design:paramtypes", [Location, String])
1009
+ ], DiagnosticRelatedInformation);
1010
+ var DiagnosticTag;
1011
+ (function (DiagnosticTag) {
1012
+ DiagnosticTag[DiagnosticTag["Unnecessary"] = 1] = "Unnecessary";
1013
+ DiagnosticTag[DiagnosticTag["Deprecated"] = 2] = "Deprecated";
1014
+ })(DiagnosticTag || (exports.DiagnosticTag = DiagnosticTag = {}));
1015
+ var CompletionItemTag;
1016
+ (function (CompletionItemTag) {
1017
+ CompletionItemTag[CompletionItemTag["Deprecated"] = 1] = "Deprecated";
1018
+ })(CompletionItemTag || (exports.CompletionItemTag = CompletionItemTag = {}));
1019
+ let Diagnostic = class Diagnostic {
1020
+ constructor(range, message, severity = DiagnosticSeverity.Error) {
1021
+ this.range = range;
1022
+ this.message = message;
1023
+ this.severity = severity;
1024
+ }
1025
+ };
1026
+ exports.Diagnostic = Diagnostic;
1027
+ exports.Diagnostic = Diagnostic = tslib_1.__decorate([
1028
+ types_1.es5ClassCompat,
1029
+ tslib_1.__metadata("design:paramtypes", [Range, String, Number])
1030
+ ], Diagnostic);
1031
+ var MarkerSeverity;
1032
+ (function (MarkerSeverity) {
1033
+ MarkerSeverity[MarkerSeverity["Hint"] = 1] = "Hint";
1034
+ MarkerSeverity[MarkerSeverity["Info"] = 2] = "Info";
1035
+ MarkerSeverity[MarkerSeverity["Warning"] = 4] = "Warning";
1036
+ MarkerSeverity[MarkerSeverity["Error"] = 8] = "Error";
1037
+ })(MarkerSeverity || (exports.MarkerSeverity = MarkerSeverity = {}));
1038
+ var MarkerTag;
1039
+ (function (MarkerTag) {
1040
+ MarkerTag[MarkerTag["Unnecessary"] = 1] = "Unnecessary";
1041
+ MarkerTag[MarkerTag["Deprecated"] = 2] = "Deprecated";
1042
+ })(MarkerTag || (exports.MarkerTag = MarkerTag = {}));
1043
+ var NotebookCellKind;
1044
+ (function (NotebookCellKind) {
1045
+ NotebookCellKind[NotebookCellKind["Markup"] = 1] = "Markup";
1046
+ NotebookCellKind[NotebookCellKind["Code"] = 2] = "Code";
1047
+ })(NotebookCellKind || (exports.NotebookCellKind = NotebookCellKind = {}));
1048
+ var NotebookCellStatusBarAlignment;
1049
+ (function (NotebookCellStatusBarAlignment) {
1050
+ NotebookCellStatusBarAlignment[NotebookCellStatusBarAlignment["Left"] = 1] = "Left";
1051
+ NotebookCellStatusBarAlignment[NotebookCellStatusBarAlignment["Right"] = 2] = "Right";
1052
+ })(NotebookCellStatusBarAlignment || (exports.NotebookCellStatusBarAlignment = NotebookCellStatusBarAlignment = {}));
1053
+ var NotebookControllerAffinity;
1054
+ (function (NotebookControllerAffinity) {
1055
+ NotebookControllerAffinity[NotebookControllerAffinity["Default"] = 1] = "Default";
1056
+ NotebookControllerAffinity[NotebookControllerAffinity["Preferred"] = 2] = "Preferred";
1057
+ })(NotebookControllerAffinity || (exports.NotebookControllerAffinity = NotebookControllerAffinity = {}));
1058
+ var NotebookEditorRevealType;
1059
+ (function (NotebookEditorRevealType) {
1060
+ NotebookEditorRevealType[NotebookEditorRevealType["Default"] = 0] = "Default";
1061
+ NotebookEditorRevealType[NotebookEditorRevealType["InCenter"] = 1] = "InCenter";
1062
+ NotebookEditorRevealType[NotebookEditorRevealType["InCenterIfOutsideViewport"] = 2] = "InCenterIfOutsideViewport";
1063
+ NotebookEditorRevealType[NotebookEditorRevealType["AtTop"] = 3] = "AtTop";
1064
+ })(NotebookEditorRevealType || (exports.NotebookEditorRevealType = NotebookEditorRevealType = {}));
1065
+ var NotebookCellExecutionState;
1066
+ (function (NotebookCellExecutionState) {
1067
+ /**
1068
+ * The cell is idle.
1069
+ */
1070
+ NotebookCellExecutionState[NotebookCellExecutionState["Idle"] = 1] = "Idle";
1071
+ /**
1072
+ * Execution for the cell is pending.
1073
+ */
1074
+ NotebookCellExecutionState[NotebookCellExecutionState["Pending"] = 2] = "Pending";
1075
+ /**
1076
+ * The cell is currently executing.
1077
+ */
1078
+ NotebookCellExecutionState[NotebookCellExecutionState["Executing"] = 3] = "Executing";
1079
+ })(NotebookCellExecutionState || (exports.NotebookCellExecutionState = NotebookCellExecutionState = {}));
1080
+ class NotebookKernelSourceAction {
1081
+ constructor(label) {
1082
+ this.label = label;
1083
+ }
1084
+ }
1085
+ exports.NotebookKernelSourceAction = NotebookKernelSourceAction;
1086
+ let NotebookCellData = class NotebookCellData {
1087
+ constructor(kind, value, languageId, outputs, metadata, executionSummary) {
1088
+ this.kind = kind;
1089
+ this.value = value;
1090
+ this.languageId = languageId;
1091
+ this.outputs = outputs !== null && outputs !== void 0 ? outputs : [];
1092
+ this.metadata = metadata;
1093
+ this.executionSummary = executionSummary;
1094
+ }
1095
+ };
1096
+ exports.NotebookCellData = NotebookCellData;
1097
+ exports.NotebookCellData = NotebookCellData = tslib_1.__decorate([
1098
+ types_1.es5ClassCompat,
1099
+ tslib_1.__metadata("design:paramtypes", [Number, String, String, Array, Object, Object])
1100
+ ], NotebookCellData);
1101
+ let NotebookCellOutput = class NotebookCellOutput {
1102
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1103
+ constructor(items, idOrMetadata, metadata) {
1104
+ this.items = items;
1105
+ if (typeof idOrMetadata === 'string') {
1106
+ this.outputId = idOrMetadata;
1107
+ this.metadata = metadata;
1108
+ }
1109
+ else {
1110
+ this.outputId = coreutils_1.UUID.uuid4();
1111
+ this.metadata = idOrMetadata !== null && idOrMetadata !== void 0 ? idOrMetadata : metadata;
1112
+ }
1113
+ }
1114
+ };
1115
+ exports.NotebookCellOutput = NotebookCellOutput;
1116
+ exports.NotebookCellOutput = NotebookCellOutput = tslib_1.__decorate([
1117
+ types_1.es5ClassCompat,
1118
+ tslib_1.__metadata("design:paramtypes", [Array, Object, Object])
1119
+ ], NotebookCellOutput);
1120
+ class NotebookCellOutputItem {
1121
+ static text(value, mime) {
1122
+ const bytes = tslib_1.__classPrivateFieldGet(_a, _a, "f", _NotebookCellOutputItem_encoder).encode(String(value));
1123
+ return new _a(bytes, mime || 'text/plain');
1124
+ }
1125
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1126
+ static json(value, mime) {
1127
+ const jsonStr = JSON.stringify(value, undefined, '\t');
1128
+ return _a.text(jsonStr, mime);
1129
+ }
1130
+ static stdout(value) {
1131
+ return _a.text(value, 'application/vnd.code.notebook.stdout');
1132
+ }
1133
+ static stderr(value) {
1134
+ return _a.text(value, 'application/vnd.code.notebook.stderr');
1135
+ }
1136
+ static error(value) {
1137
+ return _a.json(value, 'application/vnd.code.notebook.error');
1138
+ }
1139
+ constructor(data, mime) {
1140
+ this.data = data;
1141
+ this.mime = mime;
1142
+ }
1143
+ }
1144
+ exports.NotebookCellOutputItem = NotebookCellOutputItem;
1145
+ _a = NotebookCellOutputItem;
1146
+ _NotebookCellOutputItem_encoder = { value: new TextEncoder() };
1147
+ let NotebookCellStatusBarItem = class NotebookCellStatusBarItem {
1148
+ /**
1149
+ * Creates a new NotebookCellStatusBarItem.
1150
+ * @param text The text to show for the item.
1151
+ * @param alignment Whether the item is aligned to the left or right.
1152
+ * @stubbed
1153
+ */
1154
+ constructor(text, alignment) {
1155
+ this.text = text;
1156
+ this.alignment = alignment;
1157
+ }
1158
+ };
1159
+ exports.NotebookCellStatusBarItem = NotebookCellStatusBarItem;
1160
+ exports.NotebookCellStatusBarItem = NotebookCellStatusBarItem = tslib_1.__decorate([
1161
+ types_1.es5ClassCompat,
1162
+ tslib_1.__metadata("design:paramtypes", [String, Number])
1163
+ ], NotebookCellStatusBarItem);
1164
+ let NotebookData = class NotebookData {
1165
+ constructor(cells) {
1166
+ this.cells = cells;
1167
+ }
1168
+ };
1169
+ exports.NotebookData = NotebookData;
1170
+ exports.NotebookData = NotebookData = tslib_1.__decorate([
1171
+ types_1.es5ClassCompat,
1172
+ tslib_1.__metadata("design:paramtypes", [Array])
1173
+ ], NotebookData);
1174
+ class NotebookRange {
1175
+ static isNotebookRange(thing) {
1176
+ if (thing instanceof NotebookRange) {
1177
+ return true;
1178
+ }
1179
+ if (!thing) {
1180
+ return false;
1181
+ }
1182
+ return typeof thing.start === 'number'
1183
+ && typeof thing.end === 'number';
1184
+ }
1185
+ with(change) {
1186
+ let newStart = this.start;
1187
+ let newEnd = this.end;
1188
+ if (change.start !== undefined) {
1189
+ newStart = change.start;
1190
+ }
1191
+ if (change.end !== undefined) {
1192
+ newEnd = change.end;
1193
+ }
1194
+ if (newStart === this.start && newEnd === this.end) {
1195
+ return this;
1196
+ }
1197
+ return new NotebookRange(newStart, newEnd);
1198
+ }
1199
+ constructor(start, end) {
1200
+ this.start = start;
1201
+ this.end = end;
1202
+ }
1203
+ }
1204
+ exports.NotebookRange = NotebookRange;
1205
+ class SnippetTextEdit {
1206
+ static isSnippetTextEdit(thing) {
1207
+ return thing instanceof SnippetTextEdit || (0, common_1.isObject)(thing)
1208
+ && Range.isRange(thing.range)
1209
+ && SnippetString.isSnippetString(thing.snippet);
1210
+ }
1211
+ static replace(range, snippet) {
1212
+ return new SnippetTextEdit(range, snippet);
1213
+ }
1214
+ static insert(position, snippet) {
1215
+ return SnippetTextEdit.replace(new Range(position, position), snippet);
1216
+ }
1217
+ constructor(range, snippet) {
1218
+ this.range = range;
1219
+ this.snippet = snippet;
1220
+ }
1221
+ }
1222
+ exports.SnippetTextEdit = SnippetTextEdit;
1223
+ let NotebookEdit = NotebookEdit_1 = class NotebookEdit {
1224
+ static isNotebookCellEdit(thing) {
1225
+ if (thing instanceof NotebookEdit_1) {
1226
+ return true;
1227
+ }
1228
+ if (!thing) {
1229
+ return false;
1230
+ }
1231
+ return NotebookRange.isNotebookRange(thing)
1232
+ && Array.isArray(thing.newCells);
1233
+ }
1234
+ static replaceCells(range, newCells) {
1235
+ return new NotebookEdit_1(range, newCells);
1236
+ }
1237
+ static insertCells(index, newCells) {
1238
+ return new NotebookEdit_1(new NotebookRange(index, index), newCells);
1239
+ }
1240
+ static deleteCells(range) {
1241
+ return new NotebookEdit_1(range, []);
1242
+ }
1243
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1244
+ static updateCellMetadata(index, newCellMetadata) {
1245
+ return new NotebookEdit_1(new NotebookRange(index, index), [], newCellMetadata);
1246
+ }
1247
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1248
+ static updateNotebookMetadata(newNotebookMetadata) {
1249
+ return new NotebookEdit_1(new NotebookRange(0, 0), [], undefined, newNotebookMetadata);
1250
+ }
1251
+ constructor(range, newCells, newCellMetadata, newNotebookMetadata) {
1252
+ this.range = range;
1253
+ this.newCells = newCells;
1254
+ this.newCellMetadata = newCellMetadata;
1255
+ this.newNotebookMetadata = newNotebookMetadata;
1256
+ }
1257
+ };
1258
+ exports.NotebookEdit = NotebookEdit;
1259
+ exports.NotebookEdit = NotebookEdit = NotebookEdit_1 = tslib_1.__decorate([
1260
+ types_1.es5ClassCompat,
1261
+ tslib_1.__metadata("design:paramtypes", [NotebookRange, Array, Object, Object])
1262
+ ], NotebookEdit);
1263
+ class NotebookRendererScript {
1264
+ constructor(uri, provides) {
1265
+ this.uri = uri;
1266
+ this.provides = Array.isArray(provides) ? provides : [provides];
1267
+ }
1268
+ ;
1269
+ }
1270
+ exports.NotebookRendererScript = NotebookRendererScript;
1271
+ let ParameterInformation = class ParameterInformation {
1272
+ constructor(label, documentation) {
1273
+ this.label = label;
1274
+ this.documentation = documentation;
1275
+ }
1276
+ };
1277
+ exports.ParameterInformation = ParameterInformation;
1278
+ exports.ParameterInformation = ParameterInformation = tslib_1.__decorate([
1279
+ types_1.es5ClassCompat,
1280
+ tslib_1.__metadata("design:paramtypes", [Object, Object])
1281
+ ], ParameterInformation);
1282
+ let SignatureInformation = class SignatureInformation {
1283
+ constructor(label, documentation) {
1284
+ this.label = label;
1285
+ this.documentation = documentation;
1286
+ this.parameters = [];
1287
+ }
1288
+ };
1289
+ exports.SignatureInformation = SignatureInformation;
1290
+ exports.SignatureInformation = SignatureInformation = tslib_1.__decorate([
1291
+ types_1.es5ClassCompat,
1292
+ tslib_1.__metadata("design:paramtypes", [String, Object])
1293
+ ], SignatureInformation);
1294
+ var SignatureHelpTriggerKind;
1295
+ (function (SignatureHelpTriggerKind) {
1296
+ SignatureHelpTriggerKind[SignatureHelpTriggerKind["Invoke"] = 1] = "Invoke";
1297
+ SignatureHelpTriggerKind[SignatureHelpTriggerKind["TriggerCharacter"] = 2] = "TriggerCharacter";
1298
+ SignatureHelpTriggerKind[SignatureHelpTriggerKind["ContentChange"] = 3] = "ContentChange";
1299
+ })(SignatureHelpTriggerKind || (exports.SignatureHelpTriggerKind = SignatureHelpTriggerKind = {}));
1300
+ let SignatureHelp = class SignatureHelp {
1301
+ constructor() {
1302
+ this.signatures = [];
1303
+ }
1304
+ };
1305
+ exports.SignatureHelp = SignatureHelp;
1306
+ exports.SignatureHelp = SignatureHelp = tslib_1.__decorate([
1307
+ types_1.es5ClassCompat,
1308
+ tslib_1.__metadata("design:paramtypes", [])
1309
+ ], SignatureHelp);
1310
+ let Hover = class Hover {
1311
+ constructor(contents, range) {
1312
+ if (!contents) {
1313
+ (0, errors_1.illegalArgument)('contents must be defined');
1314
+ }
1315
+ if (Array.isArray(contents)) {
1316
+ this.contents = contents;
1317
+ }
1318
+ else {
1319
+ this.contents = [contents];
1320
+ }
1321
+ this.range = range;
1322
+ }
1323
+ };
1324
+ exports.Hover = Hover;
1325
+ exports.Hover = Hover = tslib_1.__decorate([
1326
+ types_1.es5ClassCompat,
1327
+ tslib_1.__metadata("design:paramtypes", [Object, Range])
1328
+ ], Hover);
1329
+ let EvaluatableExpression = class EvaluatableExpression {
1330
+ constructor(range, expression) {
1331
+ if (!range) {
1332
+ (0, errors_1.illegalArgument)('range must be defined');
1333
+ }
1334
+ this.range = range;
1335
+ this.expression = expression;
1336
+ }
1337
+ };
1338
+ exports.EvaluatableExpression = EvaluatableExpression;
1339
+ exports.EvaluatableExpression = EvaluatableExpression = tslib_1.__decorate([
1340
+ types_1.es5ClassCompat,
1341
+ tslib_1.__metadata("design:paramtypes", [Range, String])
1342
+ ], EvaluatableExpression);
1343
+ let InlineValueContext = class InlineValueContext {
1344
+ constructor(frameId, stoppedLocation) {
1345
+ if (!frameId) {
1346
+ (0, errors_1.illegalArgument)('frameId must be defined');
1347
+ }
1348
+ if (!stoppedLocation) {
1349
+ (0, errors_1.illegalArgument)('stoppedLocation must be defined');
1350
+ }
1351
+ this.frameId = frameId;
1352
+ this.stoppedLocation = stoppedLocation;
1353
+ }
1354
+ };
1355
+ exports.InlineValueContext = InlineValueContext;
1356
+ exports.InlineValueContext = InlineValueContext = tslib_1.__decorate([
1357
+ types_1.es5ClassCompat,
1358
+ tslib_1.__metadata("design:paramtypes", [Number, Range])
1359
+ ], InlineValueContext);
1360
+ let InlineValueText = class InlineValueText {
1361
+ constructor(range, text) {
1362
+ this.type = 'text';
1363
+ if (!range) {
1364
+ (0, errors_1.illegalArgument)('range must be defined');
1365
+ }
1366
+ if (!text) {
1367
+ (0, errors_1.illegalArgument)('text must be defined');
1368
+ }
1369
+ this.range = range;
1370
+ this.text = text;
1371
+ }
1372
+ };
1373
+ exports.InlineValueText = InlineValueText;
1374
+ exports.InlineValueText = InlineValueText = tslib_1.__decorate([
1375
+ types_1.es5ClassCompat,
1376
+ tslib_1.__metadata("design:paramtypes", [Range, String])
1377
+ ], InlineValueText);
1378
+ let InlineValueVariableLookup = class InlineValueVariableLookup {
1379
+ constructor(range, variableName, caseSensitiveLookup) {
1380
+ this.type = 'variable';
1381
+ if (!range) {
1382
+ (0, errors_1.illegalArgument)('range must be defined');
1383
+ }
1384
+ this.range = range;
1385
+ this.caseSensitiveLookup = caseSensitiveLookup || true;
1386
+ this.variableName = variableName;
1387
+ }
1388
+ };
1389
+ exports.InlineValueVariableLookup = InlineValueVariableLookup;
1390
+ exports.InlineValueVariableLookup = InlineValueVariableLookup = tslib_1.__decorate([
1391
+ types_1.es5ClassCompat,
1392
+ tslib_1.__metadata("design:paramtypes", [Range, String, Boolean])
1393
+ ], InlineValueVariableLookup);
1394
+ let InlineValueEvaluatableExpression = class InlineValueEvaluatableExpression {
1395
+ constructor(range, expression) {
1396
+ this.type = 'expression';
1397
+ if (!range) {
1398
+ (0, errors_1.illegalArgument)('range must be defined');
1399
+ }
1400
+ this.range = range;
1401
+ this.expression = expression;
1402
+ }
1403
+ };
1404
+ exports.InlineValueEvaluatableExpression = InlineValueEvaluatableExpression;
1405
+ exports.InlineValueEvaluatableExpression = InlineValueEvaluatableExpression = tslib_1.__decorate([
1406
+ types_1.es5ClassCompat,
1407
+ tslib_1.__metadata("design:paramtypes", [Range, String])
1408
+ ], InlineValueEvaluatableExpression);
1409
+ var DocumentHighlightKind;
1410
+ (function (DocumentHighlightKind) {
1411
+ DocumentHighlightKind[DocumentHighlightKind["Text"] = 0] = "Text";
1412
+ DocumentHighlightKind[DocumentHighlightKind["Read"] = 1] = "Read";
1413
+ DocumentHighlightKind[DocumentHighlightKind["Write"] = 2] = "Write";
1414
+ })(DocumentHighlightKind || (exports.DocumentHighlightKind = DocumentHighlightKind = {}));
1415
+ let DocumentHighlight = class DocumentHighlight {
1416
+ constructor(range, kind) {
1417
+ this.range = range;
1418
+ this.kind = kind;
1419
+ }
1420
+ };
1421
+ exports.DocumentHighlight = DocumentHighlight;
1422
+ exports.DocumentHighlight = DocumentHighlight = tslib_1.__decorate([
1423
+ types_1.es5ClassCompat,
1424
+ tslib_1.__metadata("design:paramtypes", [Range, Number])
1425
+ ], DocumentHighlight);
1426
+ let MultiDocumentHighlight = class MultiDocumentHighlight {
1427
+ /**
1428
+ * Creates a new instance of MultiDocumentHighlight.
1429
+ * @param uri The URI of the document containing the highlights.
1430
+ * @param highlights The highlights for the document.
1431
+ */
1432
+ constructor(uri, highlights) {
1433
+ this.uri = uri;
1434
+ this.highlights = highlights;
1435
+ }
1436
+ };
1437
+ exports.MultiDocumentHighlight = MultiDocumentHighlight;
1438
+ exports.MultiDocumentHighlight = MultiDocumentHighlight = tslib_1.__decorate([
1439
+ types_1.es5ClassCompat,
1440
+ tslib_1.__metadata("design:paramtypes", [URI, Array])
1441
+ ], MultiDocumentHighlight);
1442
+ let DocumentLink = class DocumentLink {
1443
+ constructor(range, target) {
1444
+ if (target && !(URI.isUri(target))) {
1445
+ throw (0, errors_1.illegalArgument)('target');
1446
+ }
1447
+ if (!Range.isRange(range) || range.isEmpty) {
1448
+ throw (0, errors_1.illegalArgument)('range');
1449
+ }
1450
+ this.range = range;
1451
+ this.target = target;
1452
+ }
1453
+ };
1454
+ exports.DocumentLink = DocumentLink;
1455
+ exports.DocumentLink = DocumentLink = tslib_1.__decorate([
1456
+ types_1.es5ClassCompat,
1457
+ tslib_1.__metadata("design:paramtypes", [Range, Object])
1458
+ ], DocumentLink);
1459
+ let DocumentDropOrPasteEditKind = DocumentDropOrPasteEditKind_1 = class DocumentDropOrPasteEditKind {
1460
+ constructor(value) {
1461
+ this.value = value;
1462
+ }
1463
+ append(...parts) {
1464
+ return new DocumentDropOrPasteEditKind_1((this.value ? [this.value, ...parts] : parts).join(DocumentDropOrPasteEditKind_1.sep));
1465
+ }
1466
+ intersects(other) {
1467
+ return this.contains(other) || other.contains(this);
1468
+ }
1469
+ contains(other) {
1470
+ return this.value === other.value || other.value.startsWith(this.value + DocumentDropOrPasteEditKind_1.sep);
1471
+ }
1472
+ };
1473
+ exports.DocumentDropOrPasteEditKind = DocumentDropOrPasteEditKind;
1474
+ DocumentDropOrPasteEditKind.Empty = new DocumentDropOrPasteEditKind_1('');
1475
+ DocumentDropOrPasteEditKind.Text = new DocumentDropOrPasteEditKind_1('text');
1476
+ DocumentDropOrPasteEditKind.TextUpdateImports = new DocumentDropOrPasteEditKind_1('updateImports');
1477
+ DocumentDropOrPasteEditKind.sep = '.';
1478
+ exports.DocumentDropOrPasteEditKind = DocumentDropOrPasteEditKind = DocumentDropOrPasteEditKind_1 = tslib_1.__decorate([
1479
+ types_1.es5ClassCompat,
1480
+ tslib_1.__metadata("design:paramtypes", [String])
1481
+ ], DocumentDropOrPasteEditKind);
1482
+ let DocumentDropEdit = class DocumentDropEdit {
1483
+ constructor(insertText) {
1484
+ this.insertText = insertText;
1485
+ }
1486
+ };
1487
+ exports.DocumentDropEdit = DocumentDropEdit;
1488
+ exports.DocumentDropEdit = DocumentDropEdit = tslib_1.__decorate([
1489
+ types_1.es5ClassCompat,
1490
+ tslib_1.__metadata("design:paramtypes", [Object])
1491
+ ], DocumentDropEdit);
1492
+ let CodeLens = class CodeLens {
1493
+ get isResolved() {
1494
+ return !!this.command;
1495
+ }
1496
+ constructor(range, command) {
1497
+ this.range = range;
1498
+ this.command = command;
1499
+ }
1500
+ };
1501
+ exports.CodeLens = CodeLens;
1502
+ exports.CodeLens = CodeLens = tslib_1.__decorate([
1503
+ types_1.es5ClassCompat,
1504
+ tslib_1.__metadata("design:paramtypes", [Range, Object])
1505
+ ], CodeLens);
1506
+ var CodeActionTrigger;
1507
+ (function (CodeActionTrigger) {
1508
+ CodeActionTrigger[CodeActionTrigger["Automatic"] = 1] = "Automatic";
1509
+ CodeActionTrigger[CodeActionTrigger["Manual"] = 2] = "Manual";
1510
+ })(CodeActionTrigger || (exports.CodeActionTrigger = CodeActionTrigger = {}));
1511
+ /**
1512
+ * The reason why code actions were requested.
1513
+ */
1514
+ var CodeActionTriggerKind;
1515
+ (function (CodeActionTriggerKind) {
1516
+ /**
1517
+ * Code actions were explicitly requested by the user or by an extension.
1518
+ */
1519
+ CodeActionTriggerKind[CodeActionTriggerKind["Invoke"] = 1] = "Invoke";
1520
+ /**
1521
+ * Code actions were requested automatically.
1522
+ *
1523
+ * This typically happens when current selection in a file changes, but can
1524
+ * also be triggered when file content changes.
1525
+ */
1526
+ CodeActionTriggerKind[CodeActionTriggerKind["Automatic"] = 2] = "Automatic";
1527
+ })(CodeActionTriggerKind || (exports.CodeActionTriggerKind = CodeActionTriggerKind = {}));
1528
+ let CodeActionKind = CodeActionKind_1 = class CodeActionKind {
1529
+ constructor(value) {
1530
+ this.value = value;
1531
+ }
1532
+ append(parts) {
1533
+ return new CodeActionKind_1(this.value ? this.value + CodeActionKind_1.sep + parts : parts);
1534
+ }
1535
+ contains(other) {
1536
+ return this.value === other.value || (0, strings_1.startsWithIgnoreCase)(other.value, this.value + CodeActionKind_1.sep);
1537
+ }
1538
+ intersects(other) {
1539
+ return this.contains(other) || other.contains(this);
1540
+ }
1541
+ };
1542
+ exports.CodeActionKind = CodeActionKind;
1543
+ CodeActionKind.sep = '.';
1544
+ CodeActionKind.Empty = new CodeActionKind_1('');
1545
+ CodeActionKind.QuickFix = CodeActionKind_1.Empty.append('quickfix');
1546
+ CodeActionKind.Refactor = CodeActionKind_1.Empty.append('refactor');
1547
+ CodeActionKind.RefactorExtract = CodeActionKind_1.Refactor.append('extract');
1548
+ CodeActionKind.RefactorInline = CodeActionKind_1.Refactor.append('inline');
1549
+ CodeActionKind.RefactorMove = CodeActionKind_1.Refactor.append('move');
1550
+ CodeActionKind.RefactorRewrite = CodeActionKind_1.Refactor.append('rewrite');
1551
+ CodeActionKind.Source = CodeActionKind_1.Empty.append('source');
1552
+ CodeActionKind.SourceOrganizeImports = CodeActionKind_1.Source.append('organizeImports');
1553
+ CodeActionKind.SourceFixAll = CodeActionKind_1.Source.append('fixAll');
1554
+ CodeActionKind.Notebook = CodeActionKind_1.Empty.append('notebook');
1555
+ exports.CodeActionKind = CodeActionKind = CodeActionKind_1 = tslib_1.__decorate([
1556
+ types_1.es5ClassCompat,
1557
+ tslib_1.__metadata("design:paramtypes", [String])
1558
+ ], CodeActionKind);
1559
+ var TextDocumentSaveReason;
1560
+ (function (TextDocumentSaveReason) {
1561
+ TextDocumentSaveReason[TextDocumentSaveReason["Manual"] = 1] = "Manual";
1562
+ TextDocumentSaveReason[TextDocumentSaveReason["AfterDelay"] = 2] = "AfterDelay";
1563
+ TextDocumentSaveReason[TextDocumentSaveReason["FocusOut"] = 3] = "FocusOut";
1564
+ })(TextDocumentSaveReason || (exports.TextDocumentSaveReason = TextDocumentSaveReason = {}));
1565
+ let CodeAction = class CodeAction {
1566
+ constructor(title, kind) {
1567
+ this.title = title;
1568
+ this.kind = kind;
1569
+ }
1570
+ };
1571
+ exports.CodeAction = CodeAction;
1572
+ exports.CodeAction = CodeAction = tslib_1.__decorate([
1573
+ types_1.es5ClassCompat,
1574
+ tslib_1.__metadata("design:paramtypes", [String, CodeActionKind])
1575
+ ], CodeAction);
1576
+ let WorkspaceEdit = class WorkspaceEdit {
1577
+ constructor() {
1578
+ this._edits = new Array();
1579
+ }
1580
+ renameFile(from, to, options, metadata) {
1581
+ this._edits.push({ _type: 1, from, to, options, metadata });
1582
+ }
1583
+ createFile(uri, options, metadata) {
1584
+ this._edits.push({ _type: 1, from: undefined, to: uri, options, metadata });
1585
+ }
1586
+ deleteFile(uri, options, metadata) {
1587
+ this._edits.push({ _type: 1, from: uri, to: undefined, options, metadata });
1588
+ }
1589
+ replace(uri, range, newText, metadata) {
1590
+ this._edits.push({ _type: 2, uri, edit: new TextEdit(range, newText), metadata });
1591
+ }
1592
+ insert(resource, position, newText, metadata) {
1593
+ this.replace(resource, new Range(position, position), newText, metadata);
1594
+ }
1595
+ delete(resource, range, metadata) {
1596
+ this.replace(resource, range, '', metadata);
1597
+ }
1598
+ has(uri) {
1599
+ for (const edit of this._edits) {
1600
+ if (edit && edit._type === 2 && edit.uri.toString() === uri.toString()) {
1601
+ return true;
1602
+ }
1603
+ }
1604
+ return false;
1605
+ }
1606
+ set(uri, edits) {
1607
+ if (!edits) {
1608
+ // remove all text edits for `uri`
1609
+ for (let i = 0; i < this._edits.length; i++) {
1610
+ const element = this._edits[i];
1611
+ if (element &&
1612
+ (element._type === 2 /* FileEditType.Text */ || element._type === 6 /* FileEditType.Snippet */) &&
1613
+ element.uri.toString() === uri.toString()) {
1614
+ this._edits[i] = undefined;
1615
+ }
1616
+ }
1617
+ this._edits = this._edits.filter(e => !!e);
1618
+ }
1619
+ else {
1620
+ // append edit to the end
1621
+ for (const editOrTuple of edits) {
1622
+ if (!editOrTuple) {
1623
+ continue;
1624
+ }
1625
+ let edit;
1626
+ let metadata;
1627
+ if (Array.isArray(editOrTuple)) {
1628
+ edit = editOrTuple[0];
1629
+ metadata = editOrTuple[1];
1630
+ }
1631
+ else {
1632
+ edit = editOrTuple;
1633
+ }
1634
+ if (NotebookEdit.isNotebookCellEdit(edit)) {
1635
+ if (edit.newCellMetadata) {
1636
+ this._edits.push({
1637
+ _type: 3 /* FileEditType.Cell */, metadata, uri,
1638
+ edit: { editType: 3 /* CellEditType.Metadata */, index: edit.range.start, metadata: edit.newCellMetadata }
1639
+ });
1640
+ }
1641
+ else if (edit.newNotebookMetadata) {
1642
+ this._edits.push({
1643
+ _type: 3 /* FileEditType.Cell */, metadata, uri,
1644
+ edit: { editType: 5 /* CellEditType.DocumentMetadata */, metadata: edit.newNotebookMetadata }, notebookMetadata: edit.newNotebookMetadata
1645
+ });
1646
+ }
1647
+ else {
1648
+ const start = edit.range.start;
1649
+ const end = edit.range.end;
1650
+ if (start !== end || edit.newCells.length > 0) {
1651
+ this._edits.push({ _type: 5 /* FileEditType.CellReplace */, uri, index: start, count: end - start, cells: edit.newCells, metadata });
1652
+ }
1653
+ }
1654
+ }
1655
+ else if (SnippetTextEdit.isSnippetTextEdit(edit)) {
1656
+ this._edits.push({ _type: 6 /* FileEditType.Snippet */, uri, range: edit.range, edit, metadata });
1657
+ }
1658
+ else {
1659
+ this._edits.push({ _type: 2 /* FileEditType.Text */, uri, edit });
1660
+ }
1661
+ }
1662
+ }
1663
+ }
1664
+ get(uri) {
1665
+ const res = [];
1666
+ for (const candidate of this._edits) {
1667
+ if (candidate && candidate._type === 2 && candidate.uri.toString() === uri.toString()) {
1668
+ res.push(candidate.edit);
1669
+ }
1670
+ }
1671
+ if (res.length === 0) {
1672
+ return undefined;
1673
+ }
1674
+ return res;
1675
+ }
1676
+ entries() {
1677
+ const textEdits = new Map();
1678
+ for (const candidate of this._edits) {
1679
+ if (candidate && candidate._type === 2 /* FileEditType.Text */) {
1680
+ let textEdit = textEdits.get(candidate.uri.toString());
1681
+ if (!textEdit) {
1682
+ textEdit = [candidate.uri, []];
1683
+ textEdits.set(candidate.uri.toString(), textEdit);
1684
+ }
1685
+ textEdit[1].push(candidate.edit);
1686
+ }
1687
+ }
1688
+ const result = [];
1689
+ textEdits.forEach(v => result.push(v));
1690
+ return result;
1691
+ }
1692
+ // _allEntries(): ([URI, Array<TextEdit | SnippetTextEdit>, theia.WorkspaceEditEntryMetadata] | [URI, URI, FileOperationOptions, WorkspaceEditMetadata])[] {
1693
+ // const res: ([URI, Array<TextEdit | SnippetTextEdit>, theia.WorkspaceEditEntryMetadata] | [URI, URI, FileOperationOptions, WorkspaceEditMetadata])[] = [];
1694
+ // for (const edit of this._edits) {
1695
+ // if (!edit) {
1696
+ // continue;
1697
+ // }
1698
+ // if (edit._type === FileEditType.File) {
1699
+ // res.push([edit.from!, edit.to!, edit.options!, edit.metadata!]);
1700
+ // } else {
1701
+ // res.push([edit.uri, [edit.edit], edit.metadata!]);
1702
+ // }
1703
+ // }
1704
+ // return res;
1705
+ // }
1706
+ _allEntries() {
1707
+ return this._edits;
1708
+ }
1709
+ get size() {
1710
+ return this.entries().length;
1711
+ }
1712
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1713
+ toJSON() {
1714
+ return this.entries();
1715
+ }
1716
+ };
1717
+ exports.WorkspaceEdit = WorkspaceEdit;
1718
+ exports.WorkspaceEdit = WorkspaceEdit = tslib_1.__decorate([
1719
+ types_1.es5ClassCompat
1720
+ ], WorkspaceEdit);
1721
+ class DataTransferItem {
1722
+ asString() {
1723
+ return Promise.resolve(typeof this.value === 'string' ? this.value : JSON.stringify(this.value));
1724
+ }
1725
+ asFile() {
1726
+ return undefined;
1727
+ }
1728
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1729
+ constructor(value) {
1730
+ this.value = value;
1731
+ }
1732
+ }
1733
+ exports.DataTransferItem = DataTransferItem;
1734
+ /**
1735
+ * A map containing a mapping of the mime type of the corresponding transferred data.
1736
+ *
1737
+ * Drag and drop controllers that implement {@link TreeDragAndDropController.handleDrag `handleDrag`} can add additional mime types to the
1738
+ * data transfer. These additional mime types will only be included in the `handleDrop` when the the drag was initiated from
1739
+ * an element in the same drag and drop controller.
1740
+ */
1741
+ let DataTransfer = class DataTransfer {
1742
+ constructor() {
1743
+ this.items = new Map();
1744
+ }
1745
+ get(mimeType) {
1746
+ return this.items.get(mimeType);
1747
+ }
1748
+ set(mimeType, value) {
1749
+ this.items.set(mimeType, value);
1750
+ }
1751
+ has(mimeType) {
1752
+ return this.items.has(mimeType);
1753
+ }
1754
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1755
+ forEach(callbackfn, thisArg) {
1756
+ this.items.forEach((item, mimetype) => {
1757
+ callbackfn.call(thisArg, item, mimetype, this);
1758
+ });
1759
+ }
1760
+ [Symbol.iterator]() {
1761
+ return this.items[Symbol.iterator]();
1762
+ }
1763
+ clear() {
1764
+ this.items.clear();
1765
+ }
1766
+ };
1767
+ exports.DataTransfer = DataTransfer;
1768
+ exports.DataTransfer = DataTransfer = tslib_1.__decorate([
1769
+ types_1.es5ClassCompat
1770
+ ], DataTransfer);
1771
+ let TreeItem = class TreeItem {
1772
+ constructor(arg1, collapsibleState = TreeItemCollapsibleState.None) {
1773
+ this.collapsibleState = collapsibleState;
1774
+ if (arg1 instanceof URI) {
1775
+ this.resourceUri = arg1;
1776
+ }
1777
+ else {
1778
+ this.label = arg1;
1779
+ }
1780
+ }
1781
+ };
1782
+ exports.TreeItem = TreeItem;
1783
+ exports.TreeItem = TreeItem = tslib_1.__decorate([
1784
+ types_1.es5ClassCompat,
1785
+ tslib_1.__metadata("design:paramtypes", [Object, Number])
1786
+ ], TreeItem);
1787
+ var TreeItemCollapsibleState;
1788
+ (function (TreeItemCollapsibleState) {
1789
+ TreeItemCollapsibleState[TreeItemCollapsibleState["None"] = 0] = "None";
1790
+ TreeItemCollapsibleState[TreeItemCollapsibleState["Collapsed"] = 1] = "Collapsed";
1791
+ TreeItemCollapsibleState[TreeItemCollapsibleState["Expanded"] = 2] = "Expanded";
1792
+ })(TreeItemCollapsibleState || (exports.TreeItemCollapsibleState = TreeItemCollapsibleState = {}));
1793
+ var TreeItemCheckboxState;
1794
+ (function (TreeItemCheckboxState) {
1795
+ TreeItemCheckboxState[TreeItemCheckboxState["Unchecked"] = 0] = "Unchecked";
1796
+ TreeItemCheckboxState[TreeItemCheckboxState["Checked"] = 1] = "Checked";
1797
+ })(TreeItemCheckboxState || (exports.TreeItemCheckboxState = TreeItemCheckboxState = {}));
1798
+ var SymbolTag;
1799
+ (function (SymbolTag) {
1800
+ SymbolTag[SymbolTag["Deprecated"] = 1] = "Deprecated";
1801
+ })(SymbolTag || (exports.SymbolTag = SymbolTag = {}));
1802
+ let SymbolInformation = SymbolInformation_1 = class SymbolInformation {
1803
+ static validate(candidate) {
1804
+ if (!candidate.name) {
1805
+ throw new Error('Should provide a name inside candidate field');
1806
+ }
1807
+ }
1808
+ constructor(name, kind, rangeOrContainer, locationOrUri, containerName) {
1809
+ this.name = name;
1810
+ this.kind = kind;
1811
+ this.containerName = containerName;
1812
+ if (typeof rangeOrContainer === 'string') {
1813
+ this.containerName = rangeOrContainer;
1814
+ }
1815
+ if (locationOrUri instanceof Location) {
1816
+ this.location = locationOrUri;
1817
+ }
1818
+ else if (rangeOrContainer instanceof Range) {
1819
+ this.location = new Location(locationOrUri, rangeOrContainer);
1820
+ }
1821
+ SymbolInformation_1.validate(this);
1822
+ }
1823
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1824
+ toJSON() {
1825
+ return {
1826
+ name: this.name,
1827
+ kind: plugin_api_rpc_model_1.SymbolKind[this.kind],
1828
+ location: this.location,
1829
+ containerName: this.containerName
1830
+ };
1831
+ }
1832
+ };
1833
+ exports.SymbolInformation = SymbolInformation;
1834
+ exports.SymbolInformation = SymbolInformation = SymbolInformation_1 = tslib_1.__decorate([
1835
+ types_1.es5ClassCompat,
1836
+ tslib_1.__metadata("design:paramtypes", [String, Number, Object, Object, String])
1837
+ ], SymbolInformation);
1838
+ let DocumentSymbol = DocumentSymbol_1 = class DocumentSymbol {
1839
+ static validate(candidate) {
1840
+ if (!candidate.name) {
1841
+ throw new Error('Should provide a name inside candidate field');
1842
+ }
1843
+ if (!candidate.range.contains(candidate.selectionRange)) {
1844
+ throw new Error('selectionRange must be contained in fullRange');
1845
+ }
1846
+ if (candidate.children) {
1847
+ candidate.children.forEach(DocumentSymbol_1.validate);
1848
+ }
1849
+ }
1850
+ constructor(name, detail, kind, range, selectionRange) {
1851
+ this.name = name;
1852
+ this.detail = detail;
1853
+ this.kind = kind;
1854
+ this.range = range;
1855
+ this.selectionRange = selectionRange;
1856
+ this.children = [];
1857
+ DocumentSymbol_1.validate(this);
1858
+ }
1859
+ };
1860
+ exports.DocumentSymbol = DocumentSymbol;
1861
+ exports.DocumentSymbol = DocumentSymbol = DocumentSymbol_1 = tslib_1.__decorate([
1862
+ types_1.es5ClassCompat,
1863
+ tslib_1.__metadata("design:paramtypes", [String, String, Number, Range, Range])
1864
+ ], DocumentSymbol);
1865
+ var CommentThreadState;
1866
+ (function (CommentThreadState) {
1867
+ CommentThreadState[CommentThreadState["Unresolved"] = 0] = "Unresolved";
1868
+ CommentThreadState[CommentThreadState["Resolved"] = 1] = "Resolved";
1869
+ })(CommentThreadState || (exports.CommentThreadState = CommentThreadState = {}));
1870
+ var CommentThreadCollapsibleState;
1871
+ (function (CommentThreadCollapsibleState) {
1872
+ CommentThreadCollapsibleState[CommentThreadCollapsibleState["Collapsed"] = 0] = "Collapsed";
1873
+ CommentThreadCollapsibleState[CommentThreadCollapsibleState["Expanded"] = 1] = "Expanded";
1874
+ })(CommentThreadCollapsibleState || (exports.CommentThreadCollapsibleState = CommentThreadCollapsibleState = {}));
1875
+ let QuickInputButtons = class QuickInputButtons {
1876
+ };
1877
+ exports.QuickInputButtons = QuickInputButtons;
1878
+ QuickInputButtons.Back = {
1879
+ iconPath: {
1880
+ id: 'Back',
1881
+ },
1882
+ tooltip: 'Back'
1883
+ };
1884
+ exports.QuickInputButtons = QuickInputButtons = tslib_1.__decorate([
1885
+ types_1.es5ClassCompat
1886
+ ], QuickInputButtons);
1887
+ let TerminalLink = class TerminalLink {
1888
+ static validate(candidate) {
1889
+ if (typeof candidate.startIndex !== 'number') {
1890
+ throw new Error('Should provide a startIndex inside candidate field');
1891
+ }
1892
+ if (typeof candidate.length !== 'number') {
1893
+ throw new Error('Should provide a length inside candidate field');
1894
+ }
1895
+ }
1896
+ constructor(startIndex, length, tooltip) {
1897
+ this.startIndex = startIndex;
1898
+ this.length = length;
1899
+ this.tooltip = tooltip;
1900
+ }
1901
+ };
1902
+ exports.TerminalLink = TerminalLink;
1903
+ exports.TerminalLink = TerminalLink = tslib_1.__decorate([
1904
+ types_1.es5ClassCompat,
1905
+ tslib_1.__metadata("design:paramtypes", [Number, Number, String])
1906
+ ], TerminalLink);
1907
+ var TerminalLocation;
1908
+ (function (TerminalLocation) {
1909
+ TerminalLocation[TerminalLocation["Panel"] = 1] = "Panel";
1910
+ TerminalLocation[TerminalLocation["Editor"] = 2] = "Editor";
1911
+ })(TerminalLocation || (exports.TerminalLocation = TerminalLocation = {}));
1912
+ var TerminalOutputAnchor;
1913
+ (function (TerminalOutputAnchor) {
1914
+ TerminalOutputAnchor[TerminalOutputAnchor["Top"] = 0] = "Top";
1915
+ TerminalOutputAnchor[TerminalOutputAnchor["Bottom"] = 1] = "Bottom";
1916
+ })(TerminalOutputAnchor || (exports.TerminalOutputAnchor = TerminalOutputAnchor = {}));
1917
+ class TerminalProfile {
1918
+ /**
1919
+ * Creates a new terminal profile.
1920
+ * @param options The options that the terminal will launch with.
1921
+ */
1922
+ constructor(options) {
1923
+ this.options = options;
1924
+ }
1925
+ }
1926
+ exports.TerminalProfile = TerminalProfile;
1927
+ var TerminalExitReason;
1928
+ (function (TerminalExitReason) {
1929
+ TerminalExitReason[TerminalExitReason["Unknown"] = 0] = "Unknown";
1930
+ TerminalExitReason[TerminalExitReason["Shutdown"] = 1] = "Shutdown";
1931
+ TerminalExitReason[TerminalExitReason["Process"] = 2] = "Process";
1932
+ TerminalExitReason[TerminalExitReason["User"] = 3] = "User";
1933
+ TerminalExitReason[TerminalExitReason["Extension"] = 4] = "Extension";
1934
+ })(TerminalExitReason || (exports.TerminalExitReason = TerminalExitReason = {}));
1935
+ let FileDecoration = class FileDecoration {
1936
+ static validate(d) {
1937
+ if (d.badge && d.badge.length !== 1 && d.badge.length !== 2) {
1938
+ throw new Error('The \'badge\'-property must be undefined or a short character');
1939
+ }
1940
+ if (!d.color && !d.badge && !d.tooltip) {
1941
+ throw new Error('The decoration is empty');
1942
+ }
1943
+ }
1944
+ constructor(badge, tooltip, color) {
1945
+ this.badge = badge;
1946
+ this.tooltip = tooltip;
1947
+ this.color = color;
1948
+ }
1949
+ };
1950
+ exports.FileDecoration = FileDecoration;
1951
+ exports.FileDecoration = FileDecoration = tslib_1.__decorate([
1952
+ types_1.es5ClassCompat,
1953
+ tslib_1.__metadata("design:paramtypes", [String, String, ThemeColor])
1954
+ ], FileDecoration);
1955
+ var CommentMode;
1956
+ (function (CommentMode) {
1957
+ CommentMode[CommentMode["Editing"] = 0] = "Editing";
1958
+ CommentMode[CommentMode["Preview"] = 1] = "Preview";
1959
+ })(CommentMode || (exports.CommentMode = CommentMode = {}));
1960
+ // #region file api
1961
+ var FileChangeType;
1962
+ (function (FileChangeType) {
1963
+ FileChangeType[FileChangeType["Changed"] = 1] = "Changed";
1964
+ FileChangeType[FileChangeType["Created"] = 2] = "Created";
1965
+ FileChangeType[FileChangeType["Deleted"] = 3] = "Deleted";
1966
+ })(FileChangeType || (exports.FileChangeType = FileChangeType = {}));
1967
+ let FileSystemError = FileSystemError_1 = class FileSystemError extends Error {
1968
+ static FileExists(messageOrUri) {
1969
+ return new FileSystemError_1(messageOrUri, files_1.FileSystemProviderErrorCode.FileExists, FileSystemError_1.FileExists);
1970
+ }
1971
+ static FileNotFound(messageOrUri) {
1972
+ return new FileSystemError_1(messageOrUri, files_1.FileSystemProviderErrorCode.FileNotFound, FileSystemError_1.FileNotFound);
1973
+ }
1974
+ static FileNotADirectory(messageOrUri) {
1975
+ return new FileSystemError_1(messageOrUri, files_1.FileSystemProviderErrorCode.FileNotADirectory, FileSystemError_1.FileNotADirectory);
1976
+ }
1977
+ static FileIsADirectory(messageOrUri) {
1978
+ return new FileSystemError_1(messageOrUri, files_1.FileSystemProviderErrorCode.FileIsADirectory, FileSystemError_1.FileIsADirectory);
1979
+ }
1980
+ static NoPermissions(messageOrUri) {
1981
+ return new FileSystemError_1(messageOrUri, files_1.FileSystemProviderErrorCode.NoPermissions, FileSystemError_1.NoPermissions);
1982
+ }
1983
+ static Unavailable(messageOrUri) {
1984
+ return new FileSystemError_1(messageOrUri, files_1.FileSystemProviderErrorCode.Unavailable, FileSystemError_1.Unavailable);
1985
+ }
1986
+ constructor(uriOrMessage, code = files_1.FileSystemProviderErrorCode.Unknown, terminator) {
1987
+ var _b;
1988
+ super(URI.isUri(uriOrMessage) ? uriOrMessage.toString(true) : uriOrMessage);
1989
+ this.code = (_b = terminator === null || terminator === void 0 ? void 0 : terminator.name) !== null && _b !== void 0 ? _b : 'Unknown';
1990
+ // mark the error as file system provider error so that
1991
+ // we can extract the error code on the receiving side
1992
+ (0, files_1.markAsFileSystemProviderError)(this, code);
1993
+ // workaround when extending builtin objects and when compiling to ES5, see:
1994
+ // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
1995
+ if (typeof Object.setPrototypeOf === 'function') {
1996
+ Object.setPrototypeOf(this, FileSystemError_1.prototype);
1997
+ }
1998
+ if (typeof Error.captureStackTrace === 'function' && typeof terminator === 'function') {
1999
+ // nice stack traces
2000
+ Error.captureStackTrace(this, terminator);
2001
+ }
2002
+ }
2003
+ };
2004
+ exports.FileSystemError = FileSystemError;
2005
+ exports.FileSystemError = FileSystemError = FileSystemError_1 = tslib_1.__decorate([
2006
+ types_1.es5ClassCompat,
2007
+ tslib_1.__metadata("design:paramtypes", [Object, String, Function])
2008
+ ], FileSystemError);
2009
+ // #endregion
2010
+ var FileType;
2011
+ (function (FileType) {
2012
+ FileType[FileType["Unknown"] = 0] = "Unknown";
2013
+ FileType[FileType["File"] = 1] = "File";
2014
+ FileType[FileType["Directory"] = 2] = "Directory";
2015
+ FileType[FileType["SymbolicLink"] = 64] = "SymbolicLink";
2016
+ })(FileType || (exports.FileType = FileType = {}));
2017
+ let ProgressOptions = class ProgressOptions {
2018
+ constructor(location, title, cancellable) {
2019
+ this.location = location;
2020
+ }
2021
+ };
2022
+ exports.ProgressOptions = ProgressOptions;
2023
+ exports.ProgressOptions = ProgressOptions = tslib_1.__decorate([
2024
+ types_1.es5ClassCompat,
2025
+ tslib_1.__metadata("design:paramtypes", [Number, String, Boolean])
2026
+ ], ProgressOptions);
2027
+ let Progress = class Progress {
2028
+ /**
2029
+ * Report a progress update.
2030
+ * @param value A progress item, like a message and/or an
2031
+ * report on how much work finished
2032
+ */
2033
+ report(value) {
2034
+ }
2035
+ };
2036
+ exports.Progress = Progress;
2037
+ exports.Progress = Progress = tslib_1.__decorate([
2038
+ types_1.es5ClassCompat
2039
+ ], Progress);
2040
+ var ProgressLocation;
2041
+ (function (ProgressLocation) {
2042
+ /**
2043
+ * Show progress for the source control viewlet, as overlay for the icon and as progress bar
2044
+ * inside the viewlet (when visible). Neither supports cancellation nor discrete progress.
2045
+ */
2046
+ ProgressLocation[ProgressLocation["SourceControl"] = 1] = "SourceControl";
2047
+ /**
2048
+ * Show progress in the status bar of the editor. Neither supports cancellation nor discrete progress.
2049
+ */
2050
+ ProgressLocation[ProgressLocation["Window"] = 10] = "Window";
2051
+ /**
2052
+ * Show progress as notification with an optional cancel button. Supports to show infinite and discrete progress.
2053
+ */
2054
+ ProgressLocation[ProgressLocation["Notification"] = 15] = "Notification";
2055
+ })(ProgressLocation || (exports.ProgressLocation = ProgressLocation = {}));
2056
+ let ProcessExecution = class ProcessExecution {
2057
+ constructor(process, varg1, varg2) {
2058
+ if (typeof process !== 'string') {
2059
+ throw (0, errors_1.illegalArgument)('process');
2060
+ }
2061
+ this.executionProcess = process;
2062
+ if (varg1 !== undefined) {
2063
+ if (Array.isArray(varg1)) {
2064
+ this.arguments = varg1;
2065
+ this.executionOptions = varg2;
2066
+ }
2067
+ else {
2068
+ this.executionOptions = varg1;
2069
+ }
2070
+ }
2071
+ if (this.arguments === undefined) {
2072
+ this.arguments = [];
2073
+ }
2074
+ }
2075
+ get process() {
2076
+ return this.executionProcess;
2077
+ }
2078
+ set process(value) {
2079
+ if (typeof value !== 'string') {
2080
+ throw (0, errors_1.illegalArgument)('process');
2081
+ }
2082
+ this.executionProcess = value;
2083
+ }
2084
+ get args() {
2085
+ return this.arguments;
2086
+ }
2087
+ set args(value) {
2088
+ if (!Array.isArray(value)) {
2089
+ value = [];
2090
+ }
2091
+ this.arguments = value;
2092
+ }
2093
+ get options() {
2094
+ return this.executionOptions;
2095
+ }
2096
+ set options(value) {
2097
+ this.executionOptions = value;
2098
+ }
2099
+ static is(value) {
2100
+ const candidate = value;
2101
+ return candidate && !!candidate.process;
2102
+ }
2103
+ };
2104
+ exports.ProcessExecution = ProcessExecution;
2105
+ exports.ProcessExecution = ProcessExecution = tslib_1.__decorate([
2106
+ types_1.es5ClassCompat,
2107
+ tslib_1.__metadata("design:paramtypes", [String, Object, Object])
2108
+ ], ProcessExecution);
2109
+ var QuickPickItemKind;
2110
+ (function (QuickPickItemKind) {
2111
+ QuickPickItemKind[QuickPickItemKind["Separator"] = -1] = "Separator";
2112
+ QuickPickItemKind[QuickPickItemKind["Default"] = 0] = "Default";
2113
+ })(QuickPickItemKind || (exports.QuickPickItemKind = QuickPickItemKind = {}));
2114
+ var ShellQuoting;
2115
+ (function (ShellQuoting) {
2116
+ ShellQuoting[ShellQuoting["Escape"] = 1] = "Escape";
2117
+ ShellQuoting[ShellQuoting["Strong"] = 2] = "Strong";
2118
+ ShellQuoting[ShellQuoting["Weak"] = 3] = "Weak";
2119
+ })(ShellQuoting || (exports.ShellQuoting = ShellQuoting = {}));
2120
+ var TaskPanelKind;
2121
+ (function (TaskPanelKind) {
2122
+ TaskPanelKind[TaskPanelKind["Shared"] = 1] = "Shared";
2123
+ TaskPanelKind[TaskPanelKind["Dedicated"] = 2] = "Dedicated";
2124
+ TaskPanelKind[TaskPanelKind["New"] = 3] = "New";
2125
+ })(TaskPanelKind || (exports.TaskPanelKind = TaskPanelKind = {}));
2126
+ var TaskRevealKind;
2127
+ (function (TaskRevealKind) {
2128
+ TaskRevealKind[TaskRevealKind["Always"] = 1] = "Always";
2129
+ TaskRevealKind[TaskRevealKind["Silent"] = 2] = "Silent";
2130
+ TaskRevealKind[TaskRevealKind["Never"] = 3] = "Never";
2131
+ })(TaskRevealKind || (exports.TaskRevealKind = TaskRevealKind = {}));
2132
+ let ShellExecution = class ShellExecution {
2133
+ constructor(arg0, arg1, arg2) {
2134
+ if (Array.isArray(arg1) || typeof arg1 === 'string') {
2135
+ if (!arg0) {
2136
+ throw (0, errors_1.illegalArgument)('command can\'t be undefined or null');
2137
+ }
2138
+ if (typeof arg0 !== 'string' && typeof arg0.value !== 'string') {
2139
+ throw (0, errors_1.illegalArgument)('command');
2140
+ }
2141
+ this.shellCommand = arg0;
2142
+ this.arguments = arg1;
2143
+ this.shellOptions = arg2;
2144
+ }
2145
+ else {
2146
+ if (typeof arg0 !== 'string') {
2147
+ throw (0, errors_1.illegalArgument)('commandLine');
2148
+ }
2149
+ this.shellCommandLine = arg0;
2150
+ this.shellOptions = arg1;
2151
+ }
2152
+ }
2153
+ get commandLine() {
2154
+ return this.shellCommandLine;
2155
+ }
2156
+ set commandLine(value) {
2157
+ if (typeof value !== 'string') {
2158
+ throw (0, errors_1.illegalArgument)('commandLine');
2159
+ }
2160
+ this.shellCommandLine = value;
2161
+ }
2162
+ get command() {
2163
+ return this.shellCommand;
2164
+ }
2165
+ set command(value) {
2166
+ if (typeof value !== 'string' && typeof value.value !== 'string') {
2167
+ throw (0, errors_1.illegalArgument)('command');
2168
+ }
2169
+ this.shellCommand = value;
2170
+ }
2171
+ get args() {
2172
+ return this.arguments;
2173
+ }
2174
+ set args(value) {
2175
+ this.arguments = value || [];
2176
+ }
2177
+ get options() {
2178
+ return this.shellOptions;
2179
+ }
2180
+ set options(value) {
2181
+ this.shellOptions = value;
2182
+ }
2183
+ static is(value) {
2184
+ const candidate = value;
2185
+ return candidate && (!!candidate.commandLine || !!candidate.command);
2186
+ }
2187
+ };
2188
+ exports.ShellExecution = ShellExecution;
2189
+ exports.ShellExecution = ShellExecution = tslib_1.__decorate([
2190
+ types_1.es5ClassCompat,
2191
+ tslib_1.__metadata("design:paramtypes", [Object, Object, Object])
2192
+ ], ShellExecution);
2193
+ let CustomExecution = class CustomExecution {
2194
+ constructor(callback) {
2195
+ this._callback = callback;
2196
+ }
2197
+ set callback(value) {
2198
+ this._callback = value;
2199
+ }
2200
+ get callback() {
2201
+ return this._callback;
2202
+ }
2203
+ static is(value) {
2204
+ const candidate = value;
2205
+ return candidate && (!!candidate._callback);
2206
+ }
2207
+ };
2208
+ exports.CustomExecution = CustomExecution;
2209
+ exports.CustomExecution = CustomExecution = tslib_1.__decorate([
2210
+ types_1.es5ClassCompat,
2211
+ tslib_1.__metadata("design:paramtypes", [Function])
2212
+ ], CustomExecution);
2213
+ let TaskGroup = TaskGroup_1 = class TaskGroup {
2214
+ static from(value) {
2215
+ switch (value) {
2216
+ case 'clean':
2217
+ return TaskGroup_1.Clean;
2218
+ case 'build':
2219
+ return TaskGroup_1.Build;
2220
+ case 'rebuild':
2221
+ return TaskGroup_1.Rebuild;
2222
+ case 'test':
2223
+ return TaskGroup_1.Test;
2224
+ default:
2225
+ return undefined;
2226
+ }
2227
+ }
2228
+ constructor(id, label, isDefault) {
2229
+ this.id = id;
2230
+ this.isDefault = !!isDefault;
2231
+ }
2232
+ };
2233
+ exports.TaskGroup = TaskGroup;
2234
+ TaskGroup.Clean = new TaskGroup_1('clean', 'Clean');
2235
+ TaskGroup.Build = new TaskGroup_1('build', 'Build');
2236
+ TaskGroup.Rebuild = new TaskGroup_1('rebuild', 'Rebuild');
2237
+ TaskGroup.Test = new TaskGroup_1('test', 'Test');
2238
+ exports.TaskGroup = TaskGroup = TaskGroup_1 = tslib_1.__decorate([
2239
+ types_1.es5ClassCompat,
2240
+ tslib_1.__metadata("design:paramtypes", [String, String, Object])
2241
+ ], TaskGroup);
2242
+ var TaskScope;
2243
+ (function (TaskScope) {
2244
+ TaskScope[TaskScope["Global"] = 1] = "Global";
2245
+ TaskScope[TaskScope["Workspace"] = 2] = "Workspace";
2246
+ })(TaskScope || (exports.TaskScope = TaskScope = {}));
2247
+ let Task = class Task {
2248
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2249
+ constructor(...args) {
2250
+ let taskDefinition;
2251
+ let scope;
2252
+ let name;
2253
+ let source;
2254
+ let execution;
2255
+ let problemMatchers;
2256
+ if (typeof args[1] === 'string') {
2257
+ [
2258
+ taskDefinition,
2259
+ name,
2260
+ source,
2261
+ execution,
2262
+ problemMatchers,
2263
+ ] = args;
2264
+ }
2265
+ else {
2266
+ [
2267
+ taskDefinition,
2268
+ scope,
2269
+ name,
2270
+ source,
2271
+ execution,
2272
+ problemMatchers,
2273
+ ] = args;
2274
+ }
2275
+ this.definition = taskDefinition;
2276
+ this.scope = scope;
2277
+ this.name = name;
2278
+ this.source = source;
2279
+ this.execution = execution;
2280
+ if (typeof problemMatchers === 'string') {
2281
+ this.taskProblemMatchers = [problemMatchers];
2282
+ this.hasTaskProblemMatchers = true;
2283
+ }
2284
+ else if (Array.isArray(problemMatchers)) {
2285
+ this.taskProblemMatchers = problemMatchers;
2286
+ this.hasTaskProblemMatchers = true;
2287
+ }
2288
+ else {
2289
+ this.taskProblemMatchers = [];
2290
+ this.hasTaskProblemMatchers = false;
2291
+ }
2292
+ this.isTaskBackground = false;
2293
+ this.presentationOptions = Object.create(null);
2294
+ this.taskRunOptions = Object.create(null);
2295
+ }
2296
+ get definition() {
2297
+ return this.taskDefinition;
2298
+ }
2299
+ set definition(value) {
2300
+ if (value === undefined || value === null) {
2301
+ throw (0, errors_1.illegalArgument)('Kind can\'t be undefined or null');
2302
+ }
2303
+ this.taskDefinition = value;
2304
+ }
2305
+ get scope() {
2306
+ return this.taskScope;
2307
+ }
2308
+ set scope(value) {
2309
+ if (value === null) {
2310
+ value = undefined;
2311
+ }
2312
+ this.taskScope = value;
2313
+ }
2314
+ get name() {
2315
+ return this.taskName;
2316
+ }
2317
+ set name(value) {
2318
+ if (typeof value !== 'string') {
2319
+ throw (0, errors_1.illegalArgument)('name');
2320
+ }
2321
+ this.taskName = value;
2322
+ }
2323
+ get execution() {
2324
+ return this.taskExecution;
2325
+ }
2326
+ set execution(value) {
2327
+ if (value === null) {
2328
+ value = undefined;
2329
+ }
2330
+ this.taskExecution = value;
2331
+ }
2332
+ get problemMatchers() {
2333
+ return this.taskProblemMatchers;
2334
+ }
2335
+ set problemMatchers(value) {
2336
+ if (!Array.isArray(value)) {
2337
+ this.taskProblemMatchers = [];
2338
+ this.hasTaskProblemMatchers = false;
2339
+ return;
2340
+ }
2341
+ this.taskProblemMatchers = value;
2342
+ this.hasTaskProblemMatchers = true;
2343
+ }
2344
+ get hasProblemMatchers() {
2345
+ return this.hasTaskProblemMatchers;
2346
+ }
2347
+ get isBackground() {
2348
+ return this.isTaskBackground;
2349
+ }
2350
+ set isBackground(value) {
2351
+ if (value !== true && value !== false) {
2352
+ value = false;
2353
+ }
2354
+ this.isTaskBackground = value;
2355
+ }
2356
+ get source() {
2357
+ return this.taskSource;
2358
+ }
2359
+ set source(value) {
2360
+ if (typeof value !== 'string' || value.length === 0) {
2361
+ throw (0, errors_1.illegalArgument)('source must be a string of length > 0');
2362
+ }
2363
+ this.taskSource = value;
2364
+ }
2365
+ get group() {
2366
+ return this.taskGroup;
2367
+ }
2368
+ set group(value) {
2369
+ if (value === undefined || value === null) {
2370
+ this.taskGroup = undefined;
2371
+ return;
2372
+ }
2373
+ this.taskGroup = value;
2374
+ }
2375
+ get presentationOptions() {
2376
+ return this.taskPresentationOptions;
2377
+ }
2378
+ set presentationOptions(value) {
2379
+ if (value === null || value === undefined) {
2380
+ value = Object.create(null);
2381
+ }
2382
+ this.taskPresentationOptions = value;
2383
+ }
2384
+ get runOptions() {
2385
+ return this.taskRunOptions;
2386
+ }
2387
+ set runOptions(value) {
2388
+ if (value === null || value === undefined) {
2389
+ value = Object.create(null);
2390
+ }
2391
+ this.taskRunOptions = value;
2392
+ }
2393
+ };
2394
+ exports.Task = Task;
2395
+ exports.Task = Task = tslib_1.__decorate([
2396
+ types_1.es5ClassCompat,
2397
+ tslib_1.__metadata("design:paramtypes", [Object])
2398
+ ], Task);
2399
+ let Task2 = class Task2 extends Task {
2400
+ };
2401
+ exports.Task2 = Task2;
2402
+ exports.Task2 = Task2 = tslib_1.__decorate([
2403
+ types_1.es5ClassCompat
2404
+ ], Task2);
2405
+ let DebugAdapterExecutable = class DebugAdapterExecutable {
2406
+ /**
2407
+ * Creates a description for a debug adapter based on an executable program.
2408
+ *
2409
+ * @param command The command or executable path that implements the debug adapter.
2410
+ * @param args Optional arguments to be passed to the command or executable.
2411
+ * @param options Optional options to be used when starting the command or executable.
2412
+ */
2413
+ constructor(command, args, options) {
2414
+ this.command = command;
2415
+ this.args = args;
2416
+ this.options = options;
2417
+ }
2418
+ };
2419
+ exports.DebugAdapterExecutable = DebugAdapterExecutable;
2420
+ exports.DebugAdapterExecutable = DebugAdapterExecutable = tslib_1.__decorate([
2421
+ types_1.es5ClassCompat,
2422
+ tslib_1.__metadata("design:paramtypes", [String, Array, Object])
2423
+ ], DebugAdapterExecutable);
2424
+ (function (DebugAdapterExecutable) {
2425
+ function is(adapter) {
2426
+ return !!adapter && 'command' in adapter;
2427
+ }
2428
+ DebugAdapterExecutable.is = is;
2429
+ })(DebugAdapterExecutable || (exports.DebugAdapterExecutable = DebugAdapterExecutable = {}));
2430
+ /**
2431
+ * Represents a debug adapter running as a socket based server.
2432
+ */
2433
+ let DebugAdapterServer = class DebugAdapterServer {
2434
+ /**
2435
+ * Create a description for a debug adapter running as a socket based server.
2436
+ */
2437
+ constructor(port, host) {
2438
+ this.port = port;
2439
+ this.host = host;
2440
+ }
2441
+ };
2442
+ exports.DebugAdapterServer = DebugAdapterServer;
2443
+ exports.DebugAdapterServer = DebugAdapterServer = tslib_1.__decorate([
2444
+ types_1.es5ClassCompat,
2445
+ tslib_1.__metadata("design:paramtypes", [Number, String])
2446
+ ], DebugAdapterServer);
2447
+ (function (DebugAdapterServer) {
2448
+ function is(adapter) {
2449
+ return !!adapter && 'port' in adapter;
2450
+ }
2451
+ DebugAdapterServer.is = is;
2452
+ })(DebugAdapterServer || (exports.DebugAdapterServer = DebugAdapterServer = {}));
2453
+ /**
2454
+ * Represents a debug adapter running as a Named Pipe (on Windows)/UNIX Domain Socket (on non-Windows) based server.
2455
+ */
2456
+ let DebugAdapterNamedPipeServer = class DebugAdapterNamedPipeServer {
2457
+ /**
2458
+ * Create a description for a debug adapter running as a Named Pipe (on Windows)/UNIX Domain Socket (on non-Windows) based server.
2459
+ */
2460
+ constructor(path) {
2461
+ this.path = path;
2462
+ }
2463
+ };
2464
+ exports.DebugAdapterNamedPipeServer = DebugAdapterNamedPipeServer;
2465
+ exports.DebugAdapterNamedPipeServer = DebugAdapterNamedPipeServer = tslib_1.__decorate([
2466
+ types_1.es5ClassCompat,
2467
+ tslib_1.__metadata("design:paramtypes", [String])
2468
+ ], DebugAdapterNamedPipeServer);
2469
+ (function (DebugAdapterNamedPipeServer) {
2470
+ function is(adapter) {
2471
+ return !!adapter && 'path' in adapter;
2472
+ }
2473
+ DebugAdapterNamedPipeServer.is = is;
2474
+ })(DebugAdapterNamedPipeServer || (exports.DebugAdapterNamedPipeServer = DebugAdapterNamedPipeServer = {}));
2475
+ /**
2476
+ * A debug adapter descriptor for an inline implementation.
2477
+ */
2478
+ let DebugAdapterInlineImplementation = class DebugAdapterInlineImplementation {
2479
+ /**
2480
+ * Create a descriptor for an inline implementation of a debug adapter.
2481
+ */
2482
+ constructor(impl) {
2483
+ this.implementation = impl;
2484
+ }
2485
+ };
2486
+ exports.DebugAdapterInlineImplementation = DebugAdapterInlineImplementation;
2487
+ exports.DebugAdapterInlineImplementation = DebugAdapterInlineImplementation = tslib_1.__decorate([
2488
+ types_1.es5ClassCompat,
2489
+ tslib_1.__metadata("design:paramtypes", [Object])
2490
+ ], DebugAdapterInlineImplementation);
2491
+ (function (DebugAdapterInlineImplementation) {
2492
+ function is(adapter) {
2493
+ return !!adapter && 'implementation' in adapter;
2494
+ }
2495
+ DebugAdapterInlineImplementation.is = is;
2496
+ })(DebugAdapterInlineImplementation || (exports.DebugAdapterInlineImplementation = DebugAdapterInlineImplementation = {}));
2497
+ var LogLevel;
2498
+ (function (LogLevel) {
2499
+ LogLevel[LogLevel["Off"] = 0] = "Off";
2500
+ LogLevel[LogLevel["Trace"] = 1] = "Trace";
2501
+ LogLevel[LogLevel["Debug"] = 2] = "Debug";
2502
+ LogLevel[LogLevel["Info"] = 3] = "Info";
2503
+ LogLevel[LogLevel["Warning"] = 4] = "Warning";
2504
+ LogLevel[LogLevel["Error"] = 5] = "Error";
2505
+ })(LogLevel || (exports.LogLevel = LogLevel = {}));
2506
+ /**
2507
+ * The base class of all breakpoint types.
2508
+ */
2509
+ let Breakpoint = class Breakpoint {
2510
+ constructor(enabled, condition, hitCondition, logMessage, id) {
2511
+ this.enabled = enabled || false;
2512
+ this.condition = condition;
2513
+ this.hitCondition = hitCondition;
2514
+ this.logMessage = logMessage;
2515
+ this._id = id;
2516
+ }
2517
+ /**
2518
+ * The unique ID of the breakpoint.
2519
+ */
2520
+ get id() {
2521
+ if (!this._id) {
2522
+ this._id = coreutils_1.UUID.uuid4();
2523
+ }
2524
+ return this._id;
2525
+ }
2526
+ };
2527
+ exports.Breakpoint = Breakpoint;
2528
+ exports.Breakpoint = Breakpoint = tslib_1.__decorate([
2529
+ types_1.es5ClassCompat,
2530
+ tslib_1.__metadata("design:paramtypes", [Boolean, String, String, String, String])
2531
+ ], Breakpoint);
2532
+ /**
2533
+ * A breakpoint specified by a source location.
2534
+ */
2535
+ let SourceBreakpoint = class SourceBreakpoint extends Breakpoint {
2536
+ /**
2537
+ * Create a new breakpoint for a source location.
2538
+ */
2539
+ constructor(location, enabled, condition, hitCondition, logMessage, id) {
2540
+ super(enabled, condition, hitCondition, logMessage, id);
2541
+ this.location = location;
2542
+ }
2543
+ };
2544
+ exports.SourceBreakpoint = SourceBreakpoint;
2545
+ exports.SourceBreakpoint = SourceBreakpoint = tslib_1.__decorate([
2546
+ types_1.es5ClassCompat,
2547
+ tslib_1.__metadata("design:paramtypes", [Location, Boolean, String, String, String, String])
2548
+ ], SourceBreakpoint);
2549
+ /**
2550
+ * A breakpoint specified by a function name.
2551
+ */
2552
+ let FunctionBreakpoint = class FunctionBreakpoint extends Breakpoint {
2553
+ /**
2554
+ * Create a new function breakpoint.
2555
+ */
2556
+ constructor(functionName, enabled, condition, hitCondition, logMessage, id) {
2557
+ super(enabled, condition, hitCondition, logMessage, id);
2558
+ this.functionName = functionName;
2559
+ }
2560
+ };
2561
+ exports.FunctionBreakpoint = FunctionBreakpoint;
2562
+ exports.FunctionBreakpoint = FunctionBreakpoint = tslib_1.__decorate([
2563
+ types_1.es5ClassCompat,
2564
+ tslib_1.__metadata("design:paramtypes", [String, Boolean, String, String, String, String])
2565
+ ], FunctionBreakpoint);
2566
+ class DebugThread {
2567
+ constructor(session, threadId) {
2568
+ this.session = session;
2569
+ this.threadId = threadId;
2570
+ }
2571
+ }
2572
+ exports.DebugThread = DebugThread;
2573
+ class DebugStackFrame {
2574
+ constructor(session, threadId, frameId) {
2575
+ this.session = session;
2576
+ this.threadId = threadId;
2577
+ this.frameId = frameId;
2578
+ }
2579
+ }
2580
+ exports.DebugStackFrame = DebugStackFrame;
2581
+ let Color = class Color {
2582
+ constructor(red, green, blue, alpha) {
2583
+ this.red = red;
2584
+ this.green = green;
2585
+ this.blue = blue;
2586
+ this.alpha = alpha;
2587
+ }
2588
+ };
2589
+ exports.Color = Color;
2590
+ exports.Color = Color = tslib_1.__decorate([
2591
+ types_1.es5ClassCompat,
2592
+ tslib_1.__metadata("design:paramtypes", [Number, Number, Number, Number])
2593
+ ], Color);
2594
+ let ColorInformation = class ColorInformation {
2595
+ constructor(range, color) {
2596
+ if (color && !(color instanceof Color)) {
2597
+ throw (0, errors_1.illegalArgument)('color');
2598
+ }
2599
+ if (!Range.isRange(range)) {
2600
+ throw (0, errors_1.illegalArgument)('range');
2601
+ }
2602
+ this.range = range;
2603
+ this.color = color;
2604
+ }
2605
+ };
2606
+ exports.ColorInformation = ColorInformation;
2607
+ exports.ColorInformation = ColorInformation = tslib_1.__decorate([
2608
+ types_1.es5ClassCompat,
2609
+ tslib_1.__metadata("design:paramtypes", [Range, Color])
2610
+ ], ColorInformation);
2611
+ let ColorPresentation = class ColorPresentation {
2612
+ constructor(label) {
2613
+ if (!label || typeof label !== 'string') {
2614
+ throw (0, errors_1.illegalArgument)('label');
2615
+ }
2616
+ this.label = label;
2617
+ }
2618
+ };
2619
+ exports.ColorPresentation = ColorPresentation;
2620
+ exports.ColorPresentation = ColorPresentation = tslib_1.__decorate([
2621
+ types_1.es5ClassCompat,
2622
+ tslib_1.__metadata("design:paramtypes", [String])
2623
+ ], ColorPresentation);
2624
+ var ColorFormat;
2625
+ (function (ColorFormat) {
2626
+ ColorFormat[ColorFormat["RGB"] = 0] = "RGB";
2627
+ ColorFormat[ColorFormat["HEX"] = 1] = "HEX";
2628
+ ColorFormat[ColorFormat["HSL"] = 2] = "HSL";
2629
+ })(ColorFormat || (exports.ColorFormat = ColorFormat = {}));
2630
+ let InlayHintLabelPart = class InlayHintLabelPart {
2631
+ constructor(value) {
2632
+ this.value = value;
2633
+ }
2634
+ };
2635
+ exports.InlayHintLabelPart = InlayHintLabelPart;
2636
+ exports.InlayHintLabelPart = InlayHintLabelPart = tslib_1.__decorate([
2637
+ types_1.es5ClassCompat,
2638
+ tslib_1.__metadata("design:paramtypes", [String])
2639
+ ], InlayHintLabelPart);
2640
+ let InlayHint = class InlayHint {
2641
+ constructor(position, label, kind) {
2642
+ this.position = position;
2643
+ this.label = label;
2644
+ this.kind = kind;
2645
+ }
2646
+ };
2647
+ exports.InlayHint = InlayHint;
2648
+ exports.InlayHint = InlayHint = tslib_1.__decorate([
2649
+ types_1.es5ClassCompat,
2650
+ tslib_1.__metadata("design:paramtypes", [Function, Object, Number])
2651
+ ], InlayHint);
2652
+ var InlayHintKind;
2653
+ (function (InlayHintKind) {
2654
+ InlayHintKind[InlayHintKind["Type"] = 1] = "Type";
2655
+ InlayHintKind[InlayHintKind["Parameter"] = 2] = "Parameter";
2656
+ })(InlayHintKind || (exports.InlayHintKind = InlayHintKind = {}));
2657
+ let FoldingRange = class FoldingRange {
2658
+ constructor(start, end, kind) {
2659
+ this.start = start;
2660
+ this.end = end;
2661
+ this.kind = kind;
2662
+ }
2663
+ };
2664
+ exports.FoldingRange = FoldingRange;
2665
+ exports.FoldingRange = FoldingRange = tslib_1.__decorate([
2666
+ types_1.es5ClassCompat,
2667
+ tslib_1.__metadata("design:paramtypes", [Number, Number, Number])
2668
+ ], FoldingRange);
2669
+ var FoldingRangeKind;
2670
+ (function (FoldingRangeKind) {
2671
+ FoldingRangeKind[FoldingRangeKind["Comment"] = 1] = "Comment";
2672
+ FoldingRangeKind[FoldingRangeKind["Imports"] = 2] = "Imports";
2673
+ FoldingRangeKind[FoldingRangeKind["Region"] = 3] = "Region";
2674
+ })(FoldingRangeKind || (exports.FoldingRangeKind = FoldingRangeKind = {}));
2675
+ let SelectionRange = class SelectionRange {
2676
+ constructor(range, parent) {
2677
+ this.range = range;
2678
+ this.parent = parent;
2679
+ if (parent && !parent.range.contains(this.range)) {
2680
+ throw new Error('Invalid argument: parent must contain this range');
2681
+ }
2682
+ }
2683
+ };
2684
+ exports.SelectionRange = SelectionRange;
2685
+ exports.SelectionRange = SelectionRange = tslib_1.__decorate([
2686
+ types_1.es5ClassCompat,
2687
+ tslib_1.__metadata("design:paramtypes", [Range, SelectionRange])
2688
+ ], SelectionRange);
2689
+ /**
2690
+ * Enumeration of the supported operating systems.
2691
+ */
2692
+ var OperatingSystem;
2693
+ (function (OperatingSystem) {
2694
+ OperatingSystem["Windows"] = "Windows";
2695
+ OperatingSystem["Linux"] = "Linux";
2696
+ OperatingSystem["OSX"] = "OSX";
2697
+ })(OperatingSystem || (exports.OperatingSystem = OperatingSystem = {}));
2698
+ /** The areas of the application shell where webview panel can reside. */
2699
+ var WebviewPanelTargetArea;
2700
+ (function (WebviewPanelTargetArea) {
2701
+ WebviewPanelTargetArea["Main"] = "main";
2702
+ WebviewPanelTargetArea["Left"] = "left";
2703
+ WebviewPanelTargetArea["Right"] = "right";
2704
+ WebviewPanelTargetArea["Bottom"] = "bottom";
2705
+ })(WebviewPanelTargetArea || (exports.WebviewPanelTargetArea = WebviewPanelTargetArea = {}));
2706
+ /**
2707
+ * Possible kinds of UI that can use extensions.
2708
+ */
2709
+ var UIKind;
2710
+ (function (UIKind) {
2711
+ /**
2712
+ * Extensions are accessed from a desktop application.
2713
+ */
2714
+ UIKind[UIKind["Desktop"] = 1] = "Desktop";
2715
+ /**
2716
+ * Extensions are accessed from a web browser.
2717
+ */
2718
+ UIKind[UIKind["Web"] = 2] = "Web";
2719
+ })(UIKind || (exports.UIKind = UIKind = {}));
2720
+ let CallHierarchyItem = CallHierarchyItem_1 = class CallHierarchyItem {
2721
+ constructor(kind, name, detail, uri, range, selectionRange) {
2722
+ this.kind = kind;
2723
+ this.name = name;
2724
+ this.detail = detail;
2725
+ this.uri = uri;
2726
+ this.range = range;
2727
+ this.selectionRange = selectionRange;
2728
+ }
2729
+ static isCallHierarchyItem(thing) {
2730
+ if (thing instanceof CallHierarchyItem_1) {
2731
+ return true;
2732
+ }
2733
+ if (!thing) {
2734
+ return false;
2735
+ }
2736
+ return typeof thing.kind === 'number' &&
2737
+ typeof thing.name === 'string' &&
2738
+ URI.isUri(thing.uri) &&
2739
+ Range.isRange(thing.range) &&
2740
+ Range.isRange(thing.selectionRange);
2741
+ }
2742
+ };
2743
+ exports.CallHierarchyItem = CallHierarchyItem;
2744
+ exports.CallHierarchyItem = CallHierarchyItem = CallHierarchyItem_1 = tslib_1.__decorate([
2745
+ types_1.es5ClassCompat,
2746
+ tslib_1.__metadata("design:paramtypes", [Number, String, String, URI, Range, Range])
2747
+ ], CallHierarchyItem);
2748
+ let CallHierarchyIncomingCall = class CallHierarchyIncomingCall {
2749
+ constructor(item, fromRanges) {
2750
+ this.fromRanges = fromRanges;
2751
+ this.from = item;
2752
+ }
2753
+ };
2754
+ exports.CallHierarchyIncomingCall = CallHierarchyIncomingCall;
2755
+ exports.CallHierarchyIncomingCall = CallHierarchyIncomingCall = tslib_1.__decorate([
2756
+ types_1.es5ClassCompat,
2757
+ tslib_1.__metadata("design:paramtypes", [CallHierarchyItem, Array])
2758
+ ], CallHierarchyIncomingCall);
2759
+ let CallHierarchyOutgoingCall = class CallHierarchyOutgoingCall {
2760
+ constructor(item, fromRanges) {
2761
+ this.fromRanges = fromRanges;
2762
+ this.to = item;
2763
+ }
2764
+ };
2765
+ exports.CallHierarchyOutgoingCall = CallHierarchyOutgoingCall;
2766
+ exports.CallHierarchyOutgoingCall = CallHierarchyOutgoingCall = tslib_1.__decorate([
2767
+ types_1.es5ClassCompat,
2768
+ tslib_1.__metadata("design:paramtypes", [CallHierarchyItem, Array])
2769
+ ], CallHierarchyOutgoingCall);
2770
+ let TypeHierarchyItem = TypeHierarchyItem_1 = class TypeHierarchyItem {
2771
+ constructor(kind, name, detail, uri, range, selectionRange) {
2772
+ this.kind = kind;
2773
+ this.name = name;
2774
+ this.detail = detail;
2775
+ this.uri = uri;
2776
+ this.range = range;
2777
+ this.selectionRange = selectionRange;
2778
+ }
2779
+ static isTypeHierarchyItem(thing) {
2780
+ if (thing instanceof TypeHierarchyItem_1) {
2781
+ return true;
2782
+ }
2783
+ if (!thing) {
2784
+ return false;
2785
+ }
2786
+ return typeof thing.kind === 'number' &&
2787
+ typeof thing.name === 'string' &&
2788
+ URI.isUri(thing.uri) &&
2789
+ Range.isRange(thing.range) &&
2790
+ Range.isRange(thing.selectionRange);
2791
+ }
2792
+ };
2793
+ exports.TypeHierarchyItem = TypeHierarchyItem;
2794
+ exports.TypeHierarchyItem = TypeHierarchyItem = TypeHierarchyItem_1 = tslib_1.__decorate([
2795
+ types_1.es5ClassCompat,
2796
+ tslib_1.__metadata("design:paramtypes", [Number, String, String, URI, Range, Range])
2797
+ ], TypeHierarchyItem);
2798
+ var LanguageStatusSeverity;
2799
+ (function (LanguageStatusSeverity) {
2800
+ LanguageStatusSeverity[LanguageStatusSeverity["Information"] = 0] = "Information";
2801
+ LanguageStatusSeverity[LanguageStatusSeverity["Warning"] = 1] = "Warning";
2802
+ LanguageStatusSeverity[LanguageStatusSeverity["Error"] = 2] = "Error";
2803
+ })(LanguageStatusSeverity || (exports.LanguageStatusSeverity = LanguageStatusSeverity = {}));
2804
+ let LinkedEditingRanges = class LinkedEditingRanges {
2805
+ constructor(ranges, wordPattern) {
2806
+ this.ranges = ranges;
2807
+ this.wordPattern = wordPattern;
2808
+ }
2809
+ };
2810
+ exports.LinkedEditingRanges = LinkedEditingRanges;
2811
+ exports.LinkedEditingRanges = LinkedEditingRanges = tslib_1.__decorate([
2812
+ types_1.es5ClassCompat,
2813
+ tslib_1.__metadata("design:paramtypes", [Array, RegExp])
2814
+ ], LinkedEditingRanges);
2815
+ // Copied from https://github.com/microsoft/vscode/blob/1.72.2/src/vs/workbench/api/common/extHostTypes.ts
2816
+ var TestResultState;
2817
+ (function (TestResultState) {
2818
+ TestResultState[TestResultState["Queued"] = 1] = "Queued";
2819
+ TestResultState[TestResultState["Running"] = 2] = "Running";
2820
+ TestResultState[TestResultState["Passed"] = 3] = "Passed";
2821
+ TestResultState[TestResultState["Failed"] = 4] = "Failed";
2822
+ TestResultState[TestResultState["Skipped"] = 5] = "Skipped";
2823
+ TestResultState[TestResultState["Errored"] = 6] = "Errored";
2824
+ })(TestResultState || (exports.TestResultState = TestResultState = {}));
2825
+ var TestRunProfileKind;
2826
+ (function (TestRunProfileKind) {
2827
+ TestRunProfileKind[TestRunProfileKind["Run"] = 1] = "Run";
2828
+ TestRunProfileKind[TestRunProfileKind["Debug"] = 2] = "Debug";
2829
+ TestRunProfileKind[TestRunProfileKind["Coverage"] = 3] = "Coverage";
2830
+ })(TestRunProfileKind || (exports.TestRunProfileKind = TestRunProfileKind = {}));
2831
+ let TestTag = class TestTag {
2832
+ constructor(id) {
2833
+ this.id = id;
2834
+ }
2835
+ };
2836
+ exports.TestTag = TestTag;
2837
+ exports.TestTag = TestTag = tslib_1.__decorate([
2838
+ types_1.es5ClassCompat,
2839
+ tslib_1.__metadata("design:paramtypes", [String])
2840
+ ], TestTag);
2841
+ let nextTestRunId = 0;
2842
+ let TestRunRequest = class TestRunRequest {
2843
+ constructor(include = undefined, exclude = undefined, profile = undefined, continuous = undefined, preserveFocus = true) {
2844
+ this.include = include;
2845
+ this.exclude = exclude;
2846
+ this.profile = profile;
2847
+ this.continuous = continuous;
2848
+ this.preserveFocus = preserveFocus;
2849
+ this.testRunId = nextTestRunId++;
2850
+ }
2851
+ };
2852
+ exports.TestRunRequest = TestRunRequest;
2853
+ exports.TestRunRequest = TestRunRequest = tslib_1.__decorate([
2854
+ types_1.es5ClassCompat,
2855
+ tslib_1.__metadata("design:paramtypes", [Object, Object, Object, Object, Boolean])
2856
+ ], TestRunRequest);
2857
+ let TestMessage = TestMessage_1 = class TestMessage {
2858
+ static diff(message, expected, actual) {
2859
+ const msg = new TestMessage_1(message);
2860
+ msg.expectedOutput = expected;
2861
+ msg.actualOutput = actual;
2862
+ return msg;
2863
+ }
2864
+ constructor(message) {
2865
+ this.message = message;
2866
+ }
2867
+ };
2868
+ exports.TestMessage = TestMessage;
2869
+ exports.TestMessage = TestMessage = TestMessage_1 = tslib_1.__decorate([
2870
+ types_1.es5ClassCompat,
2871
+ tslib_1.__metadata("design:paramtypes", [Object])
2872
+ ], TestMessage);
2873
+ let TestCoverageCount = class TestCoverageCount {
2874
+ constructor(covered, total) {
2875
+ this.covered = covered;
2876
+ this.total = total;
2877
+ }
2878
+ };
2879
+ exports.TestCoverageCount = TestCoverageCount;
2880
+ exports.TestCoverageCount = TestCoverageCount = tslib_1.__decorate([
2881
+ types_1.es5ClassCompat,
2882
+ tslib_1.__metadata("design:paramtypes", [Number, Number])
2883
+ ], TestCoverageCount);
2884
+ class TestMessageStackFrame {
2885
+ constructor(label, uri, position) {
2886
+ this.label = label;
2887
+ this.uri = uri;
2888
+ this.position = position;
2889
+ }
2890
+ }
2891
+ exports.TestMessageStackFrame = TestMessageStackFrame;
2892
+ let FileCoverage = FileCoverage_1 = class FileCoverage {
2893
+ static fromDetails(uri, details) {
2894
+ const statements = new TestCoverageCount(0, 0);
2895
+ const branches = new TestCoverageCount(0, 0);
2896
+ const decl = new TestCoverageCount(0, 0);
2897
+ for (const detail of details) {
2898
+ if (detail instanceof StatementCoverage) {
2899
+ statements.total += 1;
2900
+ statements.covered += detail.executed ? 1 : 0;
2901
+ for (const branch of detail.branches) {
2902
+ branches.total += 1;
2903
+ branches.covered += branch.executed ? 1 : 0;
2904
+ }
2905
+ }
2906
+ else {
2907
+ decl.total += 1;
2908
+ decl.covered += detail.executed ? 1 : 0;
2909
+ }
2910
+ }
2911
+ const coverage = new FileCoverage_1(uri, statements, branches.total > 0 ? branches : undefined, decl.total > 0 ? decl : undefined);
2912
+ coverage.detailedCoverage = details;
2913
+ return coverage;
2914
+ }
2915
+ constructor(uri, statementCoverage, branchCoverage, declarationCoverage, includesTests) {
2916
+ this.uri = uri;
2917
+ this.statementCoverage = statementCoverage;
2918
+ this.branchCoverage = branchCoverage;
2919
+ this.declarationCoverage = declarationCoverage;
2920
+ this.includesTests = includesTests;
2921
+ }
2922
+ };
2923
+ exports.FileCoverage = FileCoverage;
2924
+ exports.FileCoverage = FileCoverage = FileCoverage_1 = tslib_1.__decorate([
2925
+ types_1.es5ClassCompat,
2926
+ tslib_1.__metadata("design:paramtypes", [Function, TestCoverageCount,
2927
+ TestCoverageCount,
2928
+ TestCoverageCount, Array])
2929
+ ], FileCoverage);
2930
+ let StatementCoverage = class StatementCoverage {
2931
+ constructor(executed, location, branches = []) {
2932
+ this.executed = executed;
2933
+ this.location = location;
2934
+ this.branches = branches;
2935
+ }
2936
+ };
2937
+ exports.StatementCoverage = StatementCoverage;
2938
+ exports.StatementCoverage = StatementCoverage = tslib_1.__decorate([
2939
+ types_1.es5ClassCompat,
2940
+ tslib_1.__metadata("design:paramtypes", [Object, Object, Array])
2941
+ ], StatementCoverage);
2942
+ class BranchCoverage {
2943
+ constructor(executed, location, label) {
2944
+ this.executed = executed;
2945
+ this.location = location;
2946
+ this.label = label;
2947
+ }
2948
+ }
2949
+ exports.BranchCoverage = BranchCoverage;
2950
+ let DeclarationCoverage = class DeclarationCoverage {
2951
+ constructor(name, executed, location) {
2952
+ this.name = name;
2953
+ this.executed = executed;
2954
+ this.location = location;
2955
+ }
2956
+ };
2957
+ exports.DeclarationCoverage = DeclarationCoverage;
2958
+ exports.DeclarationCoverage = DeclarationCoverage = tslib_1.__decorate([
2959
+ types_1.es5ClassCompat,
2960
+ tslib_1.__metadata("design:paramtypes", [String, Object, Object])
2961
+ ], DeclarationCoverage);
2962
+ let TimelineItem = class TimelineItem {
2963
+ constructor(label, timestamp) {
2964
+ this.label = label;
2965
+ this.timestamp = timestamp;
2966
+ }
2967
+ };
2968
+ exports.TimelineItem = TimelineItem;
2969
+ exports.TimelineItem = TimelineItem = tslib_1.__decorate([
2970
+ types_1.es5ClassCompat,
2971
+ tslib_1.__metadata("design:paramtypes", [String, Number])
2972
+ ], TimelineItem);
2973
+ // #region Semantic Coloring
2974
+ let SemanticTokensLegend = class SemanticTokensLegend {
2975
+ constructor(tokenTypes, tokenModifiers = []) {
2976
+ this.tokenTypes = tokenTypes;
2977
+ this.tokenModifiers = tokenModifiers;
2978
+ }
2979
+ };
2980
+ exports.SemanticTokensLegend = SemanticTokensLegend;
2981
+ exports.SemanticTokensLegend = SemanticTokensLegend = tslib_1.__decorate([
2982
+ types_1.es5ClassCompat,
2983
+ tslib_1.__metadata("design:paramtypes", [Array, Array])
2984
+ ], SemanticTokensLegend);
2985
+ function isStrArrayOrUndefined(arg) {
2986
+ return typeof arg === 'undefined' || (0, common_1.isStringArray)(arg);
2987
+ }
2988
+ let SemanticTokensBuilder = SemanticTokensBuilder_1 = class SemanticTokensBuilder {
2989
+ constructor(legend) {
2990
+ this._prevLine = 0;
2991
+ this._prevChar = 0;
2992
+ this._dataIsSortedAndDeltaEncoded = true;
2993
+ this._data = [];
2994
+ this._dataLen = 0;
2995
+ this._tokenTypeStrToInt = new Map();
2996
+ this._tokenModifierStrToInt = new Map();
2997
+ this._hasLegend = false;
2998
+ if (legend) {
2999
+ this._hasLegend = true;
3000
+ for (let i = 0, len = legend.tokenTypes.length; i < len; i++) {
3001
+ this._tokenTypeStrToInt.set(legend.tokenTypes[i], i);
3002
+ }
3003
+ for (let i = 0, len = legend.tokenModifiers.length; i < len; i++) {
3004
+ this._tokenModifierStrToInt.set(legend.tokenModifiers[i], i);
3005
+ }
3006
+ }
3007
+ }
3008
+ push(arg0, arg1, arg2, arg3, arg4) {
3009
+ if (typeof arg0 === 'number' && typeof arg1 === 'number' && typeof arg2 === 'number' && typeof arg3 === 'number' &&
3010
+ (typeof arg4 === 'number' || typeof arg4 === 'undefined')) {
3011
+ if (typeof arg4 === 'undefined') {
3012
+ arg4 = 0;
3013
+ }
3014
+ // 1st overload
3015
+ return this._pushEncoded(arg0, arg1, arg2, arg3, arg4);
3016
+ }
3017
+ if (Range.isRange(arg0) && typeof arg1 === 'string' && isStrArrayOrUndefined(arg2)) {
3018
+ // 2nd overload
3019
+ return this._push(arg0, arg1, arg2);
3020
+ }
3021
+ throw (0, errors_1.illegalArgument)();
3022
+ }
3023
+ _push(range, tokenType, tokenModifiers) {
3024
+ if (!this._hasLegend) {
3025
+ throw new Error('Legend must be provided in constructor');
3026
+ }
3027
+ if (range.start.line !== range.end.line) {
3028
+ throw new Error('`range` cannot span multiple lines');
3029
+ }
3030
+ if (!this._tokenTypeStrToInt.has(tokenType)) {
3031
+ throw new Error('`tokenType` is not in the provided legend');
3032
+ }
3033
+ const line = range.start.line;
3034
+ const char = range.start.character;
3035
+ const length = range.end.character - range.start.character;
3036
+ const nTokenType = this._tokenTypeStrToInt.get(tokenType);
3037
+ let nTokenModifiers = 0;
3038
+ if (tokenModifiers) {
3039
+ for (const tokenModifier of tokenModifiers) {
3040
+ if (!this._tokenModifierStrToInt.has(tokenModifier)) {
3041
+ throw new Error('`tokenModifier` is not in the provided legend');
3042
+ }
3043
+ const nTokenModifier = this._tokenModifierStrToInt.get(tokenModifier);
3044
+ nTokenModifiers |= (1 << nTokenModifier) >>> 0;
3045
+ }
3046
+ }
3047
+ this._pushEncoded(line, char, length, nTokenType, nTokenModifiers);
3048
+ }
3049
+ _pushEncoded(line, char, length, tokenType, tokenModifiers) {
3050
+ if (this._dataIsSortedAndDeltaEncoded && (line < this._prevLine || (line === this._prevLine && char < this._prevChar))) {
3051
+ // push calls were ordered and are no longer ordered
3052
+ this._dataIsSortedAndDeltaEncoded = false;
3053
+ // Remove delta encoding from data
3054
+ const tokenCount = (this._data.length / 5) | 0;
3055
+ let prevLine = 0;
3056
+ let prevChar = 0;
3057
+ for (let i = 0; i < tokenCount; i++) {
3058
+ // eslint-disable-next-line @typescript-eslint/no-shadow
3059
+ let line = this._data[5 * i];
3060
+ // eslint-disable-next-line @typescript-eslint/no-shadow
3061
+ let char = this._data[5 * i + 1];
3062
+ if (line === 0) {
3063
+ // on the same line as previous token
3064
+ line = prevLine;
3065
+ char += prevChar;
3066
+ }
3067
+ else {
3068
+ // on a different line than previous token
3069
+ line += prevLine;
3070
+ }
3071
+ this._data[5 * i] = line;
3072
+ this._data[5 * i + 1] = char;
3073
+ prevLine = line;
3074
+ prevChar = char;
3075
+ }
3076
+ }
3077
+ let pushLine = line;
3078
+ let pushChar = char;
3079
+ if (this._dataIsSortedAndDeltaEncoded && this._dataLen > 0) {
3080
+ pushLine -= this._prevLine;
3081
+ if (pushLine === 0) {
3082
+ pushChar -= this._prevChar;
3083
+ }
3084
+ }
3085
+ this._data[this._dataLen++] = pushLine;
3086
+ this._data[this._dataLen++] = pushChar;
3087
+ this._data[this._dataLen++] = length;
3088
+ this._data[this._dataLen++] = tokenType;
3089
+ this._data[this._dataLen++] = tokenModifiers;
3090
+ this._prevLine = line;
3091
+ this._prevChar = char;
3092
+ }
3093
+ static _sortAndDeltaEncode(data) {
3094
+ const pos = [];
3095
+ const tokenCount = (data.length / 5) | 0;
3096
+ for (let i = 0; i < tokenCount; i++) {
3097
+ pos[i] = i;
3098
+ }
3099
+ pos.sort((a, b) => {
3100
+ const aLine = data[5 * a];
3101
+ const bLine = data[5 * b];
3102
+ if (aLine === bLine) {
3103
+ const aChar = data[5 * a + 1];
3104
+ const bChar = data[5 * b + 1];
3105
+ return aChar - bChar;
3106
+ }
3107
+ return aLine - bLine;
3108
+ });
3109
+ const result = new Uint32Array(data.length);
3110
+ let prevLine = 0;
3111
+ let prevChar = 0;
3112
+ for (let i = 0; i < tokenCount; i++) {
3113
+ const srcOffset = 5 * pos[i];
3114
+ const line = data[srcOffset + 0];
3115
+ const char = data[srcOffset + 1];
3116
+ const length = data[srcOffset + 2];
3117
+ const tokenType = data[srcOffset + 3];
3118
+ const tokenModifiers = data[srcOffset + 4];
3119
+ const pushLine = line - prevLine;
3120
+ const pushChar = (pushLine === 0 ? char - prevChar : char);
3121
+ const dstOffset = 5 * i;
3122
+ result[dstOffset + 0] = pushLine;
3123
+ result[dstOffset + 1] = pushChar;
3124
+ result[dstOffset + 2] = length;
3125
+ result[dstOffset + 3] = tokenType;
3126
+ result[dstOffset + 4] = tokenModifiers;
3127
+ prevLine = line;
3128
+ prevChar = char;
3129
+ }
3130
+ return result;
3131
+ }
3132
+ build(resultId) {
3133
+ if (!this._dataIsSortedAndDeltaEncoded) {
3134
+ return new SemanticTokens(SemanticTokensBuilder_1._sortAndDeltaEncode(this._data), resultId);
3135
+ }
3136
+ return new SemanticTokens(new Uint32Array(this._data), resultId);
3137
+ }
3138
+ };
3139
+ exports.SemanticTokensBuilder = SemanticTokensBuilder;
3140
+ exports.SemanticTokensBuilder = SemanticTokensBuilder = SemanticTokensBuilder_1 = tslib_1.__decorate([
3141
+ types_1.es5ClassCompat,
3142
+ tslib_1.__metadata("design:paramtypes", [SemanticTokensLegend])
3143
+ ], SemanticTokensBuilder);
3144
+ let SemanticTokens = class SemanticTokens {
3145
+ constructor(data, resultId) {
3146
+ this.resultId = resultId;
3147
+ this.data = data;
3148
+ }
3149
+ };
3150
+ exports.SemanticTokens = SemanticTokens;
3151
+ exports.SemanticTokens = SemanticTokens = tslib_1.__decorate([
3152
+ types_1.es5ClassCompat,
3153
+ tslib_1.__metadata("design:paramtypes", [Uint32Array, String])
3154
+ ], SemanticTokens);
3155
+ let SemanticTokensEdit = class SemanticTokensEdit {
3156
+ constructor(start, deleteCount, data) {
3157
+ this.start = start;
3158
+ this.deleteCount = deleteCount;
3159
+ this.data = data;
3160
+ }
3161
+ };
3162
+ exports.SemanticTokensEdit = SemanticTokensEdit;
3163
+ exports.SemanticTokensEdit = SemanticTokensEdit = tslib_1.__decorate([
3164
+ types_1.es5ClassCompat,
3165
+ tslib_1.__metadata("design:paramtypes", [Number, Number, Uint32Array])
3166
+ ], SemanticTokensEdit);
3167
+ let SemanticTokensEdits = class SemanticTokensEdits {
3168
+ constructor(edits, resultId) {
3169
+ this.resultId = resultId;
3170
+ this.edits = edits;
3171
+ }
3172
+ };
3173
+ exports.SemanticTokensEdits = SemanticTokensEdits;
3174
+ exports.SemanticTokensEdits = SemanticTokensEdits = tslib_1.__decorate([
3175
+ types_1.es5ClassCompat,
3176
+ tslib_1.__metadata("design:paramtypes", [Array, String])
3177
+ ], SemanticTokensEdits);
3178
+ var InputBoxValidationSeverity;
3179
+ (function (InputBoxValidationSeverity) {
3180
+ InputBoxValidationSeverity[InputBoxValidationSeverity["Info"] = 1] = "Info";
3181
+ InputBoxValidationSeverity[InputBoxValidationSeverity["Warning"] = 2] = "Warning";
3182
+ InputBoxValidationSeverity[InputBoxValidationSeverity["Error"] = 3] = "Error";
3183
+ })(InputBoxValidationSeverity || (exports.InputBoxValidationSeverity = InputBoxValidationSeverity = {}));
3184
+ // #endregion
3185
+ // #region Tab Inputs
3186
+ class TextTabInput {
3187
+ constructor(uri) {
3188
+ this.uri = uri;
3189
+ }
3190
+ }
3191
+ exports.TextTabInput = TextTabInput;
3192
+ class TextDiffTabInput {
3193
+ constructor(original, modified) {
3194
+ this.original = original;
3195
+ this.modified = modified;
3196
+ }
3197
+ }
3198
+ exports.TextDiffTabInput = TextDiffTabInput;
3199
+ class TextMergeTabInput {
3200
+ constructor(base, input1, input2, result) {
3201
+ this.base = base;
3202
+ this.input1 = input1;
3203
+ this.input2 = input2;
3204
+ this.result = result;
3205
+ }
3206
+ }
3207
+ exports.TextMergeTabInput = TextMergeTabInput;
3208
+ class CustomEditorTabInput {
3209
+ constructor(uri, viewType) {
3210
+ this.uri = uri;
3211
+ this.viewType = viewType;
3212
+ }
3213
+ }
3214
+ exports.CustomEditorTabInput = CustomEditorTabInput;
3215
+ class WebviewEditorTabInput {
3216
+ constructor(viewType) {
3217
+ this.viewType = viewType;
3218
+ }
3219
+ }
3220
+ exports.WebviewEditorTabInput = WebviewEditorTabInput;
3221
+ class TelemetryTrustedValue {
3222
+ constructor(value) {
3223
+ this.value = value;
3224
+ }
3225
+ }
3226
+ exports.TelemetryTrustedValue = TelemetryTrustedValue;
3227
+ class TelemetryLogger {
3228
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3229
+ logUsage(eventName, data) { }
3230
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3231
+ logError(eventNameOrError, data) { }
3232
+ dispose() { }
3233
+ constructor(sender, options) {
3234
+ this.sender = sender;
3235
+ this.options = options;
3236
+ }
3237
+ }
3238
+ exports.TelemetryLogger = TelemetryLogger;
3239
+ class NotebookEditorTabInput {
3240
+ constructor(uri, notebookType) {
3241
+ this.uri = uri;
3242
+ this.notebookType = notebookType;
3243
+ }
3244
+ }
3245
+ exports.NotebookEditorTabInput = NotebookEditorTabInput;
3246
+ class NotebookDiffEditorTabInput {
3247
+ constructor(original, modified, notebookType) {
3248
+ this.original = original;
3249
+ this.modified = modified;
3250
+ this.notebookType = notebookType;
3251
+ }
3252
+ }
3253
+ exports.NotebookDiffEditorTabInput = NotebookDiffEditorTabInput;
3254
+ class TerminalEditorTabInput {
3255
+ constructor() { }
3256
+ }
3257
+ exports.TerminalEditorTabInput = TerminalEditorTabInput;
3258
+ class InteractiveWindowInput {
3259
+ constructor(uri, inputBoxUri) {
3260
+ this.uri = uri;
3261
+ this.inputBoxUri = inputBoxUri;
3262
+ }
3263
+ }
3264
+ exports.InteractiveWindowInput = InteractiveWindowInput;
3265
+ // #endregion
3266
+ // #region DocumentPaste
3267
+ class DocumentPasteEditKind {
3268
+ constructor(value) {
3269
+ this.value = value;
3270
+ }
3271
+ /** @stubbed */
3272
+ append(...parts) {
3273
+ return CodeActionKind.Empty;
3274
+ }
3275
+ ;
3276
+ /** @stubbed */
3277
+ intersects(other) {
3278
+ return false;
3279
+ }
3280
+ /** @stubbed */
3281
+ contains(other) {
3282
+ return false;
3283
+ }
3284
+ }
3285
+ exports.DocumentPasteEditKind = DocumentPasteEditKind;
3286
+ DocumentPasteEditKind.Empty = new DocumentPasteEditKind('');
3287
+ DocumentPasteEditKind.Text = new DocumentDropOrPasteEditKind('text');
3288
+ DocumentPasteEditKind.TextUpdateImports = DocumentDropOrPasteEditKind.Text.append('updateImports');
3289
+ let DocumentPasteEdit = class DocumentPasteEdit {
3290
+ constructor(insertText, title, kind) {
3291
+ this.insertText = insertText;
3292
+ this.title = title;
3293
+ this.kind = kind;
3294
+ }
3295
+ };
3296
+ exports.DocumentPasteEdit = DocumentPasteEdit;
3297
+ exports.DocumentPasteEdit = DocumentPasteEdit = tslib_1.__decorate([
3298
+ types_1.es5ClassCompat,
3299
+ tslib_1.__metadata("design:paramtypes", [Object, String, DocumentDropOrPasteEditKind])
3300
+ ], DocumentPasteEdit);
3301
+ /**
3302
+ * The reason why paste edits were requested.
3303
+ */
3304
+ var DocumentPasteTriggerKind;
3305
+ (function (DocumentPasteTriggerKind) {
3306
+ /**
3307
+ * Pasting was requested as part of a normal paste operation.
3308
+ */
3309
+ DocumentPasteTriggerKind[DocumentPasteTriggerKind["Automatic"] = 0] = "Automatic";
3310
+ /**
3311
+ * Pasting was requested by the user with the `paste as` command.
3312
+ */
3313
+ DocumentPasteTriggerKind[DocumentPasteTriggerKind["PasteAs"] = 1] = "PasteAs";
3314
+ })(DocumentPasteTriggerKind || (exports.DocumentPasteTriggerKind = DocumentPasteTriggerKind = {}));
3315
+ // #endregion
3316
+ // #region DocumentPaste
3317
+ var EditSessionIdentityMatch;
3318
+ (function (EditSessionIdentityMatch) {
3319
+ EditSessionIdentityMatch[EditSessionIdentityMatch["Complete"] = 100] = "Complete";
3320
+ EditSessionIdentityMatch[EditSessionIdentityMatch["Partial"] = 50] = "Partial";
3321
+ EditSessionIdentityMatch[EditSessionIdentityMatch["None"] = 0] = "None";
3322
+ })(EditSessionIdentityMatch || (exports.EditSessionIdentityMatch = EditSessionIdentityMatch = {}));
3323
+ // #endregion
3324
+ // #region terminalCompletionProvider
3325
+ class TerminalCompletionList {
3326
+ /**
3327
+ * Creates a new completion list.
3328
+ *
3329
+ * @param items The completion items.
3330
+ * @param resourceOptions Indicates which resources should be shown as completions for the cwd of the terminal.
3331
+ */
3332
+ constructor(items, resourceOptions) {
3333
+ }
3334
+ }
3335
+ exports.TerminalCompletionList = TerminalCompletionList;
3336
+ class TerminalCompletionItem {
3337
+ /**
3338
+ * @stubbed
3339
+ */
3340
+ constructor(label, replacementRange, kind) { }
3341
+ }
3342
+ exports.TerminalCompletionItem = TerminalCompletionItem;
3343
+ var TerminalCompletionItemKind;
3344
+ (function (TerminalCompletionItemKind) {
3345
+ TerminalCompletionItemKind[TerminalCompletionItemKind["File"] = 0] = "File";
3346
+ TerminalCompletionItemKind[TerminalCompletionItemKind["Folder"] = 1] = "Folder";
3347
+ TerminalCompletionItemKind[TerminalCompletionItemKind["Method"] = 2] = "Method";
3348
+ TerminalCompletionItemKind[TerminalCompletionItemKind["Alias"] = 3] = "Alias";
3349
+ TerminalCompletionItemKind[TerminalCompletionItemKind["Argument"] = 4] = "Argument";
3350
+ TerminalCompletionItemKind[TerminalCompletionItemKind["Option"] = 5] = "Option";
3351
+ TerminalCompletionItemKind[TerminalCompletionItemKind["OptionValue"] = 6] = "OptionValue";
3352
+ TerminalCompletionItemKind[TerminalCompletionItemKind["Flag"] = 7] = "Flag";
3353
+ TerminalCompletionItemKind[TerminalCompletionItemKind["SymbolicLinkFile"] = 8] = "SymbolicLinkFile";
3354
+ TerminalCompletionItemKind[TerminalCompletionItemKind["SymbolicLinkFolder"] = 9] = "SymbolicLinkFolder";
3355
+ TerminalCompletionItemKind[TerminalCompletionItemKind["ScmCommit"] = 10] = "ScmCommit";
3356
+ TerminalCompletionItemKind[TerminalCompletionItemKind["ScmBranch"] = 11] = "ScmBranch";
3357
+ TerminalCompletionItemKind[TerminalCompletionItemKind["ScmTag"] = 12] = "ScmTag";
3358
+ TerminalCompletionItemKind[TerminalCompletionItemKind["ScmStash"] = 13] = "ScmStash";
3359
+ TerminalCompletionItemKind[TerminalCompletionItemKind["ScmRemote"] = 14] = "ScmRemote";
3360
+ TerminalCompletionItemKind[TerminalCompletionItemKind["PullRequest"] = 15] = "PullRequest";
3361
+ TerminalCompletionItemKind[TerminalCompletionItemKind["PullRequestDone"] = 16] = "PullRequestDone";
3362
+ })(TerminalCompletionItemKind || (exports.TerminalCompletionItemKind = TerminalCompletionItemKind = {}));
3363
+ // #endregion
3364
+ // #region terminalQuickFixProvider
3365
+ class TerminalQuickFixTerminalCommand {
3366
+ /**
3367
+ * @stubbed
3368
+ */
3369
+ constructor(terminalCommand, shouldExecute) { }
3370
+ }
3371
+ exports.TerminalQuickFixTerminalCommand = TerminalQuickFixTerminalCommand;
3372
+ class TerminalQuickFixOpener {
3373
+ /**
3374
+ * @stubbed
3375
+ */
3376
+ constructor(uri) { }
3377
+ }
3378
+ exports.TerminalQuickFixOpener = TerminalQuickFixOpener;
3379
+ // #region Chat
3380
+ /**
3381
+ * @stubbed
3382
+ */
3383
+ class ChatRequestTurn {
3384
+ constructor(prompt, command, references, participant, toolReferences) {
3385
+ this.prompt = prompt;
3386
+ this.command = command;
3387
+ this.participant = participant;
3388
+ this.references = references;
3389
+ this.toolReferences = toolReferences;
3390
+ }
3391
+ ;
3392
+ }
3393
+ exports.ChatRequestTurn = ChatRequestTurn;
3394
+ /**
3395
+ * @stubbed
3396
+ */
3397
+ class ChatResponseTurn {
3398
+ constructor(response, result, participant) {
3399
+ this.response = response;
3400
+ this.result = result;
3401
+ this.participant = participant;
3402
+ }
3403
+ }
3404
+ exports.ChatResponseTurn = ChatResponseTurn;
3405
+ /**
3406
+ * @stubbed
3407
+ */
3408
+ class ChatResponseAnchorPart {
3409
+ constructor(value, title) { }
3410
+ }
3411
+ exports.ChatResponseAnchorPart = ChatResponseAnchorPart;
3412
+ /**
3413
+ * @stubbed
3414
+ */
3415
+ class ChatResponseProgressPart {
3416
+ constructor(value) { }
3417
+ }
3418
+ exports.ChatResponseProgressPart = ChatResponseProgressPart;
3419
+ /**
3420
+ * @stubbed
3421
+ */
3422
+ class ChatResponseReferencePart {
3423
+ constructor(value, iconPath) { }
3424
+ }
3425
+ exports.ChatResponseReferencePart = ChatResponseReferencePart;
3426
+ /**
3427
+ * @stubbed
3428
+ */
3429
+ class ChatResponseCommandButtonPart {
3430
+ constructor(value) { }
3431
+ }
3432
+ exports.ChatResponseCommandButtonPart = ChatResponseCommandButtonPart;
3433
+ /**
3434
+ * @stubbed
3435
+ */
3436
+ class ChatResponseMarkdownPart {
3437
+ constructor(value) {
3438
+ }
3439
+ }
3440
+ exports.ChatResponseMarkdownPart = ChatResponseMarkdownPart;
3441
+ /**
3442
+ * @stubbed
3443
+ */
3444
+ class ChatResponseFileTreePart {
3445
+ constructor(value, baseUri) { }
3446
+ }
3447
+ exports.ChatResponseFileTreePart = ChatResponseFileTreePart;
3448
+ var ChatResultFeedbackKind;
3449
+ (function (ChatResultFeedbackKind) {
3450
+ ChatResultFeedbackKind[ChatResultFeedbackKind["Unhelpful"] = 0] = "Unhelpful";
3451
+ ChatResultFeedbackKind[ChatResultFeedbackKind["Helpful"] = 1] = "Helpful";
3452
+ })(ChatResultFeedbackKind || (exports.ChatResultFeedbackKind = ChatResultFeedbackKind = {}));
3453
+ var LanguageModelChatMessageRole;
3454
+ (function (LanguageModelChatMessageRole) {
3455
+ LanguageModelChatMessageRole[LanguageModelChatMessageRole["User"] = 1] = "User";
3456
+ LanguageModelChatMessageRole[LanguageModelChatMessageRole["Assistant"] = 2] = "Assistant";
3457
+ })(LanguageModelChatMessageRole || (exports.LanguageModelChatMessageRole = LanguageModelChatMessageRole = {}));
3458
+ /**
3459
+ * @stubbed
3460
+ */
3461
+ class LanguageModelChatMessage {
3462
+ static User(content, name) {
3463
+ return new LanguageModelChatMessage(LanguageModelChatMessageRole.User, content, name);
3464
+ }
3465
+ static Assistant(content, name) {
3466
+ return new LanguageModelChatMessage(LanguageModelChatMessageRole.Assistant, content, name);
3467
+ }
3468
+ constructor(role, content, name) {
3469
+ this.role = role;
3470
+ this.content = content;
3471
+ this.name = name;
3472
+ }
3473
+ }
3474
+ exports.LanguageModelChatMessage = LanguageModelChatMessage;
3475
+ class LanguageModelError extends Error {
3476
+ static NoPermissions(message) {
3477
+ return new LanguageModelError(message, LanguageModelError.NoPermissions.name);
3478
+ }
3479
+ static Blocked(message) {
3480
+ return new LanguageModelError(message, LanguageModelError.Blocked.name);
3481
+ }
3482
+ static NotFound(message) {
3483
+ return new LanguageModelError(message, LanguageModelError.NotFound.name);
3484
+ }
3485
+ constructor(message, code) {
3486
+ super(message);
3487
+ this.name = 'LanguageModelError';
3488
+ this.code = code !== null && code !== void 0 ? code : '';
3489
+ }
3490
+ }
3491
+ exports.LanguageModelError = LanguageModelError;
3492
+ var LanguageModelChatToolMode;
3493
+ (function (LanguageModelChatToolMode) {
3494
+ LanguageModelChatToolMode[LanguageModelChatToolMode["Auto"] = 1] = "Auto";
3495
+ LanguageModelChatToolMode[LanguageModelChatToolMode["Required"] = 2] = "Required";
3496
+ })(LanguageModelChatToolMode || (exports.LanguageModelChatToolMode = LanguageModelChatToolMode = {}));
3497
+ /**
3498
+ * @stubbed
3499
+ */
3500
+ class LanguageModelToolCallPart {
3501
+ constructor(callId, name, input) { }
3502
+ }
3503
+ exports.LanguageModelToolCallPart = LanguageModelToolCallPart;
3504
+ /**
3505
+ * @stubbed
3506
+ */
3507
+ class LanguageModelToolResultPart {
3508
+ constructor(callId, content) { }
3509
+ }
3510
+ exports.LanguageModelToolResultPart = LanguageModelToolResultPart;
3511
+ /**
3512
+ * @stubbed
3513
+ */
3514
+ class LanguageModelTextPart {
3515
+ constructor(value) { }
3516
+ }
3517
+ exports.LanguageModelTextPart = LanguageModelTextPart;
3518
+ /**
3519
+ * @stubbed
3520
+ */
3521
+ class LanguageModelToolResult {
3522
+ constructor(content) { }
3523
+ }
3524
+ exports.LanguageModelToolResult = LanguageModelToolResult;
3525
+ /**
3526
+ * @stubbed
3527
+ */
3528
+ class LanguageModelPromptTsxPart {
3529
+ constructor(value) { }
3530
+ }
3531
+ exports.LanguageModelPromptTsxPart = LanguageModelPromptTsxPart;
3532
+ /**
3533
+ * @stubbed
3534
+ */
3535
+ class LanguageModelDataPart {
3536
+ static image(data, mime) {
3537
+ return new LanguageModelDataPart(data, mime);
3538
+ }
3539
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3540
+ static json(value, mime = 'text/x-json') {
3541
+ const rawStr = JSON.stringify(value, undefined, '\t');
3542
+ return new LanguageModelDataPart(buffer_1.BinaryBuffer.fromString(rawStr).buffer, mime);
3543
+ }
3544
+ static text(value, mime = 'text/plain') {
3545
+ return new LanguageModelDataPart(buffer_1.BinaryBuffer.fromString(value).buffer, mime);
3546
+ }
3547
+ constructor(data, mimeType) { }
3548
+ }
3549
+ exports.LanguageModelDataPart = LanguageModelDataPart;
3550
+ // #endregion
3551
+ // #region Port Attributes
3552
+ var PortAutoForwardAction;
3553
+ (function (PortAutoForwardAction) {
3554
+ PortAutoForwardAction[PortAutoForwardAction["Notify"] = 1] = "Notify";
3555
+ PortAutoForwardAction[PortAutoForwardAction["OpenBrowser"] = 2] = "OpenBrowser";
3556
+ PortAutoForwardAction[PortAutoForwardAction["OpenPreview"] = 3] = "OpenPreview";
3557
+ PortAutoForwardAction[PortAutoForwardAction["Silent"] = 4] = "Silent";
3558
+ PortAutoForwardAction[PortAutoForwardAction["Ignore"] = 5] = "Ignore";
3559
+ })(PortAutoForwardAction || (exports.PortAutoForwardAction = PortAutoForwardAction = {}));
3560
+ class PortAttributes {
3561
+ constructor(autoForwardAction) {
3562
+ this.autoForwardAction = autoForwardAction;
3563
+ }
3564
+ }
3565
+ exports.PortAttributes = PortAttributes;
3566
+ // #endregion
3567
+ // #region Debug Visualization
3568
+ class DebugVisualization {
3569
+ constructor(name) {
3570
+ this.name = name;
3571
+ }
3572
+ }
3573
+ exports.DebugVisualization = DebugVisualization;
3574
+ // #endregion
3575
+ // #region Terminal Shell Integration
3576
+ var TerminalShellExecutionCommandLineConfidence;
3577
+ (function (TerminalShellExecutionCommandLineConfidence) {
3578
+ TerminalShellExecutionCommandLineConfidence[TerminalShellExecutionCommandLineConfidence["Low"] = 0] = "Low";
3579
+ TerminalShellExecutionCommandLineConfidence[TerminalShellExecutionCommandLineConfidence["Medium"] = 1] = "Medium";
3580
+ TerminalShellExecutionCommandLineConfidence[TerminalShellExecutionCommandLineConfidence["High"] = 2] = "High";
3581
+ })(TerminalShellExecutionCommandLineConfidence || (exports.TerminalShellExecutionCommandLineConfidence = TerminalShellExecutionCommandLineConfidence = {}));
3582
+ // #endregion
3583
+ /**
3584
+ * McpStdioServerDefinition represents an MCP server available by running
3585
+ * a local process and operating on its stdin and stdout streams. The process
3586
+ * will be spawned as a child process of the extension host and by default
3587
+ * will not run in a shell environment.
3588
+ */
3589
+ class McpStdioServerDefinition {
3590
+ /**
3591
+ * @param label The human-readable name of the server.
3592
+ * @param command The command used to start the server.
3593
+ * @param args Additional command-line arguments passed to the server.
3594
+ * @param env Optional additional environment information for the server.
3595
+ * @param version Optional version identification for the server.
3596
+ */
3597
+ constructor(label, command, args, env, version) {
3598
+ this.label = label;
3599
+ this.command = command;
3600
+ this.args = args;
3601
+ this.env = env;
3602
+ this.version = version;
3603
+ }
3604
+ }
3605
+ exports.McpStdioServerDefinition = McpStdioServerDefinition;
3606
+ /**
3607
+ * McpHttpServerDefinition represents an MCP server available using the
3608
+ * Streamable HTTP transport.
3609
+ */
3610
+ class McpHttpServerDefinition {
3611
+ /**
3612
+ * @param label The human-readable name of the server.
3613
+ * @param uri The URI of the server.
3614
+ * @param headers Optional additional heads included with each request to the server.
3615
+ */
3616
+ constructor(label, uri, headers, version) {
3617
+ this.label = label;
3618
+ this.uri = uri;
3619
+ this.headers = headers;
3620
+ this.version = version;
3621
+ }
3622
+ ;
3623
+ }
3624
+ exports.McpHttpServerDefinition = McpHttpServerDefinition;
3625
+ // #region textEditorDiffInformation
3626
+ var TextEditorChangeKind;
3627
+ (function (TextEditorChangeKind) {
3628
+ TextEditorChangeKind[TextEditorChangeKind["Addition"] = 1] = "Addition";
3629
+ TextEditorChangeKind[TextEditorChangeKind["Deletion"] = 2] = "Deletion";
3630
+ TextEditorChangeKind[TextEditorChangeKind["Modification"] = 3] = "Modification";
3631
+ })(TextEditorChangeKind || (exports.TextEditorChangeKind = TextEditorChangeKind = {}));
3632
+ // #endregion
3633
+ //# sourceMappingURL=types-impl.js.map