@vscode/chat-lib 0.0.1

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 (1561) hide show
  1. package/LICENSE.txt +21 -0
  2. package/README.md +13 -0
  3. package/dist/src/_internal/extension/byok/node/openAIEndpoint.d.ts +32 -0
  4. package/dist/src/_internal/extension/byok/node/openAIEndpoint.d.ts.map +1 -0
  5. package/dist/src/_internal/extension/byok/node/openAIEndpoint.js +159 -0
  6. package/dist/src/_internal/extension/byok/node/openAIEndpoint.js.map +1 -0
  7. package/dist/src/_internal/extension/common/constants.d.ts +37 -0
  8. package/dist/src/_internal/extension/common/constants.d.ts.map +1 -0
  9. package/dist/src/_internal/extension/common/constants.js +59 -0
  10. package/dist/src/_internal/extension/common/constants.js.map +1 -0
  11. package/dist/src/_internal/extension/inlineEdits/common/delayer.d.ts +24 -0
  12. package/dist/src/_internal/extension/inlineEdits/common/delayer.d.ts.map +1 -0
  13. package/dist/src/_internal/extension/inlineEdits/common/delayer.js +100 -0
  14. package/dist/src/_internal/extension/inlineEdits/common/delayer.js.map +1 -0
  15. package/dist/src/_internal/extension/inlineEdits/common/editRebase.d.ts +19 -0
  16. package/dist/src/_internal/extension/inlineEdits/common/editRebase.d.ts.map +1 -0
  17. package/dist/src/_internal/extension/inlineEdits/common/editRebase.js +275 -0
  18. package/dist/src/_internal/extension/inlineEdits/common/editRebase.js.map +1 -0
  19. package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.d.ts +16 -0
  20. package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.d.ts.map +1 -0
  21. package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.js +147 -0
  22. package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.js.map +1 -0
  23. package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.d.ts +47 -0
  24. package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.d.ts.map +1 -0
  25. package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.js +189 -0
  26. package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.js.map +1 -0
  27. package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.d.ts +15 -0
  28. package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.d.ts.map +1 -0
  29. package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.js +137 -0
  30. package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.js.map +1 -0
  31. package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.d.ts +18 -0
  32. package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.d.ts.map +1 -0
  33. package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.js +156 -0
  34. package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.js.map +1 -0
  35. package/dist/src/_internal/extension/inlineEdits/node/importFiltering.d.ts +7 -0
  36. package/dist/src/_internal/extension/inlineEdits/node/importFiltering.d.ts.map +1 -0
  37. package/dist/src/_internal/extension/inlineEdits/node/importFiltering.js +24 -0
  38. package/dist/src/_internal/extension/inlineEdits/node/importFiltering.js.map +1 -0
  39. package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.d.ts +8 -0
  40. package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.d.ts.map +1 -0
  41. package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.js +7 -0
  42. package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.js.map +1 -0
  43. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts +47 -0
  44. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts.map +1 -0
  45. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js +230 -0
  46. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js.map +1 -0
  47. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts +73 -0
  48. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts.map +1 -0
  49. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js +629 -0
  50. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js.map +1 -0
  51. package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.d.ts +241 -0
  52. package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.d.ts.map +1 -0
  53. package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js +680 -0
  54. package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js.map +1 -0
  55. package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.d.ts +38 -0
  56. package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.d.ts.map +1 -0
  57. package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.js +16 -0
  58. package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.js.map +1 -0
  59. package/dist/src/_internal/extension/prompt/common/importStatement.d.ts +2 -0
  60. package/dist/src/_internal/extension/prompt/common/importStatement.d.ts.map +1 -0
  61. package/dist/src/_internal/extension/prompt/common/importStatement.js +28 -0
  62. package/dist/src/_internal/extension/prompt/common/importStatement.js.map +1 -0
  63. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts +62 -0
  64. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -0
  65. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +639 -0
  66. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -0
  67. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.d.ts +42 -0
  68. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.d.ts.map +1 -0
  69. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.js +125 -0
  70. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.js.map +1 -0
  71. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.d.ts +60 -0
  72. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.d.ts.map +1 -0
  73. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.js +416 -0
  74. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.js.map +1 -0
  75. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.d.ts +30 -0
  76. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.d.ts.map +1 -0
  77. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.js +64 -0
  78. package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.js.map +1 -0
  79. package/dist/src/_internal/extension/prompts/node/inline/visualization.d.ts +26 -0
  80. package/dist/src/_internal/extension/prompts/node/inline/visualization.d.ts.map +1 -0
  81. package/dist/src/_internal/extension/prompts/node/inline/visualization.js +41 -0
  82. package/dist/src/_internal/extension/prompts/node/inline/visualization.js.map +1 -0
  83. package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts +51 -0
  84. package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts.map +1 -0
  85. package/dist/src/_internal/extension/xtab/common/promptCrafting.js +517 -0
  86. package/dist/src/_internal/extension/xtab/common/promptCrafting.js.map +1 -0
  87. package/dist/src/_internal/extension/xtab/node/xtabEndpoint.d.ts +23 -0
  88. package/dist/src/_internal/extension/xtab/node/xtabEndpoint.d.ts.map +1 -0
  89. package/dist/src/_internal/extension/xtab/node/xtabEndpoint.js +96 -0
  90. package/dist/src/_internal/extension/xtab/node/xtabEndpoint.js.map +1 -0
  91. package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts +75 -0
  92. package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -0
  93. package/dist/src/_internal/extension/xtab/node/xtabProvider.js +796 -0
  94. package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -0
  95. package/dist/src/_internal/extension/xtab/node/xtabUtils.d.ts +8 -0
  96. package/dist/src/_internal/extension/xtab/node/xtabUtils.d.ts.map +1 -0
  97. package/dist/src/_internal/extension/xtab/node/xtabUtils.js +55 -0
  98. package/dist/src/_internal/extension/xtab/node/xtabUtils.js.map +1 -0
  99. package/dist/src/_internal/platform/authentication/common/authentication.d.ts +145 -0
  100. package/dist/src/_internal/platform/authentication/common/authentication.d.ts.map +1 -0
  101. package/dist/src/_internal/platform/authentication/common/authentication.js +156 -0
  102. package/dist/src/_internal/platform/authentication/common/authentication.js.map +1 -0
  103. package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts +190 -0
  104. package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts.map +1 -0
  105. package/dist/src/_internal/platform/authentication/common/copilotToken.js +181 -0
  106. package/dist/src/_internal/platform/authentication/common/copilotToken.js.map +1 -0
  107. package/dist/src/_internal/platform/authentication/common/copilotTokenManager.d.ts +50 -0
  108. package/dist/src/_internal/platform/authentication/common/copilotTokenManager.d.ts.map +1 -0
  109. package/dist/src/_internal/platform/authentication/common/copilotTokenManager.js +14 -0
  110. package/dist/src/_internal/platform/authentication/common/copilotTokenManager.js.map +1 -0
  111. package/dist/src/_internal/platform/authentication/common/copilotTokenStore.d.ts +23 -0
  112. package/dist/src/_internal/platform/authentication/common/copilotTokenStore.d.ts.map +1 -0
  113. package/dist/src/_internal/platform/authentication/common/copilotTokenStore.js +30 -0
  114. package/dist/src/_internal/platform/authentication/common/copilotTokenStore.js.map +1 -0
  115. package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.d.ts +23 -0
  116. package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.d.ts.map +1 -0
  117. package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.js +92 -0
  118. package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.js.map +1 -0
  119. package/dist/src/_internal/platform/authentication/node/copilotTokenManager.d.ts +80 -0
  120. package/dist/src/_internal/platform/authentication/node/copilotTokenManager.d.ts.map +1 -0
  121. package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js +274 -0
  122. package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js.map +1 -0
  123. package/dist/src/_internal/platform/chat/common/chatMLFetcher.d.ts +48 -0
  124. package/dist/src/_internal/platform/chat/common/chatMLFetcher.d.ts.map +1 -0
  125. package/dist/src/_internal/platform/chat/common/chatMLFetcher.js +77 -0
  126. package/dist/src/_internal/platform/chat/common/chatMLFetcher.js.map +1 -0
  127. package/dist/src/_internal/platform/chat/common/chatQuotaService.d.ts +54 -0
  128. package/dist/src/_internal/platform/chat/common/chatQuotaService.d.ts.map +1 -0
  129. package/dist/src/_internal/platform/chat/common/chatQuotaService.js +10 -0
  130. package/dist/src/_internal/platform/chat/common/chatQuotaService.js.map +1 -0
  131. package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.d.ts +16 -0
  132. package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.d.ts.map +1 -0
  133. package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.js +99 -0
  134. package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.js.map +1 -0
  135. package/dist/src/_internal/platform/chat/common/commonTypes.d.ts +264 -0
  136. package/dist/src/_internal/platform/chat/common/commonTypes.d.ts.map +1 -0
  137. package/dist/src/_internal/platform/chat/common/commonTypes.js +299 -0
  138. package/dist/src/_internal/platform/chat/common/commonTypes.js.map +1 -0
  139. package/dist/src/_internal/platform/chat/common/conversationOptions.d.ts +9 -0
  140. package/dist/src/_internal/platform/chat/common/conversationOptions.d.ts.map +1 -0
  141. package/dist/src/_internal/platform/chat/common/conversationOptions.js +10 -0
  142. package/dist/src/_internal/platform/chat/common/conversationOptions.js.map +1 -0
  143. package/dist/src/_internal/platform/chat/common/globalStringUtils.d.ts +10 -0
  144. package/dist/src/_internal/platform/chat/common/globalStringUtils.d.ts.map +1 -0
  145. package/dist/src/_internal/platform/chat/common/globalStringUtils.js +52 -0
  146. package/dist/src/_internal/platform/chat/common/globalStringUtils.js.map +1 -0
  147. package/dist/src/_internal/platform/chat/common/interactionService.d.ts +18 -0
  148. package/dist/src/_internal/platform/chat/common/interactionService.d.ts.map +1 -0
  149. package/dist/src/_internal/platform/chat/common/interactionService.js +28 -0
  150. package/dist/src/_internal/platform/chat/common/interactionService.js.map +1 -0
  151. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +513 -0
  152. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -0
  153. package/dist/src/_internal/platform/configuration/common/configurationService.js +529 -0
  154. package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -0
  155. package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.d.ts +15 -0
  156. package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.d.ts.map +1 -0
  157. package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.js +33 -0
  158. package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.js.map +1 -0
  159. package/dist/src/_internal/platform/configuration/common/jsonSchema.d.ts +94 -0
  160. package/dist/src/_internal/platform/configuration/common/jsonSchema.d.ts.map +1 -0
  161. package/dist/src/_internal/platform/configuration/common/jsonSchema.js +36 -0
  162. package/dist/src/_internal/platform/configuration/common/jsonSchema.js.map +1 -0
  163. package/dist/src/_internal/platform/configuration/common/validator.d.ts +35 -0
  164. package/dist/src/_internal/platform/configuration/common/validator.d.ts.map +1 -0
  165. package/dist/src/_internal/platform/configuration/common/validator.js +195 -0
  166. package/dist/src/_internal/platform/configuration/common/validator.js.map +1 -0
  167. package/dist/src/_internal/platform/diff/common/diffService.d.ts +27 -0
  168. package/dist/src/_internal/platform/diff/common/diffService.d.ts.map +1 -0
  169. package/dist/src/_internal/platform/diff/common/diffService.js +10 -0
  170. package/dist/src/_internal/platform/diff/common/diffService.js.map +1 -0
  171. package/dist/src/_internal/platform/diff/common/diffWorker.d.ts +34 -0
  172. package/dist/src/_internal/platform/diff/common/diffWorker.d.ts.map +1 -0
  173. package/dist/src/_internal/platform/diff/common/diffWorker.js +44 -0
  174. package/dist/src/_internal/platform/diff/common/diffWorker.js.map +1 -0
  175. package/dist/src/_internal/platform/diff/node/diffServiceImpl.d.ts +14 -0
  176. package/dist/src/_internal/platform/diff/node/diffServiceImpl.d.ts.map +1 -0
  177. package/dist/src/_internal/platform/diff/node/diffServiceImpl.js +95 -0
  178. package/dist/src/_internal/platform/diff/node/diffServiceImpl.js.map +1 -0
  179. package/dist/src/_internal/platform/editing/common/abstractText.d.ts +58 -0
  180. package/dist/src/_internal/platform/editing/common/abstractText.d.ts.map +1 -0
  181. package/dist/src/_internal/platform/editing/common/abstractText.js +129 -0
  182. package/dist/src/_internal/platform/editing/common/abstractText.js.map +1 -0
  183. package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.d.ts +38 -0
  184. package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.d.ts.map +1 -0
  185. package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.js +96 -0
  186. package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.js.map +1 -0
  187. package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.d.ts +28 -0
  188. package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.d.ts.map +1 -0
  189. package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.js +158 -0
  190. package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.js.map +1 -0
  191. package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.d.ts +55 -0
  192. package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.d.ts.map +1 -0
  193. package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.js +195 -0
  194. package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.js.map +1 -0
  195. package/dist/src/_internal/platform/endpoint/common/capiClient.d.ts +15 -0
  196. package/dist/src/_internal/platform/endpoint/common/capiClient.d.ts.map +1 -0
  197. package/dist/src/_internal/platform/endpoint/common/capiClient.js +25 -0
  198. package/dist/src/_internal/platform/endpoint/common/capiClient.js.map +1 -0
  199. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts +55 -0
  200. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts.map +1 -0
  201. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js +111 -0
  202. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js.map +1 -0
  203. package/dist/src/_internal/platform/endpoint/common/domainService.d.ts +18 -0
  204. package/dist/src/_internal/platform/endpoint/common/domainService.d.ts.map +1 -0
  205. package/dist/src/_internal/platform/endpoint/common/domainService.js +12 -0
  206. package/dist/src/_internal/platform/endpoint/common/domainService.js.map +1 -0
  207. package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts +83 -0
  208. package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts.map +1 -0
  209. package/dist/src/_internal/platform/endpoint/common/endpointProvider.js +23 -0
  210. package/dist/src/_internal/platform/endpoint/common/endpointProvider.js.map +1 -0
  211. package/dist/src/_internal/platform/endpoint/common/endpointTypes.d.ts +7 -0
  212. package/dist/src/_internal/platform/endpoint/common/endpointTypes.d.ts.map +1 -0
  213. package/dist/src/_internal/platform/endpoint/common/endpointTypes.js +15 -0
  214. package/dist/src/_internal/platform/endpoint/common/endpointTypes.js.map +1 -0
  215. package/dist/src/_internal/platform/endpoint/common/licenseAgreement.d.ts +7 -0
  216. package/dist/src/_internal/platform/endpoint/common/licenseAgreement.d.ts.map +1 -0
  217. package/dist/src/_internal/platform/endpoint/common/licenseAgreement.js +14 -0
  218. package/dist/src/_internal/platform/endpoint/common/licenseAgreement.js.map +1 -0
  219. package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.d.ts +31 -0
  220. package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.d.ts.map +1 -0
  221. package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.js +73 -0
  222. package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.js.map +1 -0
  223. package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.d.ts +17 -0
  224. package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.d.ts.map +1 -0
  225. package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.js +37 -0
  226. package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.js.map +1 -0
  227. package/dist/src/_internal/platform/endpoint/node/capiClientImpl.d.ts +7 -0
  228. package/dist/src/_internal/platform/endpoint/node/capiClientImpl.d.ts.map +1 -0
  229. package/dist/src/_internal/platform/endpoint/node/capiClientImpl.js +30 -0
  230. package/dist/src/_internal/platform/endpoint/node/capiClientImpl.js.map +1 -0
  231. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.d.ts +90 -0
  232. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.d.ts.map +1 -0
  233. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js +349 -0
  234. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js.map +1 -0
  235. package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.d.ts +19 -0
  236. package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.d.ts.map +1 -0
  237. package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.js +80 -0
  238. package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.js.map +1 -0
  239. package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.d.ts +4 -0
  240. package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.d.ts.map +1 -0
  241. package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.js +39 -0
  242. package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.js.map +1 -0
  243. package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts +13 -0
  244. package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts.map +1 -0
  245. package/dist/src/_internal/platform/endpoint/node/responsesApi.js +308 -0
  246. package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -0
  247. package/dist/src/_internal/platform/env/common/envService.d.ts +84 -0
  248. package/dist/src/_internal/platform/env/common/envService.d.ts.map +1 -0
  249. package/dist/src/_internal/platform/env/common/envService.js +64 -0
  250. package/dist/src/_internal/platform/env/common/envService.js.map +1 -0
  251. package/dist/src/_internal/platform/env/common/nullEnvService.d.ts +21 -0
  252. package/dist/src/_internal/platform/env/common/nullEnvService.d.ts.map +1 -0
  253. package/dist/src/_internal/platform/env/common/nullEnvService.js +57 -0
  254. package/dist/src/_internal/platform/env/common/nullEnvService.js.map +1 -0
  255. package/dist/src/_internal/platform/env/common/packagejson.d.ts +42 -0
  256. package/dist/src/_internal/platform/env/common/packagejson.d.ts.map +1 -0
  257. package/dist/src/_internal/platform/env/common/packagejson.js +12 -0
  258. package/dist/src/_internal/platform/env/common/packagejson.js.map +1 -0
  259. package/dist/src/_internal/platform/git/common/gitExtensionService.d.ts +12 -0
  260. package/dist/src/_internal/platform/git/common/gitExtensionService.d.ts.map +1 -0
  261. package/dist/src/_internal/platform/git/common/gitExtensionService.js +10 -0
  262. package/dist/src/_internal/platform/git/common/gitExtensionService.js.map +1 -0
  263. package/dist/src/_internal/platform/git/common/nullGitExtensionService.d.ts +11 -0
  264. package/dist/src/_internal/platform/git/common/nullGitExtensionService.d.ts.map +1 -0
  265. package/dist/src/_internal/platform/git/common/nullGitExtensionService.js +19 -0
  266. package/dist/src/_internal/platform/git/common/nullGitExtensionService.js.map +1 -0
  267. package/dist/src/_internal/platform/github/common/githubAPI.d.ts +7 -0
  268. package/dist/src/_internal/platform/github/common/githubAPI.d.ts.map +1 -0
  269. package/dist/src/_internal/platform/github/common/githubAPI.js +42 -0
  270. package/dist/src/_internal/platform/github/common/githubAPI.js.map +1 -0
  271. package/dist/src/_internal/platform/github/common/githubService.d.ts +63 -0
  272. package/dist/src/_internal/platform/github/common/githubService.d.ts.map +1 -0
  273. package/dist/src/_internal/platform/github/common/githubService.js +37 -0
  274. package/dist/src/_internal/platform/github/common/githubService.js.map +1 -0
  275. package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.d.ts +9 -0
  276. package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.d.ts.map +1 -0
  277. package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.js +21 -0
  278. package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.js.map +1 -0
  279. package/dist/src/_internal/platform/ignore/common/ignoreService.d.ts +30 -0
  280. package/dist/src/_internal/platform/ignore/common/ignoreService.d.ts.map +1 -0
  281. package/dist/src/_internal/platform/ignore/common/ignoreService.js +73 -0
  282. package/dist/src/_internal/platform/ignore/common/ignoreService.js.map +1 -0
  283. package/dist/src/_internal/platform/inlineCompletions/common/api.d.ts +162 -0
  284. package/dist/src/_internal/platform/inlineCompletions/common/api.d.ts.map +1 -0
  285. package/dist/src/_internal/platform/inlineCompletions/common/api.js +3 -0
  286. package/dist/src/_internal/platform/inlineCompletions/common/api.js.map +1 -0
  287. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.d.ts +14 -0
  288. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.d.ts.map +1 -0
  289. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.js +31 -0
  290. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.js.map +1 -0
  291. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.d.ts +20 -0
  292. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.d.ts.map +1 -0
  293. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.js +44 -0
  294. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.js.map +1 -0
  295. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.d.ts +73 -0
  296. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.d.ts.map +1 -0
  297. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.js +142 -0
  298. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.js.map +1 -0
  299. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.d.ts +14 -0
  300. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.d.ts.map +1 -0
  301. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.js +59 -0
  302. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.js.map +1 -0
  303. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.d.ts +6 -0
  304. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.d.ts.map +1 -0
  305. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.js +16 -0
  306. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.js.map +1 -0
  307. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.d.ts +44 -0
  308. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.d.ts.map +1 -0
  309. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.js +57 -0
  310. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.js.map +1 -0
  311. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.d.ts +8 -0
  312. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.d.ts.map +1 -0
  313. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.js +16 -0
  314. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.js.map +1 -0
  315. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.d.ts +36 -0
  316. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.d.ts.map +1 -0
  317. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.js +68 -0
  318. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.js.map +1 -0
  319. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.d.ts +16 -0
  320. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.d.ts.map +1 -0
  321. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.js +42 -0
  322. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.js.map +1 -0
  323. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.d.ts +24 -0
  324. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.d.ts.map +1 -0
  325. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.js +62 -0
  326. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.js.map +1 -0
  327. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.d.ts +3 -0
  328. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.d.ts.map +1 -0
  329. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.js +125 -0
  330. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.js.map +1 -0
  331. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.d.ts +46 -0
  332. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.d.ts.map +1 -0
  333. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.js +171 -0
  334. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.js.map +1 -0
  335. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.d.ts +9 -0
  336. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.d.ts.map +1 -0
  337. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.js +32 -0
  338. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.js.map +1 -0
  339. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts +50 -0
  340. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts.map +1 -0
  341. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js +54 -0
  342. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js.map +1 -0
  343. package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.d.ts +5 -0
  344. package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.d.ts.map +1 -0
  345. package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.js +14 -0
  346. package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.js.map +1 -0
  347. package/dist/src/_internal/platform/inlineEdits/common/editReason.d.ts +98 -0
  348. package/dist/src/_internal/platform/inlineEdits/common/editReason.d.ts.map +1 -0
  349. package/dist/src/_internal/platform/inlineEdits/common/editReason.js +111 -0
  350. package/dist/src/_internal/platform/inlineEdits/common/editReason.js.map +1 -0
  351. package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.d.ts +132 -0
  352. package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.d.ts.map +1 -0
  353. package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.js +398 -0
  354. package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.js.map +1 -0
  355. package/dist/src/_internal/platform/inlineEdits/common/observableGit.d.ts +11 -0
  356. package/dist/src/_internal/platform/inlineEdits/common/observableGit.d.ts.map +1 -0
  357. package/dist/src/_internal/platform/inlineEdits/common/observableGit.js +50 -0
  358. package/dist/src/_internal/platform/inlineEdits/common/observableGit.js.map +1 -0
  359. package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.d.ts +90 -0
  360. package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.d.ts.map +1 -0
  361. package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.js +169 -0
  362. package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.js.map +1 -0
  363. package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.d.ts +34 -0
  364. package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.d.ts.map +1 -0
  365. package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.js +185 -0
  366. package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.js.map +1 -0
  367. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts +223 -0
  368. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts.map +1 -0
  369. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js +315 -0
  370. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js.map +1 -0
  371. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.d.ts +14 -0
  372. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.d.ts.map +1 -0
  373. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.js +53 -0
  374. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.js.map +1 -0
  375. package/dist/src/_internal/platform/inlineEdits/common/utils/observable.d.ts +16 -0
  376. package/dist/src/_internal/platform/inlineEdits/common/utils/observable.d.ts.map +1 -0
  377. package/dist/src/_internal/platform/inlineEdits/common/utils/observable.js +38 -0
  378. package/dist/src/_internal/platform/inlineEdits/common/utils/observable.js.map +1 -0
  379. package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.d.ts +3 -0
  380. package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.d.ts.map +1 -0
  381. package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.js +26 -0
  382. package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.js.map +1 -0
  383. package/dist/src/_internal/platform/inlineEdits/common/utils/utils.d.ts +19 -0
  384. package/dist/src/_internal/platform/inlineEdits/common/utils/utils.d.ts.map +1 -0
  385. package/dist/src/_internal/platform/inlineEdits/common/utils/utils.js +44 -0
  386. package/dist/src/_internal/platform/inlineEdits/common/utils/utils.js.map +1 -0
  387. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.d.ts +45 -0
  388. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.d.ts.map +1 -0
  389. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.js +49 -0
  390. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.js.map +1 -0
  391. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.d.ts +17 -0
  392. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.d.ts.map +1 -0
  393. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.js +300 -0
  394. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.js.map +1 -0
  395. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.d.ts +37 -0
  396. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.d.ts.map +1 -0
  397. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.js +116 -0
  398. package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.js.map +1 -0
  399. package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.d.ts +13 -0
  400. package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.d.ts.map +1 -0
  401. package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.js +10 -0
  402. package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.js.map +1 -0
  403. package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.d.ts +13 -0
  404. package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.d.ts.map +1 -0
  405. package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.js +31 -0
  406. package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.js.map +1 -0
  407. package/dist/src/_internal/platform/languageServer/common/languageContextService.d.ts +146 -0
  408. package/dist/src/_internal/platform/languageServer/common/languageContextService.d.ts.map +1 -0
  409. package/dist/src/_internal/platform/languageServer/common/languageContextService.js +42 -0
  410. package/dist/src/_internal/platform/languageServer/common/languageContextService.js.map +1 -0
  411. package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.d.ts +26 -0
  412. package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.d.ts.map +1 -0
  413. package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.js +53 -0
  414. package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.js.map +1 -0
  415. package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.d.ts +11 -0
  416. package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.d.ts.map +1 -0
  417. package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.js +30 -0
  418. package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.js.map +1 -0
  419. package/dist/src/_internal/platform/log/common/logService.d.ts +100 -0
  420. package/dist/src/_internal/platform/log/common/logService.d.ts.map +1 -0
  421. package/dist/src/_internal/platform/log/common/logService.js +178 -0
  422. package/dist/src/_internal/platform/log/common/logService.js.map +1 -0
  423. package/dist/src/_internal/platform/nesFetch/common/completionsAPI.d.ts +69 -0
  424. package/dist/src/_internal/platform/nesFetch/common/completionsAPI.d.ts.map +1 -0
  425. package/dist/src/_internal/platform/nesFetch/common/completionsAPI.js +23 -0
  426. package/dist/src/_internal/platform/nesFetch/common/completionsAPI.js.map +1 -0
  427. package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.d.ts +80 -0
  428. package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.d.ts.map +1 -0
  429. package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.js +77 -0
  430. package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.js.map +1 -0
  431. package/dist/src/_internal/platform/nesFetch/common/responseStream.d.ts +26 -0
  432. package/dist/src/_internal/platform/nesFetch/common/responseStream.d.ts.map +1 -0
  433. package/dist/src/_internal/platform/nesFetch/common/responseStream.js +125 -0
  434. package/dist/src/_internal/platform/nesFetch/common/responseStream.js.map +1 -0
  435. package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.d.ts +27 -0
  436. package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.d.ts.map +1 -0
  437. package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.js +222 -0
  438. package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.js.map +1 -0
  439. package/dist/src/_internal/platform/nesFetch/node/streamTransformer.d.ts +10 -0
  440. package/dist/src/_internal/platform/nesFetch/node/streamTransformer.d.ts.map +1 -0
  441. package/dist/src/_internal/platform/nesFetch/node/streamTransformer.js +86 -0
  442. package/dist/src/_internal/platform/nesFetch/node/streamTransformer.js.map +1 -0
  443. package/dist/src/_internal/platform/networking/common/fetch.d.ts +256 -0
  444. package/dist/src/_internal/platform/networking/common/fetch.d.ts.map +1 -0
  445. package/dist/src/_internal/platform/networking/common/fetch.js +51 -0
  446. package/dist/src/_internal/platform/networking/common/fetch.js.map +1 -0
  447. package/dist/src/_internal/platform/networking/common/fetcherService.d.ts +53 -0
  448. package/dist/src/_internal/platform/networking/common/fetcherService.d.ts.map +1 -0
  449. package/dist/src/_internal/platform/networking/common/fetcherService.js +46 -0
  450. package/dist/src/_internal/platform/networking/common/fetcherService.js.map +1 -0
  451. package/dist/src/_internal/platform/networking/common/networking.d.ts +213 -0
  452. package/dist/src/_internal/platform/networking/common/networking.d.ts.map +1 -0
  453. package/dist/src/_internal/platform/networking/common/networking.js +148 -0
  454. package/dist/src/_internal/platform/networking/common/networking.js.map +1 -0
  455. package/dist/src/_internal/platform/networking/common/openai.d.ts +202 -0
  456. package/dist/src/_internal/platform/networking/common/openai.d.ts.map +1 -0
  457. package/dist/src/_internal/platform/networking/common/openai.js +144 -0
  458. package/dist/src/_internal/platform/networking/common/openai.js.map +1 -0
  459. package/dist/src/_internal/platform/networking/node/chatStream.d.ts +9 -0
  460. package/dist/src/_internal/platform/networking/node/chatStream.d.ts.map +1 -0
  461. package/dist/src/_internal/platform/networking/node/chatStream.js +117 -0
  462. package/dist/src/_internal/platform/networking/node/chatStream.js.map +1 -0
  463. package/dist/src/_internal/platform/networking/node/stream.d.ts +145 -0
  464. package/dist/src/_internal/platform/networking/node/stream.d.ts.map +1 -0
  465. package/dist/src/_internal/platform/networking/node/stream.js +595 -0
  466. package/dist/src/_internal/platform/networking/node/stream.js.map +1 -0
  467. package/dist/src/_internal/platform/notebook/common/alternativeContent.d.ts +28 -0
  468. package/dist/src/_internal/platform/notebook/common/alternativeContent.d.ts.map +1 -0
  469. package/dist/src/_internal/platform/notebook/common/alternativeContent.js +85 -0
  470. package/dist/src/_internal/platform/notebook/common/alternativeContent.js.map +1 -0
  471. package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.d.ts +6 -0
  472. package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.d.ts.map +1 -0
  473. package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.js +14 -0
  474. package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.js.map +1 -0
  475. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.d.ts +31 -0
  476. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.d.ts.map +1 -0
  477. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.js +14 -0
  478. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.js.map +1 -0
  479. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.d.ts +15 -0
  480. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.d.ts.map +1 -0
  481. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.js +232 -0
  482. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.js.map +1 -0
  483. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.d.ts +16 -0
  484. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.d.ts.map +1 -0
  485. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.js +231 -0
  486. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.js.map +1 -0
  487. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.d.ts +13 -0
  488. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.d.ts.map +1 -0
  489. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.js +191 -0
  490. package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.js.map +1 -0
  491. package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.d.ts +34 -0
  492. package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.d.ts.map +1 -0
  493. package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.js +123 -0
  494. package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.js.map +1 -0
  495. package/dist/src/_internal/platform/notebook/common/helpers.d.ts +79 -0
  496. package/dist/src/_internal/platform/notebook/common/helpers.d.ts.map +1 -0
  497. package/dist/src/_internal/platform/notebook/common/helpers.js +157 -0
  498. package/dist/src/_internal/platform/notebook/common/helpers.js.map +1 -0
  499. package/dist/src/_internal/platform/notebook/common/notebookService.d.ts +34 -0
  500. package/dist/src/_internal/platform/notebook/common/notebookService.d.ts.map +1 -0
  501. package/dist/src/_internal/platform/notebook/common/notebookService.js +10 -0
  502. package/dist/src/_internal/platform/notebook/common/notebookService.js.map +1 -0
  503. package/dist/src/_internal/platform/openai/node/fetch.d.ts +77 -0
  504. package/dist/src/_internal/platform/openai/node/fetch.d.ts.map +1 -0
  505. package/dist/src/_internal/platform/openai/node/fetch.js +408 -0
  506. package/dist/src/_internal/platform/openai/node/fetch.js.map +1 -0
  507. package/dist/src/_internal/platform/parser/node/nodes.d.ts +93 -0
  508. package/dist/src/_internal/platform/parser/node/nodes.d.ts.map +1 -0
  509. package/dist/src/_internal/platform/parser/node/nodes.js +133 -0
  510. package/dist/src/_internal/platform/parser/node/nodes.js.map +1 -0
  511. package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.d.ts +14 -0
  512. package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.d.ts.map +1 -0
  513. package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.js +28 -0
  514. package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.js.map +1 -0
  515. package/dist/src/_internal/platform/requestLogger/node/requestLogger.d.ts +198 -0
  516. package/dist/src/_internal/platform/requestLogger/node/requestLogger.d.ts.map +1 -0
  517. package/dist/src/_internal/platform/requestLogger/node/requestLogger.js +177 -0
  518. package/dist/src/_internal/platform/requestLogger/node/requestLogger.js.map +1 -0
  519. package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.d.ts +12 -0
  520. package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.d.ts.map +1 -0
  521. package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.js +19 -0
  522. package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.js.map +1 -0
  523. package/dist/src/_internal/platform/snippy/common/snippyService.d.ts +13 -0
  524. package/dist/src/_internal/platform/snippy/common/snippyService.d.ts.map +1 -0
  525. package/dist/src/_internal/platform/snippy/common/snippyService.js +16 -0
  526. package/dist/src/_internal/platform/snippy/common/snippyService.js.map +1 -0
  527. package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.d.ts +46 -0
  528. package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.d.ts.map +1 -0
  529. package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.js +23 -0
  530. package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.js.map +1 -0
  531. package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.d.ts +18 -0
  532. package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.d.ts.map +1 -0
  533. package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.js +50 -0
  534. package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.js.map +1 -0
  535. package/dist/src/_internal/platform/telemetry/common/telemetry.d.ts +145 -0
  536. package/dist/src/_internal/platform/telemetry/common/telemetry.d.ts.map +1 -0
  537. package/dist/src/_internal/platform/telemetry/common/telemetry.js +87 -0
  538. package/dist/src/_internal/platform/telemetry/common/telemetry.js.map +1 -0
  539. package/dist/src/_internal/platform/telemetry/common/telemetryData.d.ts +60 -0
  540. package/dist/src/_internal/platform/telemetry/common/telemetryData.d.ts.map +1 -0
  541. package/dist/src/_internal/platform/telemetry/common/telemetryData.js +169 -0
  542. package/dist/src/_internal/platform/telemetry/common/telemetryData.js.map +1 -0
  543. package/dist/src/_internal/platform/thinking/common/thinking.d.ts +49 -0
  544. package/dist/src/_internal/platform/thinking/common/thinking.d.ts.map +1 -0
  545. package/dist/src/_internal/platform/thinking/common/thinking.js +11 -0
  546. package/dist/src/_internal/platform/thinking/common/thinking.js.map +1 -0
  547. package/dist/src/_internal/platform/thinking/common/thinkingUtils.d.ts +6 -0
  548. package/dist/src/_internal/platform/thinking/common/thinkingUtils.d.ts.map +1 -0
  549. package/dist/src/_internal/platform/thinking/common/thinkingUtils.js +56 -0
  550. package/dist/src/_internal/platform/thinking/common/thinkingUtils.js.map +1 -0
  551. package/dist/src/_internal/platform/tokenizer/node/cl100k_base.tiktoken +100256 -0
  552. package/dist/src/_internal/platform/tokenizer/node/o200k_base.tiktoken +199998 -0
  553. package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.d.ts +3 -0
  554. package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.d.ts.map +1 -0
  555. package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.js +24 -0
  556. package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.js.map +1 -0
  557. package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.d.ts +17 -0
  558. package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.d.ts.map +1 -0
  559. package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.js +58 -0
  560. package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.js.map +1 -0
  561. package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.d.ts +2 -0
  562. package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.d.ts.map +1 -0
  563. package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.js +25 -0
  564. package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.js.map +1 -0
  565. package/dist/src/_internal/platform/tokenizer/node/tokenizer.d.ts +32 -0
  566. package/dist/src/_internal/platform/tokenizer/node/tokenizer.d.ts.map +1 -0
  567. package/dist/src/_internal/platform/tokenizer/node/tokenizer.js +308 -0
  568. package/dist/src/_internal/platform/tokenizer/node/tokenizer.js.map +1 -0
  569. package/dist/src/_internal/platform/workspace/common/workspaceService.d.ts +104 -0
  570. package/dist/src/_internal/platform/workspace/common/workspaceService.d.ts.map +1 -0
  571. package/dist/src/_internal/platform/workspace/common/workspaceService.js +176 -0
  572. package/dist/src/_internal/platform/workspace/common/workspaceService.js.map +1 -0
  573. package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.d.ts +115 -0
  574. package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.d.ts.map +1 -0
  575. package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.js +33 -0
  576. package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.js.map +1 -0
  577. package/dist/src/_internal/util/common/anomalyDetection.d.ts +16 -0
  578. package/dist/src/_internal/util/common/anomalyDetection.d.ts.map +1 -0
  579. package/dist/src/_internal/util/common/anomalyDetection.js +100 -0
  580. package/dist/src/_internal/util/common/anomalyDetection.js.map +1 -0
  581. package/dist/src/_internal/util/common/arrays.d.ts +18 -0
  582. package/dist/src/_internal/util/common/arrays.d.ts.map +1 -0
  583. package/dist/src/_internal/util/common/arrays.js +80 -0
  584. package/dist/src/_internal/util/common/arrays.js.map +1 -0
  585. package/dist/src/_internal/util/common/async.d.ts +35 -0
  586. package/dist/src/_internal/util/common/async.d.ts.map +1 -0
  587. package/dist/src/_internal/util/common/async.js +146 -0
  588. package/dist/src/_internal/util/common/async.js.map +1 -0
  589. package/dist/src/_internal/util/common/cache.d.ts +42 -0
  590. package/dist/src/_internal/util/common/cache.d.ts.map +1 -0
  591. package/dist/src/_internal/util/common/cache.js +157 -0
  592. package/dist/src/_internal/util/common/cache.js.map +1 -0
  593. package/dist/src/_internal/util/common/crypto.d.ts +3 -0
  594. package/dist/src/_internal/util/common/crypto.d.ts.map +1 -0
  595. package/dist/src/_internal/util/common/crypto.js +33 -0
  596. package/dist/src/_internal/util/common/crypto.js.map +1 -0
  597. package/dist/src/_internal/util/common/errors.d.ts +3 -0
  598. package/dist/src/_internal/util/common/errors.d.ts.map +1 -0
  599. package/dist/src/_internal/util/common/errors.js +22 -0
  600. package/dist/src/_internal/util/common/errors.js.map +1 -0
  601. package/dist/src/_internal/util/common/imageUtils.d.ts +23 -0
  602. package/dist/src/_internal/util/common/imageUtils.d.ts.map +1 -0
  603. package/dist/src/_internal/util/common/imageUtils.js +148 -0
  604. package/dist/src/_internal/util/common/imageUtils.js.map +1 -0
  605. package/dist/src/_internal/util/common/languages.d.ts +560 -0
  606. package/dist/src/_internal/util/common/languages.d.ts.map +1 -0
  607. package/dist/src/_internal/util/common/languages.js +901 -0
  608. package/dist/src/_internal/util/common/languages.js.map +1 -0
  609. package/dist/src/_internal/util/common/notebooks.d.ts +88 -0
  610. package/dist/src/_internal/util/common/notebooks.d.ts.map +1 -0
  611. package/dist/src/_internal/util/common/notebooks.js +270 -0
  612. package/dist/src/_internal/util/common/notebooks.js.map +1 -0
  613. package/dist/src/_internal/util/common/result.d.ts +32 -0
  614. package/dist/src/_internal/util/common/result.d.ts.map +1 -0
  615. package/dist/src/_internal/util/common/result.js +65 -0
  616. package/dist/src/_internal/util/common/result.js.map +1 -0
  617. package/dist/src/_internal/util/common/services.d.ts +17 -0
  618. package/dist/src/_internal/util/common/services.d.ts.map +1 -0
  619. package/dist/src/_internal/util/common/services.js +32 -0
  620. package/dist/src/_internal/util/common/services.js.map +1 -0
  621. package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts +301 -0
  622. package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts.map +1 -0
  623. package/dist/src/_internal/util/common/test/shims/chatTypes.js +380 -0
  624. package/dist/src/_internal/util/common/test/shims/chatTypes.js.map +1 -0
  625. package/dist/src/_internal/util/common/test/shims/editing.d.ts +101 -0
  626. package/dist/src/_internal/util/common/test/shims/editing.d.ts.map +1 -0
  627. package/dist/src/_internal/util/common/test/shims/editing.js +149 -0
  628. package/dist/src/_internal/util/common/test/shims/editing.js.map +1 -0
  629. package/dist/src/_internal/util/common/test/shims/enums.d.ts +50 -0
  630. package/dist/src/_internal/util/common/test/shims/enums.d.ts.map +1 -0
  631. package/dist/src/_internal/util/common/test/shims/enums.js +65 -0
  632. package/dist/src/_internal/util/common/test/shims/enums.js.map +1 -0
  633. package/dist/src/_internal/util/common/test/shims/l10n.d.ts +8 -0
  634. package/dist/src/_internal/util/common/test/shims/l10n.d.ts.map +1 -0
  635. package/dist/src/_internal/util/common/test/shims/l10n.js +26 -0
  636. package/dist/src/_internal/util/common/test/shims/l10n.js.map +1 -0
  637. package/dist/src/_internal/util/common/test/shims/newSymbolName.d.ts +13 -0
  638. package/dist/src/_internal/util/common/test/shims/newSymbolName.d.ts.map +1 -0
  639. package/dist/src/_internal/util/common/test/shims/newSymbolName.js +24 -0
  640. package/dist/src/_internal/util/common/test/shims/newSymbolName.js.map +1 -0
  641. package/dist/src/_internal/util/common/test/shims/terminal.d.ts +26 -0
  642. package/dist/src/_internal/util/common/test/shims/terminal.d.ts.map +1 -0
  643. package/dist/src/_internal/util/common/test/shims/terminal.js +34 -0
  644. package/dist/src/_internal/util/common/test/shims/terminal.js.map +1 -0
  645. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts +4 -0
  646. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts.map +1 -0
  647. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js +113 -0
  648. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js.map +1 -0
  649. package/dist/src/_internal/util/common/time.d.ts +8 -0
  650. package/dist/src/_internal/util/common/time.d.ts.map +1 -0
  651. package/dist/src/_internal/util/common/time.js +30 -0
  652. package/dist/src/_internal/util/common/time.js.map +1 -0
  653. package/dist/src/_internal/util/common/tokenizer.d.ts +19 -0
  654. package/dist/src/_internal/util/common/tokenizer.d.ts.map +1 -0
  655. package/dist/src/_internal/util/common/tokenizer.js +14 -0
  656. package/dist/src/_internal/util/common/tokenizer.js.map +1 -0
  657. package/dist/src/_internal/util/common/tracing.d.ts +8 -0
  658. package/dist/src/_internal/util/common/tracing.d.ts.map +1 -0
  659. package/dist/src/_internal/util/common/tracing.js +49 -0
  660. package/dist/src/_internal/util/common/tracing.js.map +1 -0
  661. package/dist/src/_internal/util/common/types.d.ts +7 -0
  662. package/dist/src/_internal/util/common/types.d.ts.map +1 -0
  663. package/dist/src/_internal/util/common/types.js +35 -0
  664. package/dist/src/_internal/util/common/types.js.map +1 -0
  665. package/dist/src/_internal/util/common/variableLengthQuantity.d.ts +9 -0
  666. package/dist/src/_internal/util/common/variableLengthQuantity.d.ts.map +1 -0
  667. package/dist/src/_internal/util/common/variableLengthQuantity.js +38 -0
  668. package/dist/src/_internal/util/common/variableLengthQuantity.js.map +1 -0
  669. package/dist/src/_internal/util/node/worker.d.ts +44 -0
  670. package/dist/src/_internal/util/node/worker.d.ts.map +1 -0
  671. package/dist/src/_internal/util/node/worker.js +115 -0
  672. package/dist/src/_internal/util/node/worker.js.map +1 -0
  673. package/dist/src/_internal/util/vs/base/common/arrays.d.ts +299 -0
  674. package/dist/src/_internal/util/vs/base/common/arrays.d.ts.map +1 -0
  675. package/dist/src/_internal/util/vs/base/common/arrays.js +836 -0
  676. package/dist/src/_internal/util/vs/base/common/arrays.js.map +1 -0
  677. package/dist/src/_internal/util/vs/base/common/arraysFind.d.ts +69 -0
  678. package/dist/src/_internal/util/vs/base/common/arraysFind.d.ts.map +1 -0
  679. package/dist/src/_internal/util/vs/base/common/arraysFind.js +193 -0
  680. package/dist/src/_internal/util/vs/base/common/arraysFind.js.map +1 -0
  681. package/dist/src/_internal/util/vs/base/common/assert.d.ts +35 -0
  682. package/dist/src/_internal/util/vs/base/common/assert.d.ts.map +1 -0
  683. package/dist/src/_internal/util/vs/base/common/assert.js +86 -0
  684. package/dist/src/_internal/util/vs/base/common/assert.js.map +1 -0
  685. package/dist/src/_internal/util/vs/base/common/async.d.ts +764 -0
  686. package/dist/src/_internal/util/vs/base/common/async.d.ts.map +1 -0
  687. package/dist/src/_internal/util/vs/base/common/async.js +2037 -0
  688. package/dist/src/_internal/util/vs/base/common/async.js.map +1 -0
  689. package/dist/src/_internal/util/vs/base/common/buffer.d.ts +92 -0
  690. package/dist/src/_internal/util/vs/base/common/buffer.d.ts.map +1 -0
  691. package/dist/src/_internal/util/vs/base/common/buffer.js +480 -0
  692. package/dist/src/_internal/util/vs/base/common/buffer.js.map +1 -0
  693. package/dist/src/_internal/util/vs/base/common/cache.d.ts +47 -0
  694. package/dist/src/_internal/util/vs/base/common/cache.d.ts.map +1 -0
  695. package/dist/src/_internal/util/vs/base/common/cache.js +95 -0
  696. package/dist/src/_internal/util/vs/base/common/cache.js.map +1 -0
  697. package/dist/src/_internal/util/vs/base/common/cancellation.d.ts +31 -0
  698. package/dist/src/_internal/util/vs/base/common/cancellation.d.ts.map +1 -0
  699. package/dist/src/_internal/util/vs/base/common/cancellation.js +120 -0
  700. package/dist/src/_internal/util/vs/base/common/cancellation.js.map +1 -0
  701. package/dist/src/_internal/util/vs/base/common/charCode.d.ts +428 -0
  702. package/dist/src/_internal/util/vs/base/common/charCode.d.ts.map +1 -0
  703. package/dist/src/_internal/util/vs/base/common/charCode.js +4 -0
  704. package/dist/src/_internal/util/vs/base/common/charCode.js.map +1 -0
  705. package/dist/src/_internal/util/vs/base/common/codicons.d.ts +681 -0
  706. package/dist/src/_internal/util/vs/base/common/codicons.d.ts.map +1 -0
  707. package/dist/src/_internal/util/vs/base/common/codicons.js +59 -0
  708. package/dist/src/_internal/util/vs/base/common/codicons.js.map +1 -0
  709. package/dist/src/_internal/util/vs/base/common/codiconsLibrary.d.ts +607 -0
  710. package/dist/src/_internal/util/vs/base/common/codiconsLibrary.d.ts.map +1 -0
  711. package/dist/src/_internal/util/vs/base/common/codiconsLibrary.js +619 -0
  712. package/dist/src/_internal/util/vs/base/common/codiconsLibrary.js.map +1 -0
  713. package/dist/src/_internal/util/vs/base/common/codiconsUtil.d.ts +9 -0
  714. package/dist/src/_internal/util/vs/base/common/codiconsUtil.d.ts.map +1 -0
  715. package/dist/src/_internal/util/vs/base/common/codiconsUtil.js +25 -0
  716. package/dist/src/_internal/util/vs/base/common/codiconsUtil.js.map +1 -0
  717. package/dist/src/_internal/util/vs/base/common/collections.d.ts +49 -0
  718. package/dist/src/_internal/util/vs/base/common/collections.d.ts.map +1 -0
  719. package/dist/src/_internal/util/vs/base/common/collections.js +134 -0
  720. package/dist/src/_internal/util/vs/base/common/collections.js.map +1 -0
  721. package/dist/src/_internal/util/vs/base/common/diff/diff.d.ts +151 -0
  722. package/dist/src/_internal/util/vs/base/common/diff/diff.d.ts.map +1 -0
  723. package/dist/src/_internal/util/vs/base/common/diff/diff.js +1064 -0
  724. package/dist/src/_internal/util/vs/base/common/diff/diff.js.map +1 -0
  725. package/dist/src/_internal/util/vs/base/common/diff/diffChange.d.ts +39 -0
  726. package/dist/src/_internal/util/vs/base/common/diff/diffChange.d.ts.map +1 -0
  727. package/dist/src/_internal/util/vs/base/common/diff/diffChange.js +38 -0
  728. package/dist/src/_internal/util/vs/base/common/diff/diffChange.js.map +1 -0
  729. package/dist/src/_internal/util/vs/base/common/equals.d.ts +38 -0
  730. package/dist/src/_internal/util/vs/base/common/equals.d.ts.map +1 -0
  731. package/dist/src/_internal/util/vs/base/common/equals.js +166 -0
  732. package/dist/src/_internal/util/vs/base/common/equals.js.map +1 -0
  733. package/dist/src/_internal/util/vs/base/common/errors.d.ts +114 -0
  734. package/dist/src/_internal/util/vs/base/common/errors.d.ts.map +1 -0
  735. package/dist/src/_internal/util/vs/base/common/errors.js +274 -0
  736. package/dist/src/_internal/util/vs/base/common/errors.js.map +1 -0
  737. package/dist/src/_internal/util/vs/base/common/event.d.ts +567 -0
  738. package/dist/src/_internal/util/vs/base/common/event.d.ts.map +1 -0
  739. package/dist/src/_internal/util/vs/base/common/event.js +1405 -0
  740. package/dist/src/_internal/util/vs/base/common/event.js.map +1 -0
  741. package/dist/src/_internal/util/vs/base/common/extpath.d.ts +58 -0
  742. package/dist/src/_internal/util/vs/base/common/extpath.d.ts.map +1 -0
  743. package/dist/src/_internal/util/vs/base/common/extpath.js +363 -0
  744. package/dist/src/_internal/util/vs/base/common/extpath.js.map +1 -0
  745. package/dist/src/_internal/util/vs/base/common/filters.d.ts +63 -0
  746. package/dist/src/_internal/util/vs/base/common/filters.d.ts.map +1 -0
  747. package/dist/src/_internal/util/vs/base/common/filters.js +821 -0
  748. package/dist/src/_internal/util/vs/base/common/filters.js.map +1 -0
  749. package/dist/src/_internal/util/vs/base/common/functional.d.ts +5 -0
  750. package/dist/src/_internal/util/vs/base/common/functional.d.ts.map +1 -0
  751. package/dist/src/_internal/util/vs/base/common/functional.js +35 -0
  752. package/dist/src/_internal/util/vs/base/common/functional.js.map +1 -0
  753. package/dist/src/_internal/util/vs/base/common/glob.d.ts +72 -0
  754. package/dist/src/_internal/util/vs/base/common/glob.d.ts.map +1 -0
  755. package/dist/src/_internal/util/vs/base/common/glob.js +622 -0
  756. package/dist/src/_internal/util/vs/base/common/glob.js.map +1 -0
  757. package/dist/src/_internal/util/vs/base/common/hash.d.ts +41 -0
  758. package/dist/src/_internal/util/vs/base/common/hash.d.ts.map +1 -0
  759. package/dist/src/_internal/util/vs/base/common/hash.js +320 -0
  760. package/dist/src/_internal/util/vs/base/common/hash.js.map +1 -0
  761. package/dist/src/_internal/util/vs/base/common/htmlContent.d.ts +59 -0
  762. package/dist/src/_internal/util/vs/base/common/htmlContent.d.ts.map +1 -0
  763. package/dist/src/_internal/util/vs/base/common/htmlContent.js +179 -0
  764. package/dist/src/_internal/util/vs/base/common/htmlContent.js.map +1 -0
  765. package/dist/src/_internal/util/vs/base/common/iconLabels.d.ts +21 -0
  766. package/dist/src/_internal/util/vs/base/common/iconLabels.d.ts.map +1 -0
  767. package/dist/src/_internal/util/vs/base/common/iconLabels.js +95 -0
  768. package/dist/src/_internal/util/vs/base/common/iconLabels.js.map +1 -0
  769. package/dist/src/_internal/util/vs/base/common/iterator.d.ts +33 -0
  770. package/dist/src/_internal/util/vs/base/common/iterator.d.ts.map +1 -0
  771. package/dist/src/_internal/util/vs/base/common/iterator.js +188 -0
  772. package/dist/src/_internal/util/vs/base/common/iterator.js.map +1 -0
  773. package/dist/src/_internal/util/vs/base/common/lazy.d.ts +23 -0
  774. package/dist/src/_internal/util/vs/base/common/lazy.d.ts.map +1 -0
  775. package/dist/src/_internal/util/vs/base/common/lazy.js +57 -0
  776. package/dist/src/_internal/util/vs/base/common/lazy.js.map +1 -0
  777. package/dist/src/_internal/util/vs/base/common/lifecycle.d.ts +262 -0
  778. package/dist/src/_internal/util/vs/base/common/lifecycle.d.ts.map +1 -0
  779. package/dist/src/_internal/util/vs/base/common/lifecycle.js +703 -0
  780. package/dist/src/_internal/util/vs/base/common/lifecycle.js.map +1 -0
  781. package/dist/src/_internal/util/vs/base/common/linkedList.d.ts +16 -0
  782. package/dist/src/_internal/util/vs/base/common/linkedList.d.ts.map +1 -0
  783. package/dist/src/_internal/util/vs/base/common/linkedList.js +130 -0
  784. package/dist/src/_internal/util/vs/base/common/linkedList.js.map +1 -0
  785. package/dist/src/_internal/util/vs/base/common/map.d.ts +175 -0
  786. package/dist/src/_internal/util/vs/base/common/map.d.ts.map +1 -0
  787. package/dist/src/_internal/util/vs/base/common/map.js +796 -0
  788. package/dist/src/_internal/util/vs/base/common/map.js.map +1 -0
  789. package/dist/src/_internal/util/vs/base/common/marshallingIds.d.ts +29 -0
  790. package/dist/src/_internal/util/vs/base/common/marshallingIds.d.ts.map +1 -0
  791. package/dist/src/_internal/util/vs/base/common/marshallingIds.js +4 -0
  792. package/dist/src/_internal/util/vs/base/common/marshallingIds.js.map +1 -0
  793. package/dist/src/_internal/util/vs/base/common/mime.d.ts +19 -0
  794. package/dist/src/_internal/util/vs/base/common/mime.d.ts.map +1 -0
  795. package/dist/src/_internal/util/vs/base/common/mime.js +127 -0
  796. package/dist/src/_internal/util/vs/base/common/mime.js.map +1 -0
  797. package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.d.ts +10 -0
  798. package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.d.ts.map +1 -0
  799. package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.js +324 -0
  800. package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.js.map +1 -0
  801. package/dist/src/_internal/util/vs/base/common/network.d.ts +189 -0
  802. package/dist/src/_internal/util/vs/base/common/network.d.ts.map +1 -0
  803. package/dist/src/_internal/util/vs/base/common/network.js +386 -0
  804. package/dist/src/_internal/util/vs/base/common/network.js.map +1 -0
  805. package/dist/src/_internal/util/vs/base/common/numbers.d.ts +71 -0
  806. package/dist/src/_internal/util/vs/base/common/numbers.d.ts.map +1 -0
  807. package/dist/src/_internal/util/vs/base/common/numbers.js +148 -0
  808. package/dist/src/_internal/util/vs/base/common/numbers.js.map +1 -0
  809. package/dist/src/_internal/util/vs/base/common/objects.d.ts +36 -0
  810. package/dist/src/_internal/util/vs/base/common/objects.d.ts.map +1 -0
  811. package/dist/src/_internal/util/vs/base/common/objects.js +231 -0
  812. package/dist/src/_internal/util/vs/base/common/objects.js.map +1 -0
  813. package/dist/src/_internal/util/vs/base/common/observable.d.ts +2 -0
  814. package/dist/src/_internal/util/vs/base/common/observable.d.ts.map +1 -0
  815. package/dist/src/_internal/util/vs/base/common/observable.js +24 -0
  816. package/dist/src/_internal/util/vs/base/common/observable.js.map +1 -0
  817. package/dist/src/_internal/util/vs/base/common/observableInternal/base.d.ts +169 -0
  818. package/dist/src/_internal/util/vs/base/common/observableInternal/base.d.ts.map +1 -0
  819. package/dist/src/_internal/util/vs/base/common/observableInternal/base.js +18 -0
  820. package/dist/src/_internal/util/vs/base/common/observableInternal/base.js.map +1 -0
  821. package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.d.ts +45 -0
  822. package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.d.ts.map +1 -0
  823. package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.js +76 -0
  824. package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.js.map +1 -0
  825. package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.d.ts +3 -0
  826. package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.d.ts.map +1 -0
  827. package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.js +15 -0
  828. package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.js.map +1 -0
  829. package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.d.ts +6 -0
  830. package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.d.ts.map +1 -0
  831. package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.js +24 -0
  832. package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.js.map +1 -0
  833. package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.d.ts +21 -0
  834. package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.d.ts.map +1 -0
  835. package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.js +64 -0
  836. package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.js.map +1 -0
  837. package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.d.ts +34 -0
  838. package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.d.ts.map +1 -0
  839. package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.js +112 -0
  840. package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.js.map +1 -0
  841. package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.d.ts +16 -0
  842. package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.d.ts.map +1 -0
  843. package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.js +57 -0
  844. package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.js.map +1 -0
  845. package/dist/src/_internal/util/vs/base/common/observableInternal/index.d.ts +25 -0
  846. package/dist/src/_internal/util/vs/base/common/observableInternal/index.d.ts.map +1 -0
  847. package/dist/src/_internal/util/vs/base/common/observableInternal/index.js +101 -0
  848. package/dist/src/_internal/util/vs/base/common/observableInternal/index.js.map +1 -0
  849. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.d.ts +41 -0
  850. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.d.ts.map +1 -0
  851. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.js +346 -0
  852. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.js.map +1 -0
  853. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.d.ts +5 -0
  854. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.d.ts.map +1 -0
  855. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js +68 -0
  856. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js.map +1 -0
  857. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.d.ts +44 -0
  858. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.d.ts.map +1 -0
  859. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js +445 -0
  860. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js.map +1 -0
  861. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.d.ts +42 -0
  862. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.d.ts.map +1 -0
  863. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.js +59 -0
  864. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.js.map +1 -0
  865. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.d.ts +14 -0
  866. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.d.ts.map +1 -0
  867. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.js +69 -0
  868. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.js.map +1 -0
  869. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.d.ts +31 -0
  870. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.d.ts.map +1 -0
  871. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.js +97 -0
  872. package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.js.map +1 -0
  873. package/dist/src/_internal/util/vs/base/common/observableInternal/map.d.ts +19 -0
  874. package/dist/src/_internal/util/vs/base/common/observableInternal/map.d.ts.map +1 -0
  875. package/dist/src/_internal/util/vs/base/common/observableInternal/map.js +65 -0
  876. package/dist/src/_internal/util/vs/base/common/observableInternal/map.js.map +1 -0
  877. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.d.ts +55 -0
  878. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.d.ts.map +1 -0
  879. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.js +133 -0
  880. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.js.map +1 -0
  881. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.d.ts +6 -0
  882. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.d.ts.map +1 -0
  883. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.js +36 -0
  884. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.js.map +1 -0
  885. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.d.ts +47 -0
  886. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.d.ts.map +1 -0
  887. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.js +99 -0
  888. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.js.map +1 -0
  889. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.d.ts +83 -0
  890. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.d.ts.map +1 -0
  891. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.js +355 -0
  892. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.js.map +1 -0
  893. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts +28 -0
  894. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts.map +1 -0
  895. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.js +124 -0
  896. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.js.map +1 -0
  897. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +34 -0
  898. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.d.ts.map +1 -0
  899. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.js +118 -0
  900. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.js.map +1 -0
  901. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.d.ts +12 -0
  902. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.d.ts.map +1 -0
  903. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.js +45 -0
  904. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.js.map +1 -0
  905. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.d.ts +6 -0
  906. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.d.ts.map +1 -0
  907. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.js +39 -0
  908. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.js.map +1 -0
  909. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.d.ts +38 -0
  910. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.d.ts.map +1 -0
  911. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.js +105 -0
  912. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.js.map +1 -0
  913. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.d.ts +9 -0
  914. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.d.ts.map +1 -0
  915. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.js +16 -0
  916. package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.js.map +1 -0
  917. package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.d.ts +57 -0
  918. package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.d.ts.map +1 -0
  919. package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.js +139 -0
  920. package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.js.map +1 -0
  921. package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +53 -0
  922. package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.d.ts.map +1 -0
  923. package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.js +212 -0
  924. package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.js.map +1 -0
  925. package/dist/src/_internal/util/vs/base/common/observableInternal/set.d.ts +18 -0
  926. package/dist/src/_internal/util/vs/base/common/observableInternal/set.d.ts.map +1 -0
  927. package/dist/src/_internal/util/vs/base/common/observableInternal/set.js +63 -0
  928. package/dist/src/_internal/util/vs/base/common/observableInternal/set.js.map +1 -0
  929. package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.d.ts +28 -0
  930. package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.d.ts.map +1 -0
  931. package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.js +116 -0
  932. package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.js.map +1 -0
  933. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.d.ts +76 -0
  934. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.d.ts.map +1 -0
  935. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.js +113 -0
  936. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.js.map +1 -0
  937. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.d.ts +8 -0
  938. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.d.ts.map +1 -0
  939. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.js +59 -0
  940. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.js.map +1 -0
  941. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.d.ts +44 -0
  942. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.d.ts.map +1 -0
  943. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.js +256 -0
  944. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.js.map +1 -0
  945. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.d.ts +11 -0
  946. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.d.ts.map +1 -0
  947. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.js +85 -0
  948. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.js.map +1 -0
  949. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.d.ts +11 -0
  950. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.d.ts.map +1 -0
  951. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.js +26 -0
  952. package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.js.map +1 -0
  953. package/dist/src/_internal/util/vs/base/common/path.d.ts +40 -0
  954. package/dist/src/_internal/util/vs/base/common/path.d.ts.map +1 -0
  955. package/dist/src/_internal/util/vs/base/common/path.js +1494 -0
  956. package/dist/src/_internal/util/vs/base/common/path.js.map +1 -0
  957. package/dist/src/_internal/util/vs/base/common/platform.d.ts +100 -0
  958. package/dist/src/_internal/util/vs/base/common/platform.d.ts.map +1 -0
  959. package/dist/src/_internal/util/vs/base/common/platform.js +254 -0
  960. package/dist/src/_internal/util/vs/base/common/platform.js.map +1 -0
  961. package/dist/src/_internal/util/vs/base/common/process.d.ts +28 -0
  962. package/dist/src/_internal/util/vs/base/common/process.d.ts.map +1 -0
  963. package/dist/src/_internal/util/vs/base/common/process.js +69 -0
  964. package/dist/src/_internal/util/vs/base/common/process.js.map +1 -0
  965. package/dist/src/_internal/util/vs/base/common/resources.d.ts +188 -0
  966. package/dist/src/_internal/util/vs/base/common/resources.d.ts.map +1 -0
  967. package/dist/src/_internal/util/vs/base/common/resources.js +324 -0
  968. package/dist/src/_internal/util/vs/base/common/resources.js.map +1 -0
  969. package/dist/src/_internal/util/vs/base/common/sequence.d.ts +20 -0
  970. package/dist/src/_internal/util/vs/base/common/sequence.d.ts.map +1 -0
  971. package/dist/src/_internal/util/vs/base/common/sequence.js +22 -0
  972. package/dist/src/_internal/util/vs/base/common/sequence.js.map +1 -0
  973. package/dist/src/_internal/util/vs/base/common/sseParser.d.ts +78 -0
  974. package/dist/src/_internal/util/vs/base/common/sseParser.d.ts.map +1 -0
  975. package/dist/src/_internal/util/vs/base/common/sseParser.js +175 -0
  976. package/dist/src/_internal/util/vs/base/common/sseParser.js.map +1 -0
  977. package/dist/src/_internal/util/vs/base/common/stopwatch.d.ts +11 -0
  978. package/dist/src/_internal/util/vs/base/common/stopwatch.d.ts.map +1 -0
  979. package/dist/src/_internal/util/vs/base/common/stopwatch.js +30 -0
  980. package/dist/src/_internal/util/vs/base/common/stopwatch.js.map +1 -0
  981. package/dist/src/_internal/util/vs/base/common/stream.d.ts +212 -0
  982. package/dist/src/_internal/util/vs/base/common/stream.d.ts.map +1 -0
  983. package/dist/src/_internal/util/vs/base/common/stream.js +495 -0
  984. package/dist/src/_internal/util/vs/base/common/stream.js.map +1 -0
  985. package/dist/src/_internal/util/vs/base/common/strings.d.ts +264 -0
  986. package/dist/src/_internal/util/vs/base/common/strings.d.ts.map +1 -0
  987. package/dist/src/_internal/util/vs/base/common/strings.js +1162 -0
  988. package/dist/src/_internal/util/vs/base/common/strings.js.map +1 -0
  989. package/dist/src/_internal/util/vs/base/common/symbols.d.ts +5 -0
  990. package/dist/src/_internal/util/vs/base/common/symbols.d.ts.map +1 -0
  991. package/dist/src/_internal/util/vs/base/common/symbols.js +13 -0
  992. package/dist/src/_internal/util/vs/base/common/symbols.js.map +1 -0
  993. package/dist/src/_internal/util/vs/base/common/themables.d.ts +31 -0
  994. package/dist/src/_internal/util/vs/base/common/themables.d.ts.map +1 -0
  995. package/dist/src/_internal/util/vs/base/common/themables.js +92 -0
  996. package/dist/src/_internal/util/vs/base/common/themables.js.map +1 -0
  997. package/dist/src/_internal/util/vs/base/common/types.d.ts +184 -0
  998. package/dist/src/_internal/util/vs/base/common/types.d.ts.map +1 -0
  999. package/dist/src/_internal/util/vs/base/common/types.js +265 -0
  1000. package/dist/src/_internal/util/vs/base/common/types.js.map +1 -0
  1001. package/dist/src/_internal/util/vs/base/common/uint.d.ts +32 -0
  1002. package/dist/src/_internal/util/vs/base/common/uint.d.ts.map +1 -0
  1003. package/dist/src/_internal/util/vs/base/common/uint.js +24 -0
  1004. package/dist/src/_internal/util/vs/base/common/uint.js.map +1 -0
  1005. package/dist/src/_internal/util/vs/base/common/uri.d.ts +172 -0
  1006. package/dist/src/_internal/util/vs/base/common/uri.d.ts.map +1 -0
  1007. package/dist/src/_internal/util/vs/base/common/uri.js +653 -0
  1008. package/dist/src/_internal/util/vs/base/common/uri.js.map +1 -0
  1009. package/dist/src/_internal/util/vs/base/common/uuid.d.ts +5 -0
  1010. package/dist/src/_internal/util/vs/base/common/uuid.d.ts.map +1 -0
  1011. package/dist/src/_internal/util/vs/base/common/uuid.js +66 -0
  1012. package/dist/src/_internal/util/vs/base/common/uuid.js.map +1 -0
  1013. package/dist/src/_internal/util/vs/editor/common/core/editOperation.d.ts +28 -0
  1014. package/dist/src/_internal/util/vs/editor/common/core/editOperation.d.ts.map +1 -0
  1015. package/dist/src/_internal/util/vs/editor/common/core/editOperation.js +35 -0
  1016. package/dist/src/_internal/util/vs/editor/common/core/editOperation.js.map +1 -0
  1017. package/dist/src/_internal/util/vs/editor/common/core/edits/edit.d.ts +109 -0
  1018. package/dist/src/_internal/util/vs/editor/common/core/edits/edit.d.ts.map +1 -0
  1019. package/dist/src/_internal/util/vs/editor/common/core/edits/edit.js +341 -0
  1020. package/dist/src/_internal/util/vs/editor/common/core/edits/edit.js.map +1 -0
  1021. package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.d.ts +53 -0
  1022. package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.d.ts.map +1 -0
  1023. package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.js +322 -0
  1024. package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.js.map +1 -0
  1025. package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.d.ts +135 -0
  1026. package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.d.ts.map +1 -0
  1027. package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.js +437 -0
  1028. package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.js.map +1 -0
  1029. package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.d.ts +50 -0
  1030. package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.d.ts.map +1 -0
  1031. package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.js +348 -0
  1032. package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.js.map +1 -0
  1033. package/dist/src/_internal/util/vs/editor/common/core/position.d.ts +91 -0
  1034. package/dist/src/_internal/util/vs/editor/common/core/position.d.ts.map +1 -0
  1035. package/dist/src/_internal/util/vs/editor/common/core/position.js +142 -0
  1036. package/dist/src/_internal/util/vs/editor/common/core/position.js.map +1 -0
  1037. package/dist/src/_internal/util/vs/editor/common/core/range.d.ts +195 -0
  1038. package/dist/src/_internal/util/vs/editor/common/core/range.d.ts.map +1 -0
  1039. package/dist/src/_internal/util/vs/editor/common/core/range.js +424 -0
  1040. package/dist/src/_internal/util/vs/editor/common/core/range.js.map +1 -0
  1041. package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.d.ts +108 -0
  1042. package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.d.ts.map +1 -0
  1043. package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.js +357 -0
  1044. package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.js.map +1 -0
  1045. package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.d.ts +79 -0
  1046. package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.d.ts.map +1 -0
  1047. package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.js +242 -0
  1048. package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.js.map +1 -0
  1049. package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.d.ts +40 -0
  1050. package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.d.ts.map +1 -0
  1051. package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.js +105 -0
  1052. package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.js.map +1 -0
  1053. package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.d.ts +3 -0
  1054. package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.d.ts.map +1 -0
  1055. package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.js +28 -0
  1056. package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.js.map +1 -0
  1057. package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.d.ts +39 -0
  1058. package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.d.ts.map +1 -0
  1059. package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.js +110 -0
  1060. package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.js.map +1 -0
  1061. package/dist/src/_internal/util/vs/editor/common/core/text/textLength.d.ts +34 -0
  1062. package/dist/src/_internal/util/vs/editor/common/core/text/textLength.d.ts.map +1 -0
  1063. package/dist/src/_internal/util/vs/editor/common/core/text/textLength.js +134 -0
  1064. package/dist/src/_internal/util/vs/editor/common/core/text/textLength.js.map +1 -0
  1065. package/dist/src/_internal/util/vs/editor/common/core/wordHelper.d.ts +28 -0
  1066. package/dist/src/_internal/util/vs/editor/common/core/wordHelper.d.ts.map +1 -0
  1067. package/dist/src/_internal/util/vs/editor/common/core/wordHelper.js +137 -0
  1068. package/dist/src/_internal/util/vs/editor/common/core/wordHelper.js.map +1 -0
  1069. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.d.ts +83 -0
  1070. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.d.ts.map +1 -0
  1071. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +154 -0
  1072. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js.map +1 -0
  1073. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.d.ts +9 -0
  1074. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.d.ts.map +1 -0
  1075. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js +104 -0
  1076. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js.map +1 -0
  1077. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.d.ts +8 -0
  1078. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.d.ts.map +1 -0
  1079. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js +165 -0
  1080. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js.map +1 -0
  1081. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.d.ts +4 -0
  1082. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.d.ts.map +1 -0
  1083. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js +251 -0
  1084. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js.map +1 -0
  1085. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.d.ts +9 -0
  1086. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.d.ts.map +1 -0
  1087. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +213 -0
  1088. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js.map +1 -0
  1089. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.d.ts +10 -0
  1090. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.d.ts.map +1 -0
  1091. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +380 -0
  1092. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js.map +1 -0
  1093. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.d.ts +13 -0
  1094. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.d.ts.map +1 -0
  1095. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js +36 -0
  1096. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js.map +1 -0
  1097. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts +32 -0
  1098. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts.map +1 -0
  1099. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +208 -0
  1100. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js.map +1 -0
  1101. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.d.ts +23 -0
  1102. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.d.ts.map +1 -0
  1103. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.js +64 -0
  1104. package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.js.map +1 -0
  1105. package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.d.ts +70 -0
  1106. package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.d.ts.map +1 -0
  1107. package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.js +501 -0
  1108. package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.js.map +1 -0
  1109. package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.d.ts +46 -0
  1110. package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.d.ts.map +1 -0
  1111. package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.js +33 -0
  1112. package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.js.map +1 -0
  1113. package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.d.ts +84 -0
  1114. package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.d.ts.map +1 -0
  1115. package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.js +287 -0
  1116. package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.js.map +1 -0
  1117. package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.d.ts +71 -0
  1118. package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.d.ts.map +1 -0
  1119. package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.js +234 -0
  1120. package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.js.map +1 -0
  1121. package/dist/src/_internal/util/vs/nls.d.ts +143 -0
  1122. package/dist/src/_internal/util/vs/nls.d.ts.map +1 -0
  1123. package/dist/src/_internal/util/vs/nls.js +84 -0
  1124. package/dist/src/_internal/util/vs/nls.js.map +1 -0
  1125. package/dist/src/_internal/util/vs/nls.messages.d.ts +3 -0
  1126. package/dist/src/_internal/util/vs/nls.messages.d.ts.map +1 -0
  1127. package/dist/src/_internal/util/vs/nls.messages.js +22 -0
  1128. package/dist/src/_internal/util/vs/nls.messages.js.map +1 -0
  1129. package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.d.ts +10 -0
  1130. package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.d.ts.map +1 -0
  1131. package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.js +17 -0
  1132. package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.js.map +1 -0
  1133. package/dist/src/_internal/util/vs/platform/instantiation/common/graph.d.ts +26 -0
  1134. package/dist/src/_internal/util/vs/platform/instantiation/common/graph.d.ts.map +1 -0
  1135. package/dist/src/_internal/util/vs/platform/instantiation/common/graph.js +99 -0
  1136. package/dist/src/_internal/util/vs/platform/instantiation/common/graph.js.map +1 -0
  1137. package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.d.ts +70 -0
  1138. package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.d.ts.map +1 -0
  1139. package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.js +48 -0
  1140. package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.js.map +1 -0
  1141. package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.d.ts +56 -0
  1142. package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.d.ts.map +1 -0
  1143. package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.js +406 -0
  1144. package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.js.map +1 -0
  1145. package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.d.ts +10 -0
  1146. package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.d.ts.map +1 -0
  1147. package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.js +25 -0
  1148. package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.js.map +1 -0
  1149. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.d.ts +32 -0
  1150. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.d.ts.map +1 -0
  1151. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.js +103 -0
  1152. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.js.map +1 -0
  1153. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.d.ts +8 -0
  1154. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.d.ts.map +1 -0
  1155. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.js +38 -0
  1156. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.js.map +1 -0
  1157. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.d.ts +12 -0
  1158. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.d.ts.map +1 -0
  1159. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.js +53 -0
  1160. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.js.map +1 -0
  1161. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.d.ts +21 -0
  1162. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.d.ts.map +1 -0
  1163. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.js +72 -0
  1164. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.js.map +1 -0
  1165. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.d.ts +85 -0
  1166. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.d.ts.map +1 -0
  1167. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.js +243 -0
  1168. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.js.map +1 -0
  1169. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.d.ts +30 -0
  1170. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.d.ts.map +1 -0
  1171. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.js +178 -0
  1172. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.js.map +1 -0
  1173. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.d.ts +27 -0
  1174. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.d.ts.map +1 -0
  1175. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.js +148 -0
  1176. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.js.map +1 -0
  1177. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.d.ts +21 -0
  1178. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.d.ts.map +1 -0
  1179. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.js +84 -0
  1180. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.js.map +1 -0
  1181. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.d.ts +13 -0
  1182. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.d.ts.map +1 -0
  1183. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.js +95 -0
  1184. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.js.map +1 -0
  1185. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.d.ts +14 -0
  1186. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.d.ts.map +1 -0
  1187. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.js +30 -0
  1188. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.js.map +1 -0
  1189. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.d.ts +46 -0
  1190. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.d.ts.map +1 -0
  1191. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.js +82 -0
  1192. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.js.map +1 -0
  1193. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.d.ts +25 -0
  1194. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.d.ts.map +1 -0
  1195. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.js +93 -0
  1196. package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.js.map +1 -0
  1197. package/dist/src/_internal/vscodeTypes.d.ts +95 -0
  1198. package/dist/src/_internal/vscodeTypes.d.ts.map +1 -0
  1199. package/dist/src/_internal/vscodeTypes.js +133 -0
  1200. package/dist/src/_internal/vscodeTypes.js.map +1 -0
  1201. package/dist/src/main.d.ts +13 -0
  1202. package/dist/src/main.d.ts.map +1 -0
  1203. package/dist/src/main.js +190 -0
  1204. package/dist/src/main.js.map +1 -0
  1205. package/dist/src/package.json +4063 -0
  1206. package/package.json +64 -0
  1207. package/src/_internal/extension/byok/node/openAIEndpoint.ts +171 -0
  1208. package/src/_internal/extension/common/constants.ts +90 -0
  1209. package/src/_internal/extension/inlineEdits/common/delayer.ts +108 -0
  1210. package/src/_internal/extension/inlineEdits/common/editRebase.ts +268 -0
  1211. package/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.tsx +163 -0
  1212. package/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.ts +225 -0
  1213. package/src/_internal/extension/inlineEdits/common/rejectionCollector.ts +164 -0
  1214. package/src/_internal/extension/inlineEdits/node/debugRecorder.ts +205 -0
  1215. package/src/_internal/extension/inlineEdits/node/importFiltering.ts +25 -0
  1216. package/src/_internal/extension/inlineEdits/node/nesConfigs.ts +12 -0
  1217. package/src/_internal/extension/inlineEdits/node/nextEditCache.ts +278 -0
  1218. package/src/_internal/extension/inlineEdits/node/nextEditProvider.ts +778 -0
  1219. package/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.ts +983 -0
  1220. package/src/_internal/extension/inlineEdits/node/nextEditResult.ts +40 -0
  1221. package/src/_internal/extension/prompt/common/importStatement.ts +25 -0
  1222. package/src/_internal/extension/prompt/node/chatMLFetcher.ts +706 -0
  1223. package/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.ts +146 -0
  1224. package/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.ts +527 -0
  1225. package/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.ts +76 -0
  1226. package/src/_internal/extension/prompts/node/inline/visualization.ts +65 -0
  1227. package/src/_internal/extension/vscode.proposed.activeComment.d.ts +23 -0
  1228. package/src/_internal/extension/vscode.proposed.aiRelatedInformation.d.ts +49 -0
  1229. package/src/_internal/extension/vscode.proposed.aiSettingsSearch.d.ts +31 -0
  1230. package/src/_internal/extension/vscode.proposed.aiTextSearchProvider.d.ts +41 -0
  1231. package/src/_internal/extension/vscode.proposed.authLearnMore.d.ts +16 -0
  1232. package/src/_internal/extension/vscode.proposed.chatBinaryReferenceData.d.ts +41 -0
  1233. package/src/_internal/extension/vscode.proposed.chatEditing.d.ts +29 -0
  1234. package/src/_internal/extension/vscode.proposed.chatParticipantAdditions.d.ts +636 -0
  1235. package/src/_internal/extension/vscode.proposed.chatParticipantPrivate.d.ts +276 -0
  1236. package/src/_internal/extension/vscode.proposed.chatProvider.d.ts +62 -0
  1237. package/src/_internal/extension/vscode.proposed.chatReadonlyPromptReference.d.ts +17 -0
  1238. package/src/_internal/extension/vscode.proposed.chatReferenceDiagnostic.d.ts +23 -0
  1239. package/src/_internal/extension/vscode.proposed.chatSessionsProvider.d.ts +218 -0
  1240. package/src/_internal/extension/vscode.proposed.chatStatusItem.d.ts +61 -0
  1241. package/src/_internal/extension/vscode.proposed.codeActionAI.d.ts +16 -0
  1242. package/src/_internal/extension/vscode.proposed.commentReveal.d.ts +32 -0
  1243. package/src/_internal/extension/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts +8 -0
  1244. package/src/_internal/extension/vscode.proposed.contribCommentsViewThreadMenus.d.ts +6 -0
  1245. package/src/_internal/extension/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +7 -0
  1246. package/src/_internal/extension/vscode.proposed.dataChannels.d.ts +19 -0
  1247. package/src/_internal/extension/vscode.proposed.defaultChatParticipant.d.ts +52 -0
  1248. package/src/_internal/extension/vscode.proposed.documentFiltersExclusive.d.ts +13 -0
  1249. package/src/_internal/extension/vscode.proposed.embeddings.d.ts +33 -0
  1250. package/src/_internal/extension/vscode.proposed.extensionsAny.d.ts +40 -0
  1251. package/src/_internal/extension/vscode.proposed.findFiles2.d.ts +125 -0
  1252. package/src/_internal/extension/vscode.proposed.findTextInFiles.d.ts +104 -0
  1253. package/src/_internal/extension/vscode.proposed.findTextInFiles2.d.ts +144 -0
  1254. package/src/_internal/extension/vscode.proposed.inlineCompletionsAdditions.d.ts +202 -0
  1255. package/src/_internal/extension/vscode.proposed.interactive.d.ts +11 -0
  1256. package/src/_internal/extension/vscode.proposed.languageModelCapabilities.d.ts +25 -0
  1257. package/src/_internal/extension/vscode.proposed.languageModelDataPart.d.ts +163 -0
  1258. package/src/_internal/extension/vscode.proposed.languageModelSystem.d.ts +17 -0
  1259. package/src/_internal/extension/vscode.proposed.languageModelThinkingPart.d.ts +49 -0
  1260. package/src/_internal/extension/vscode.proposed.languageModelToolResultAudience.d.ts +36 -0
  1261. package/src/_internal/extension/vscode.proposed.mappedEditsProvider.d.ts +110 -0
  1262. package/src/_internal/extension/vscode.proposed.newSymbolNamesProvider.d.ts +47 -0
  1263. package/src/_internal/extension/vscode.proposed.readonlyMessage.d.ts +14 -0
  1264. package/src/_internal/extension/vscode.proposed.resolvers.d.ts +475 -0
  1265. package/src/_internal/extension/vscode.proposed.scmInputBoxValueProvider.d.ts +25 -0
  1266. package/src/_internal/extension/vscode.proposed.taskProblemMatcherStatus.d.ts +42 -0
  1267. package/src/_internal/extension/vscode.proposed.terminalDataWriteEvent.d.ts +32 -0
  1268. package/src/_internal/extension/vscode.proposed.terminalExecuteCommandEvent.d.ts +48 -0
  1269. package/src/_internal/extension/vscode.proposed.terminalQuickFixProvider.d.ts +87 -0
  1270. package/src/_internal/extension/vscode.proposed.terminalSelection.d.ts +16 -0
  1271. package/src/_internal/extension/vscode.proposed.testObserver.d.ts +199 -0
  1272. package/src/_internal/extension/vscode.proposed.textDocumentChangeReason.d.ts +30 -0
  1273. package/src/_internal/extension/vscode.proposed.textSearchProvider.d.ts +281 -0
  1274. package/src/_internal/extension/vscode.proposed.textSearchProvider2.d.ts +297 -0
  1275. package/src/_internal/extension/xtab/common/promptCrafting.ts +670 -0
  1276. package/src/_internal/extension/xtab/node/xtabEndpoint.ts +102 -0
  1277. package/src/_internal/extension/xtab/node/xtabProvider.ts +976 -0
  1278. package/src/_internal/extension/xtab/node/xtabUtils.ts +62 -0
  1279. package/src/_internal/platform/authentication/common/authentication.ts +309 -0
  1280. package/src/_internal/platform/authentication/common/copilotToken.ts +300 -0
  1281. package/src/_internal/platform/authentication/common/copilotTokenManager.ts +59 -0
  1282. package/src/_internal/platform/authentication/common/copilotTokenStore.ts +40 -0
  1283. package/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.ts +96 -0
  1284. package/src/_internal/platform/authentication/node/copilotTokenManager.ts +303 -0
  1285. package/src/_internal/platform/chat/common/chatMLFetcher.ts +124 -0
  1286. package/src/_internal/platform/chat/common/chatQuotaService.ts +63 -0
  1287. package/src/_internal/platform/chat/common/chatQuotaServiceImpl.ts +96 -0
  1288. package/src/_internal/platform/chat/common/commonTypes.ts +353 -0
  1289. package/src/_internal/platform/chat/common/conversationOptions.ts +16 -0
  1290. package/src/_internal/platform/chat/common/globalStringUtils.ts +54 -0
  1291. package/src/_internal/platform/chat/common/interactionService.ts +35 -0
  1292. package/src/_internal/platform/configuration/common/configurationService.ts +803 -0
  1293. package/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.ts +39 -0
  1294. package/src/_internal/platform/configuration/common/jsonSchema.ts +139 -0
  1295. package/src/_internal/platform/configuration/common/validator.ts +242 -0
  1296. package/src/_internal/platform/diff/common/diffService.ts +41 -0
  1297. package/src/_internal/platform/diff/common/diffWorker.ts +83 -0
  1298. package/src/_internal/platform/diff/node/diffServiceImpl.ts +85 -0
  1299. package/src/_internal/platform/editing/common/abstractText.ts +177 -0
  1300. package/src/_internal/platform/editing/common/notebookDocumentSnapshot.ts +122 -0
  1301. package/src/_internal/platform/editing/common/positionOffsetTransformer.ts +202 -0
  1302. package/src/_internal/platform/editing/common/textDocumentSnapshot.ts +274 -0
  1303. package/src/_internal/platform/endpoint/common/capiClient.ts +37 -0
  1304. package/src/_internal/platform/endpoint/common/chatModelCapabilities.ts +115 -0
  1305. package/src/_internal/platform/endpoint/common/domainService.ts +27 -0
  1306. package/src/_internal/platform/endpoint/common/endpointProvider.ts +104 -0
  1307. package/src/_internal/platform/endpoint/common/endpointTypes.ts +12 -0
  1308. package/src/_internal/platform/endpoint/common/licenseAgreement.ts +11 -0
  1309. package/src/_internal/platform/endpoint/common/statefulMarkerContainer.tsx +85 -0
  1310. package/src/_internal/platform/endpoint/common/thinkingDataContainer.tsx +44 -0
  1311. package/src/_internal/platform/endpoint/node/capiClientImpl.ts +18 -0
  1312. package/src/_internal/platform/endpoint/node/chatEndpoint.ts +435 -0
  1313. package/src/_internal/platform/endpoint/node/domainServiceImpl.ts +80 -0
  1314. package/src/_internal/platform/endpoint/node/proxyXtabEndpoint.ts +43 -0
  1315. package/src/_internal/platform/endpoint/node/responsesApi.ts +326 -0
  1316. package/src/_internal/platform/env/common/envService.ts +134 -0
  1317. package/src/_internal/platform/env/common/nullEnvService.ts +68 -0
  1318. package/src/_internal/platform/env/common/packagejson.ts +49 -0
  1319. package/src/_internal/platform/git/common/gitExtensionService.ts +21 -0
  1320. package/src/_internal/platform/git/common/nullGitExtensionService.ts +20 -0
  1321. package/src/_internal/platform/git/vscode/git.d.ts +414 -0
  1322. package/src/_internal/platform/github/common/githubAPI.ts +44 -0
  1323. package/src/_internal/platform/github/common/githubService.ts +87 -0
  1324. package/src/_internal/platform/github/common/nullOctokitServiceImpl.ts +21 -0
  1325. package/src/_internal/platform/ignore/common/ignoreService.ts +72 -0
  1326. package/src/_internal/platform/inlineCompletions/common/api.ts +198 -0
  1327. package/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.ts +32 -0
  1328. package/src/_internal/platform/inlineEdits/common/dataTypes/documentId.ts +52 -0
  1329. package/src/_internal/platform/inlineEdits/common/dataTypes/edit.ts +165 -0
  1330. package/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.ts +74 -0
  1331. package/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.ts +14 -0
  1332. package/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.ts +107 -0
  1333. package/src/_internal/platform/inlineEdits/common/dataTypes/languageId.ts +14 -0
  1334. package/src/_internal/platform/inlineEdits/common/dataTypes/permutation.ts +69 -0
  1335. package/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.ts +49 -0
  1336. package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.ts +74 -0
  1337. package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.ts +132 -0
  1338. package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.ts +184 -0
  1339. package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.ts +32 -0
  1340. package/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.ts +89 -0
  1341. package/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.ts +10 -0
  1342. package/src/_internal/platform/inlineEdits/common/editReason.ts +134 -0
  1343. package/src/_internal/platform/inlineEdits/common/inlineEditLogContext.ts +490 -0
  1344. package/src/_internal/platform/inlineEdits/common/observableGit.ts +49 -0
  1345. package/src/_internal/platform/inlineEdits/common/observableWorkspace.ts +239 -0
  1346. package/src/_internal/platform/inlineEdits/common/responseProcessor.ts +249 -0
  1347. package/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.ts +468 -0
  1348. package/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.ts +59 -0
  1349. package/src/_internal/platform/inlineEdits/common/utils/observable.ts +54 -0
  1350. package/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.ts +29 -0
  1351. package/src/_internal/platform/inlineEdits/common/utils/utils.ts +56 -0
  1352. package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.ts +60 -0
  1353. package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.ts +353 -0
  1354. package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.ts +176 -0
  1355. package/src/_internal/platform/languageContextProvider/common/languageContextProviderService.ts +25 -0
  1356. package/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.ts +38 -0
  1357. package/src/_internal/platform/languageServer/common/languageContextService.ts +186 -0
  1358. package/src/_internal/platform/languages/common/languageDiagnosticsService.ts +67 -0
  1359. package/src/_internal/platform/languages/common/testLanguageDiagnosticsService.ts +28 -0
  1360. package/src/_internal/platform/log/common/logService.ts +232 -0
  1361. package/src/_internal/platform/nesFetch/common/completionsAPI.ts +78 -0
  1362. package/src/_internal/platform/nesFetch/common/completionsFetchService.ts +118 -0
  1363. package/src/_internal/platform/nesFetch/common/responseStream.ts +151 -0
  1364. package/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.ts +236 -0
  1365. package/src/_internal/platform/nesFetch/node/streamTransformer.ts +95 -0
  1366. package/src/_internal/platform/networking/common/fetch.ts +349 -0
  1367. package/src/_internal/platform/networking/common/fetcherService.ts +84 -0
  1368. package/src/_internal/platform/networking/common/networking.ts +442 -0
  1369. package/src/_internal/platform/networking/common/openai.ts +273 -0
  1370. package/src/_internal/platform/networking/node/chatStream.ts +137 -0
  1371. package/src/_internal/platform/networking/node/stream.ts +749 -0
  1372. package/src/_internal/platform/notebook/common/alternativeContent.ts +89 -0
  1373. package/src/_internal/platform/notebook/common/alternativeContentFormat.ts +10 -0
  1374. package/src/_internal/platform/notebook/common/alternativeContentProvider.json.ts +262 -0
  1375. package/src/_internal/platform/notebook/common/alternativeContentProvider.text.ts +243 -0
  1376. package/src/_internal/platform/notebook/common/alternativeContentProvider.ts +41 -0
  1377. package/src/_internal/platform/notebook/common/alternativeContentProvider.xml.ts +205 -0
  1378. package/src/_internal/platform/notebook/common/alternativeNotebookDocument.ts +155 -0
  1379. package/src/_internal/platform/notebook/common/helpers.ts +212 -0
  1380. package/src/_internal/platform/notebook/common/notebookService.ts +43 -0
  1381. package/src/_internal/platform/openai/node/fetch.ts +596 -0
  1382. package/src/_internal/platform/parser/node/nodes.ts +190 -0
  1383. package/src/_internal/platform/requestLogger/node/nullRequestLogger.ts +26 -0
  1384. package/src/_internal/platform/requestLogger/node/requestLogger.ts +383 -0
  1385. package/src/_internal/platform/simulationTestContext/common/simulationTestContext.ts +29 -0
  1386. package/src/_internal/platform/snippy/common/snippyService.ts +25 -0
  1387. package/src/_internal/platform/telemetry/common/nullExperimentationService.ts +64 -0
  1388. package/src/_internal/platform/telemetry/common/nullTelemetryService.ts +53 -0
  1389. package/src/_internal/platform/telemetry/common/telemetry.ts +215 -0
  1390. package/src/_internal/platform/telemetry/common/telemetryData.ts +205 -0
  1391. package/src/_internal/platform/thinking/common/thinking.ts +61 -0
  1392. package/src/_internal/platform/thinking/common/thinkingUtils.ts +57 -0
  1393. package/src/_internal/platform/tokenizer/node/parseTikTokens.ts +23 -0
  1394. package/src/_internal/platform/tokenizer/node/tikTokenizerImpl.ts +74 -0
  1395. package/src/_internal/platform/tokenizer/node/tikTokenizerWorker.ts +24 -0
  1396. package/src/_internal/platform/tokenizer/node/tokenizer.ts +357 -0
  1397. package/src/_internal/platform/workspace/common/workspaceService.ts +226 -0
  1398. package/src/_internal/platform/workspaceRecorder/common/workspaceLog.ts +118 -0
  1399. package/src/_internal/util/common/anomalyDetection.ts +112 -0
  1400. package/src/_internal/util/common/arrays.ts +81 -0
  1401. package/src/_internal/util/common/async.ts +155 -0
  1402. package/src/_internal/util/common/cache.ts +183 -0
  1403. package/src/_internal/util/common/crypto.ts +41 -0
  1404. package/src/_internal/util/common/errors.ts +22 -0
  1405. package/src/_internal/util/common/globals.d.ts +12 -0
  1406. package/src/_internal/util/common/imageUtils.ts +154 -0
  1407. package/src/_internal/util/common/languages.ts +940 -0
  1408. package/src/_internal/util/common/notebooks.ts +286 -0
  1409. package/src/_internal/util/common/result.ts +71 -0
  1410. package/src/_internal/util/common/services.ts +43 -0
  1411. package/src/_internal/util/common/test/shims/chatTypes.ts +448 -0
  1412. package/src/_internal/util/common/test/shims/editing.ts +233 -0
  1413. package/src/_internal/util/common/test/shims/enums.ts +61 -0
  1414. package/src/_internal/util/common/test/shims/l10n.ts +37 -0
  1415. package/src/_internal/util/common/test/shims/newSymbolName.ts +23 -0
  1416. package/src/_internal/util/common/test/shims/terminal.ts +33 -0
  1417. package/src/_internal/util/common/test/shims/vscodeTypesShim.ts +115 -0
  1418. package/src/_internal/util/common/time.ts +31 -0
  1419. package/src/_internal/util/common/tokenizer.ts +30 -0
  1420. package/src/_internal/util/common/tracing.ts +52 -0
  1421. package/src/_internal/util/common/types.ts +33 -0
  1422. package/src/_internal/util/common/variableLengthQuantity.ts +40 -0
  1423. package/src/_internal/util/node/worker.ts +130 -0
  1424. package/src/_internal/util/vs/base/common/arrays.ts +926 -0
  1425. package/src/_internal/util/vs/base/common/arraysFind.ts +206 -0
  1426. package/src/_internal/util/vs/base/common/assert.ts +89 -0
  1427. package/src/_internal/util/vs/base/common/async.ts +2582 -0
  1428. package/src/_internal/util/vs/base/common/buffer.ts +501 -0
  1429. package/src/_internal/util/vs/base/common/cache.ts +122 -0
  1430. package/src/_internal/util/vs/base/common/cancellation.ts +150 -0
  1431. package/src/_internal/util/vs/base/common/charCode.ts +452 -0
  1432. package/src/_internal/util/vs/base/common/codicons.ts +66 -0
  1433. package/src/_internal/util/vs/base/common/codiconsLibrary.ts +618 -0
  1434. package/src/_internal/util/vs/base/common/codiconsUtil.ts +30 -0
  1435. package/src/_internal/util/vs/base/common/collections.ts +156 -0
  1436. package/src/_internal/util/vs/base/common/diff/diff.ts +1317 -0
  1437. package/src/_internal/util/vs/base/common/diff/diffChange.ts +62 -0
  1438. package/src/_internal/util/vs/base/common/equals.ts +148 -0
  1439. package/src/_internal/util/vs/base/common/errors.ts +342 -0
  1440. package/src/_internal/util/vs/base/common/event.ts +1782 -0
  1441. package/src/_internal/util/vs/base/common/extpath.ts +425 -0
  1442. package/src/_internal/util/vs/base/common/filters.ts +928 -0
  1443. package/src/_internal/util/vs/base/common/functional.ts +34 -0
  1444. package/src/_internal/util/vs/base/common/glob.ts +839 -0
  1445. package/src/_internal/util/vs/base/common/hash.ts +326 -0
  1446. package/src/_internal/util/vs/base/common/htmlContent.ts +212 -0
  1447. package/src/_internal/util/vs/base/common/iconLabels.ts +118 -0
  1448. package/src/_internal/util/vs/base/common/iterator.ts +196 -0
  1449. package/src/_internal/util/vs/base/common/lazy.ts +59 -0
  1450. package/src/_internal/util/vs/base/common/lifecycle.ts +845 -0
  1451. package/src/_internal/util/vs/base/common/linkedList.ts +144 -0
  1452. package/src/_internal/util/vs/base/common/map.ts +954 -0
  1453. package/src/_internal/util/vs/base/common/marshallingIds.ts +35 -0
  1454. package/src/_internal/util/vs/base/common/mime.ts +136 -0
  1455. package/src/_internal/util/vs/base/common/naturalLanguage/korean.ts +425 -0
  1456. package/src/_internal/util/vs/base/common/network.ts +429 -0
  1457. package/src/_internal/util/vs/base/common/numbers.ts +166 -0
  1458. package/src/_internal/util/vs/base/common/objects.ts +242 -0
  1459. package/src/_internal/util/vs/base/common/observable.ts +10 -0
  1460. package/src/_internal/util/vs/base/common/observableInternal/base.ts +208 -0
  1461. package/src/_internal/util/vs/base/common/observableInternal/changeTracker.ts +96 -0
  1462. package/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.ts +9 -0
  1463. package/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.ts +12 -0
  1464. package/src/_internal/util/vs/base/common/observableInternal/debugLocation.ts +88 -0
  1465. package/src/_internal/util/vs/base/common/observableInternal/debugName.ts +150 -0
  1466. package/src/_internal/util/vs/base/common/observableInternal/experimental/utils.ts +62 -0
  1467. package/src/_internal/util/vs/base/common/observableInternal/index.ts +61 -0
  1468. package/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.ts +388 -0
  1469. package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerApi.d.ts +154 -0
  1470. package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.ts +80 -0
  1471. package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.ts +485 -0
  1472. package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.ts +103 -0
  1473. package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.ts +69 -0
  1474. package/src/_internal/util/vs/base/common/observableInternal/logging/logging.ts +133 -0
  1475. package/src/_internal/util/vs/base/common/observableInternal/map.ts +81 -0
  1476. package/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.ts +172 -0
  1477. package/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.ts +44 -0
  1478. package/src/_internal/util/vs/base/common/observableInternal/observables/derived.ts +190 -0
  1479. package/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.ts +445 -0
  1480. package/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.ts +154 -0
  1481. package/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.ts +174 -0
  1482. package/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.ts +67 -0
  1483. package/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.ts +62 -0
  1484. package/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.ts +131 -0
  1485. package/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.ts +37 -0
  1486. package/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.ts +188 -0
  1487. package/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.ts +256 -0
  1488. package/src/_internal/util/vs/base/common/observableInternal/set.ts +78 -0
  1489. package/src/_internal/util/vs/base/common/observableInternal/transaction.ts +115 -0
  1490. package/src/_internal/util/vs/base/common/observableInternal/utils/promise.ts +129 -0
  1491. package/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.ts +65 -0
  1492. package/src/_internal/util/vs/base/common/observableInternal/utils/utils.ts +281 -0
  1493. package/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.ts +101 -0
  1494. package/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.ts +31 -0
  1495. package/src/_internal/util/vs/base/common/path.ts +1591 -0
  1496. package/src/_internal/util/vs/base/common/platform.ts +282 -0
  1497. package/src/_internal/util/vs/base/common/process.ts +78 -0
  1498. package/src/_internal/util/vs/base/common/resources.ts +446 -0
  1499. package/src/_internal/util/vs/base/common/sequence.ts +36 -0
  1500. package/src/_internal/util/vs/base/common/sseParser.ts +247 -0
  1501. package/src/_internal/util/vs/base/common/stopwatch.ts +43 -0
  1502. package/src/_internal/util/vs/base/common/stream.ts +792 -0
  1503. package/src/_internal/util/vs/base/common/strings.ts +1364 -0
  1504. package/src/_internal/util/vs/base/common/symbols.ts +11 -0
  1505. package/src/_internal/util/vs/base/common/themables.ts +106 -0
  1506. package/src/_internal/util/vs/base/common/types.ts +345 -0
  1507. package/src/_internal/util/vs/base/common/uint.ts +61 -0
  1508. package/src/_internal/util/vs/base/common/uri.ts +752 -0
  1509. package/src/_internal/util/vs/base/common/uuid.ts +72 -0
  1510. package/src/_internal/util/vs/base-common.d.ts +42 -0
  1511. package/src/_internal/util/vs/editor/common/core/editOperation.ts +62 -0
  1512. package/src/_internal/util/vs/editor/common/core/edits/edit.ts +399 -0
  1513. package/src/_internal/util/vs/editor/common/core/edits/lineEdit.ts +414 -0
  1514. package/src/_internal/util/vs/editor/common/core/edits/stringEdit.ts +568 -0
  1515. package/src/_internal/util/vs/editor/common/core/edits/textEdit.ts +411 -0
  1516. package/src/_internal/util/vs/editor/common/core/position.ts +186 -0
  1517. package/src/_internal/util/vs/editor/common/core/range.ts +519 -0
  1518. package/src/_internal/util/vs/editor/common/core/ranges/lineRange.ts +416 -0
  1519. package/src/_internal/util/vs/editor/common/core/ranges/offsetRange.ts +275 -0
  1520. package/src/_internal/util/vs/editor/common/core/text/abstractText.ts +127 -0
  1521. package/src/_internal/util/vs/editor/common/core/text/positionToOffset.ts +26 -0
  1522. package/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.ts +144 -0
  1523. package/src/_internal/util/vs/editor/common/core/text/textLength.ts +150 -0
  1524. package/src/_internal/util/vs/editor/common/core/wordHelper.ts +177 -0
  1525. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.ts +210 -0
  1526. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.ts +109 -0
  1527. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.ts +178 -0
  1528. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.ts +331 -0
  1529. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.ts +273 -0
  1530. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.ts +475 -0
  1531. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.ts +47 -0
  1532. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.ts +248 -0
  1533. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.ts +76 -0
  1534. package/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.ts +693 -0
  1535. package/src/_internal/util/vs/editor/common/diff/linesDiffComputer.ts +61 -0
  1536. package/src/_internal/util/vs/editor/common/diff/rangeMapping.ts +418 -0
  1537. package/src/_internal/util/vs/editor/common/model/prefixSumComputer.ts +304 -0
  1538. package/src/_internal/util/vs/nls.messages.ts +21 -0
  1539. package/src/_internal/util/vs/nls.ts +243 -0
  1540. package/src/_internal/util/vs/platform/instantiation/common/descriptors.ts +23 -0
  1541. package/src/_internal/util/vs/platform/instantiation/common/graph.ts +113 -0
  1542. package/src/_internal/util/vs/platform/instantiation/common/instantiation.ts +127 -0
  1543. package/src/_internal/util/vs/platform/instantiation/common/instantiationService.ts +483 -0
  1544. package/src/_internal/util/vs/platform/instantiation/common/serviceCollection.ts +34 -0
  1545. package/src/_internal/util/vs/vscode-globals-nls.d.ts +42 -0
  1546. package/src/_internal/util/vs/vscode-globals-product.d.ts +35 -0
  1547. package/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.ts +109 -0
  1548. package/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.ts +34 -0
  1549. package/src/_internal/util/vs/workbench/api/common/extHostTypes/location.ts +51 -0
  1550. package/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.ts +83 -0
  1551. package/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.ts +296 -0
  1552. package/src/_internal/util/vs/workbench/api/common/extHostTypes/position.ts +195 -0
  1553. package/src/_internal/util/vs/workbench/api/common/extHostTypes/range.ts +167 -0
  1554. package/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.ts +94 -0
  1555. package/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.ts +103 -0
  1556. package/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.ts +44 -0
  1557. package/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.ts +89 -0
  1558. package/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.ts +99 -0
  1559. package/src/_internal/vscodeTypes.ts +100 -0
  1560. package/src/main.ts +207 -0
  1561. package/src/package.json +4063 -0
@@ -0,0 +1,1591 @@
1
+ //!!! DO NOT modify, this file was COPIED from 'microsoft/vscode'
2
+
3
+ /*---------------------------------------------------------------------------------------------
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Licensed under the MIT License. See License.txt in the project root for license information.
6
+ *--------------------------------------------------------------------------------------------*/
7
+
8
+ // NOTE: VSCode's copy of nodejs path library to be usable in common (non-node) namespace
9
+ // Copied from: https://github.com/nodejs/node/commits/v22.15.0/lib/path.js
10
+ // Excluding: the change that adds primordials
11
+ // (https://github.com/nodejs/node/commit/187a862d221dec42fa9a5c4214e7034d9092792f and others)
12
+ // Excluding: the change that adds glob matching
13
+ // (https://github.com/nodejs/node/commit/57b8b8e18e5e2007114c63b71bf0baedc01936a6)
14
+
15
+ /**
16
+ * Copyright Joyent, Inc. and other Node contributors.
17
+ *
18
+ * Permission is hereby granted, free of charge, to any person obtaining a
19
+ * copy of this software and associated documentation files (the
20
+ * "Software"), to deal in the Software without restriction, including
21
+ * without limitation the rights to use, copy, modify, merge, publish,
22
+ * distribute, sublicense, and/or sell copies of the Software, and to permit
23
+ * persons to whom the Software is furnished to do so, subject to the
24
+ * following conditions:
25
+ *
26
+ * The above copyright notice and this permission notice shall be included
27
+ * in all copies or substantial portions of the Software.
28
+ *
29
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
30
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
32
+ * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
33
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
34
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
35
+ * USE OR OTHER DEALINGS IN THE SOFTWARE.
36
+ */
37
+
38
+ import * as process from './process';
39
+
40
+ const CHAR_UPPERCASE_A = 65;/* A */
41
+ const CHAR_LOWERCASE_A = 97; /* a */
42
+ const CHAR_UPPERCASE_Z = 90; /* Z */
43
+ const CHAR_LOWERCASE_Z = 122; /* z */
44
+ const CHAR_DOT = 46; /* . */
45
+ const CHAR_FORWARD_SLASH = 47; /* / */
46
+ const CHAR_BACKWARD_SLASH = 92; /* \ */
47
+ const CHAR_COLON = 58; /* : */
48
+ const CHAR_QUESTION_MARK = 63; /* ? */
49
+
50
+ class ErrorInvalidArgType extends Error {
51
+ code: 'ERR_INVALID_ARG_TYPE';
52
+ constructor(name: string, expected: string, actual: unknown) {
53
+ // determiner: 'must be' or 'must not be'
54
+ let determiner;
55
+ if (typeof expected === 'string' && expected.indexOf('not ') === 0) {
56
+ determiner = 'must not be';
57
+ expected = expected.replace(/^not /, '');
58
+ } else {
59
+ determiner = 'must be';
60
+ }
61
+
62
+ const type = name.indexOf('.') !== -1 ? 'property' : 'argument';
63
+ let msg = `The "${name}" ${type} ${determiner} of type ${expected}`;
64
+
65
+ msg += `. Received type ${typeof actual}`;
66
+ super(msg);
67
+
68
+ this.code = 'ERR_INVALID_ARG_TYPE';
69
+ }
70
+ }
71
+
72
+ function validateObject(pathObject: object, name: string) {
73
+ if (pathObject === null || typeof pathObject !== 'object') {
74
+ throw new ErrorInvalidArgType(name, 'Object', pathObject);
75
+ }
76
+ }
77
+
78
+ function validateString(value: string, name: string) {
79
+ if (typeof value !== 'string') {
80
+ throw new ErrorInvalidArgType(name, 'string', value);
81
+ }
82
+ }
83
+
84
+ const platformIsWin32 = (process.platform === 'win32');
85
+
86
+ function isPathSeparator(code: number | undefined) {
87
+ return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
88
+ }
89
+
90
+ function isPosixPathSeparator(code: number | undefined) {
91
+ return code === CHAR_FORWARD_SLASH;
92
+ }
93
+
94
+ function isWindowsDeviceRoot(code: number) {
95
+ return (code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z) ||
96
+ (code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z);
97
+ }
98
+
99
+ // Resolves . and .. elements in a path with directory names
100
+ function normalizeString(path: string, allowAboveRoot: boolean, separator: string, isPathSeparator: (code?: number) => boolean) {
101
+ let res = '';
102
+ let lastSegmentLength = 0;
103
+ let lastSlash = -1;
104
+ let dots = 0;
105
+ let code = 0;
106
+ for (let i = 0; i <= path.length; ++i) {
107
+ if (i < path.length) {
108
+ code = path.charCodeAt(i);
109
+ }
110
+ else if (isPathSeparator(code)) {
111
+ break;
112
+ }
113
+ else {
114
+ code = CHAR_FORWARD_SLASH;
115
+ }
116
+
117
+ if (isPathSeparator(code)) {
118
+ if (lastSlash === i - 1 || dots === 1) {
119
+ // NOOP
120
+ } else if (dots === 2) {
121
+ if (res.length < 2 || lastSegmentLength !== 2 ||
122
+ res.charCodeAt(res.length - 1) !== CHAR_DOT ||
123
+ res.charCodeAt(res.length - 2) !== CHAR_DOT) {
124
+ if (res.length > 2) {
125
+ const lastSlashIndex = res.lastIndexOf(separator);
126
+ if (lastSlashIndex === -1) {
127
+ res = '';
128
+ lastSegmentLength = 0;
129
+ } else {
130
+ res = res.slice(0, lastSlashIndex);
131
+ lastSegmentLength = res.length - 1 - res.lastIndexOf(separator);
132
+ }
133
+ lastSlash = i;
134
+ dots = 0;
135
+ continue;
136
+ } else if (res.length !== 0) {
137
+ res = '';
138
+ lastSegmentLength = 0;
139
+ lastSlash = i;
140
+ dots = 0;
141
+ continue;
142
+ }
143
+ }
144
+ if (allowAboveRoot) {
145
+ res += res.length > 0 ? `${separator}..` : '..';
146
+ lastSegmentLength = 2;
147
+ }
148
+ } else {
149
+ if (res.length > 0) {
150
+ res += `${separator}${path.slice(lastSlash + 1, i)}`;
151
+ }
152
+ else {
153
+ res = path.slice(lastSlash + 1, i);
154
+ }
155
+ lastSegmentLength = i - lastSlash - 1;
156
+ }
157
+ lastSlash = i;
158
+ dots = 0;
159
+ } else if (code === CHAR_DOT && dots !== -1) {
160
+ ++dots;
161
+ } else {
162
+ dots = -1;
163
+ }
164
+ }
165
+ return res;
166
+ }
167
+
168
+ function formatExt(ext: string): string {
169
+ return ext ? `${ext[0] === '.' ? '' : '.'}${ext}` : '';
170
+ }
171
+
172
+ function _format(sep: string, pathObject: ParsedPath) {
173
+ validateObject(pathObject, 'pathObject');
174
+ const dir = pathObject.dir || pathObject.root;
175
+ const base = pathObject.base ||
176
+ `${pathObject.name || ''}${formatExt(pathObject.ext)}`;
177
+ if (!dir) {
178
+ return base;
179
+ }
180
+ return dir === pathObject.root ? `${dir}${base}` : `${dir}${sep}${base}`;
181
+ }
182
+
183
+ export interface ParsedPath {
184
+ root: string;
185
+ dir: string;
186
+ base: string;
187
+ ext: string;
188
+ name: string;
189
+ }
190
+
191
+ export interface IPath {
192
+ normalize(path: string): string;
193
+ isAbsolute(path: string): boolean;
194
+ join(...paths: string[]): string;
195
+ resolve(...pathSegments: string[]): string;
196
+ relative(from: string, to: string): string;
197
+ dirname(path: string): string;
198
+ basename(path: string, suffix?: string): string;
199
+ extname(path: string): string;
200
+ format(pathObject: ParsedPath): string;
201
+ parse(path: string): ParsedPath;
202
+ toNamespacedPath(path: string): string;
203
+ sep: '\\' | '/';
204
+ delimiter: string;
205
+ win32: IPath | null;
206
+ posix: IPath | null;
207
+ }
208
+
209
+ export const win32: IPath = {
210
+ // path.resolve([from ...], to)
211
+ resolve(...pathSegments: string[]): string {
212
+ let resolvedDevice = '';
213
+ let resolvedTail = '';
214
+ let resolvedAbsolute = false;
215
+
216
+ for (let i = pathSegments.length - 1; i >= -1; i--) {
217
+ let path;
218
+ if (i >= 0) {
219
+ path = pathSegments[i];
220
+ validateString(path, `paths[${i}]`);
221
+
222
+ // Skip empty entries
223
+ if (path.length === 0) {
224
+ continue;
225
+ }
226
+ } else if (resolvedDevice.length === 0) {
227
+ path = process.cwd();
228
+ } else {
229
+ // Windows has the concept of drive-specific current working
230
+ // directories. If we've resolved a drive letter but not yet an
231
+ // absolute path, get cwd for that drive, or the process cwd if
232
+ // the drive cwd is not available. We're sure the device is not
233
+ // a UNC path at this points, because UNC paths are always absolute.
234
+ path = process.env[`=${resolvedDevice}`] || process.cwd();
235
+
236
+ // Verify that a cwd was found and that it actually points
237
+ // to our drive. If not, default to the drive's root.
238
+ if (path === undefined ||
239
+ (path.slice(0, 2).toLowerCase() !== resolvedDevice.toLowerCase() &&
240
+ path.charCodeAt(2) === CHAR_BACKWARD_SLASH)) {
241
+ path = `${resolvedDevice}\\`;
242
+ }
243
+ }
244
+
245
+ const len = path.length;
246
+ let rootEnd = 0;
247
+ let device = '';
248
+ let isAbsolute = false;
249
+ const code = path.charCodeAt(0);
250
+
251
+ // Try to match a root
252
+ if (len === 1) {
253
+ if (isPathSeparator(code)) {
254
+ // `path` contains just a path separator
255
+ rootEnd = 1;
256
+ isAbsolute = true;
257
+ }
258
+ } else if (isPathSeparator(code)) {
259
+ // Possible UNC root
260
+
261
+ // If we started with a separator, we know we at least have an
262
+ // absolute path of some kind (UNC or otherwise)
263
+ isAbsolute = true;
264
+
265
+ if (isPathSeparator(path.charCodeAt(1))) {
266
+ // Matched double path separator at beginning
267
+ let j = 2;
268
+ let last = j;
269
+ // Match 1 or more non-path separators
270
+ while (j < len && !isPathSeparator(path.charCodeAt(j))) {
271
+ j++;
272
+ }
273
+ if (j < len && j !== last) {
274
+ const firstPart = path.slice(last, j);
275
+ // Matched!
276
+ last = j;
277
+ // Match 1 or more path separators
278
+ while (j < len && isPathSeparator(path.charCodeAt(j))) {
279
+ j++;
280
+ }
281
+ if (j < len && j !== last) {
282
+ // Matched!
283
+ last = j;
284
+ // Match 1 or more non-path separators
285
+ while (j < len && !isPathSeparator(path.charCodeAt(j))) {
286
+ j++;
287
+ }
288
+ if (j === len || j !== last) {
289
+ // We matched a UNC root
290
+ device = `\\\\${firstPart}\\${path.slice(last, j)}`;
291
+ rootEnd = j;
292
+ }
293
+ }
294
+ }
295
+ } else {
296
+ rootEnd = 1;
297
+ }
298
+ } else if (isWindowsDeviceRoot(code) &&
299
+ path.charCodeAt(1) === CHAR_COLON) {
300
+ // Possible device root
301
+ device = path.slice(0, 2);
302
+ rootEnd = 2;
303
+ if (len > 2 && isPathSeparator(path.charCodeAt(2))) {
304
+ // Treat separator following drive name as an absolute path
305
+ // indicator
306
+ isAbsolute = true;
307
+ rootEnd = 3;
308
+ }
309
+ }
310
+
311
+ if (device.length > 0) {
312
+ if (resolvedDevice.length > 0) {
313
+ if (device.toLowerCase() !== resolvedDevice.toLowerCase()) {
314
+ // This path points to another device so it is not applicable
315
+ continue;
316
+ }
317
+ } else {
318
+ resolvedDevice = device;
319
+ }
320
+ }
321
+
322
+ if (resolvedAbsolute) {
323
+ if (resolvedDevice.length > 0) {
324
+ break;
325
+ }
326
+ } else {
327
+ resolvedTail = `${path.slice(rootEnd)}\\${resolvedTail}`;
328
+ resolvedAbsolute = isAbsolute;
329
+ if (isAbsolute && resolvedDevice.length > 0) {
330
+ break;
331
+ }
332
+ }
333
+ }
334
+
335
+ // At this point the path should be resolved to a full absolute path,
336
+ // but handle relative paths to be safe (might happen when process.cwd()
337
+ // fails)
338
+
339
+ // Normalize the tail path
340
+ resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, '\\',
341
+ isPathSeparator);
342
+
343
+ return resolvedAbsolute ?
344
+ `${resolvedDevice}\\${resolvedTail}` :
345
+ `${resolvedDevice}${resolvedTail}` || '.';
346
+ },
347
+
348
+ normalize(path: string): string {
349
+ validateString(path, 'path');
350
+ const len = path.length;
351
+ if (len === 0) {
352
+ return '.';
353
+ }
354
+ let rootEnd = 0;
355
+ let device;
356
+ let isAbsolute = false;
357
+ const code = path.charCodeAt(0);
358
+
359
+ // Try to match a root
360
+ if (len === 1) {
361
+ // `path` contains just a single char, exit early to avoid
362
+ // unnecessary work
363
+ return isPosixPathSeparator(code) ? '\\' : path;
364
+ }
365
+ if (isPathSeparator(code)) {
366
+ // Possible UNC root
367
+
368
+ // If we started with a separator, we know we at least have an absolute
369
+ // path of some kind (UNC or otherwise)
370
+ isAbsolute = true;
371
+
372
+ if (isPathSeparator(path.charCodeAt(1))) {
373
+ // Matched double path separator at beginning
374
+ let j = 2;
375
+ let last = j;
376
+ // Match 1 or more non-path separators
377
+ while (j < len && !isPathSeparator(path.charCodeAt(j))) {
378
+ j++;
379
+ }
380
+ if (j < len && j !== last) {
381
+ const firstPart = path.slice(last, j);
382
+ // Matched!
383
+ last = j;
384
+ // Match 1 or more path separators
385
+ while (j < len && isPathSeparator(path.charCodeAt(j))) {
386
+ j++;
387
+ }
388
+ if (j < len && j !== last) {
389
+ // Matched!
390
+ last = j;
391
+ // Match 1 or more non-path separators
392
+ while (j < len && !isPathSeparator(path.charCodeAt(j))) {
393
+ j++;
394
+ }
395
+ if (j === len) {
396
+ // We matched a UNC root only
397
+ // Return the normalized version of the UNC root since there
398
+ // is nothing left to process
399
+ return `\\\\${firstPart}\\${path.slice(last)}\\`;
400
+ }
401
+ if (j !== last) {
402
+ // We matched a UNC root with leftovers
403
+ device = `\\\\${firstPart}\\${path.slice(last, j)}`;
404
+ rootEnd = j;
405
+ }
406
+ }
407
+ }
408
+ } else {
409
+ rootEnd = 1;
410
+ }
411
+ } else if (isWindowsDeviceRoot(code) && path.charCodeAt(1) === CHAR_COLON) {
412
+ // Possible device root
413
+ device = path.slice(0, 2);
414
+ rootEnd = 2;
415
+ if (len > 2 && isPathSeparator(path.charCodeAt(2))) {
416
+ // Treat separator following drive name as an absolute path
417
+ // indicator
418
+ isAbsolute = true;
419
+ rootEnd = 3;
420
+ }
421
+ }
422
+
423
+ let tail = rootEnd < len ?
424
+ normalizeString(path.slice(rootEnd), !isAbsolute, '\\', isPathSeparator) :
425
+ '';
426
+ if (tail.length === 0 && !isAbsolute) {
427
+ tail = '.';
428
+ }
429
+ if (tail.length > 0 && isPathSeparator(path.charCodeAt(len - 1))) {
430
+ tail += '\\';
431
+ }
432
+ if (!isAbsolute && device === undefined && path.includes(':')) {
433
+ // If the original path was not absolute and if we have not been able to
434
+ // resolve it relative to a particular device, we need to ensure that the
435
+ // `tail` has not become something that Windows might interpret as an
436
+ // absolute path. See CVE-2024-36139.
437
+ if (tail.length >= 2 &&
438
+ isWindowsDeviceRoot(tail.charCodeAt(0)) &&
439
+ tail.charCodeAt(1) === CHAR_COLON) {
440
+ return `.\\${tail}`;
441
+ }
442
+ let index = path.indexOf(':');
443
+ do {
444
+ if (index === len - 1 || isPathSeparator(path.charCodeAt(index + 1))) {
445
+ return `.\\${tail}`;
446
+ }
447
+ } while ((index = path.indexOf(':', index + 1)) !== -1);
448
+ }
449
+ if (device === undefined) {
450
+ return isAbsolute ? `\\${tail}` : tail;
451
+ }
452
+ return isAbsolute ? `${device}\\${tail}` : `${device}${tail}`;
453
+ },
454
+
455
+ isAbsolute(path: string): boolean {
456
+ validateString(path, 'path');
457
+ const len = path.length;
458
+ if (len === 0) {
459
+ return false;
460
+ }
461
+
462
+ const code = path.charCodeAt(0);
463
+ return isPathSeparator(code) ||
464
+ // Possible device root
465
+ (len > 2 &&
466
+ isWindowsDeviceRoot(code) &&
467
+ path.charCodeAt(1) === CHAR_COLON &&
468
+ isPathSeparator(path.charCodeAt(2)));
469
+ },
470
+
471
+ join(...paths: string[]): string {
472
+ if (paths.length === 0) {
473
+ return '.';
474
+ }
475
+
476
+ let joined;
477
+ let firstPart: string | undefined;
478
+ for (let i = 0; i < paths.length; ++i) {
479
+ const arg = paths[i];
480
+ validateString(arg, 'path');
481
+ if (arg.length > 0) {
482
+ if (joined === undefined) {
483
+ joined = firstPart = arg;
484
+ }
485
+ else {
486
+ joined += `\\${arg}`;
487
+ }
488
+ }
489
+ }
490
+
491
+ if (joined === undefined) {
492
+ return '.';
493
+ }
494
+
495
+ // Make sure that the joined path doesn't start with two slashes, because
496
+ // normalize() will mistake it for a UNC path then.
497
+ //
498
+ // This step is skipped when it is very clear that the user actually
499
+ // intended to point at a UNC path. This is assumed when the first
500
+ // non-empty string arguments starts with exactly two slashes followed by
501
+ // at least one more non-slash character.
502
+ //
503
+ // Note that for normalize() to treat a path as a UNC path it needs to
504
+ // have at least 2 components, so we don't filter for that here.
505
+ // This means that the user can use join to construct UNC paths from
506
+ // a server name and a share name; for example:
507
+ // path.join('//server', 'share') -> '\\\\server\\share\\')
508
+ let needsReplace = true;
509
+ let slashCount = 0;
510
+ if (typeof firstPart === 'string' && isPathSeparator(firstPart.charCodeAt(0))) {
511
+ ++slashCount;
512
+ const firstLen = firstPart.length;
513
+ if (firstLen > 1 && isPathSeparator(firstPart.charCodeAt(1))) {
514
+ ++slashCount;
515
+ if (firstLen > 2) {
516
+ if (isPathSeparator(firstPart.charCodeAt(2))) {
517
+ ++slashCount;
518
+ } else {
519
+ // We matched a UNC path in the first part
520
+ needsReplace = false;
521
+ }
522
+ }
523
+ }
524
+ }
525
+ if (needsReplace) {
526
+ // Find any more consecutive slashes we need to replace
527
+ while (slashCount < joined.length &&
528
+ isPathSeparator(joined.charCodeAt(slashCount))) {
529
+ slashCount++;
530
+ }
531
+
532
+ // Replace the slashes if needed
533
+ if (slashCount >= 2) {
534
+ joined = `\\${joined.slice(slashCount)}`;
535
+ }
536
+ }
537
+
538
+ return win32.normalize(joined);
539
+ },
540
+
541
+
542
+ // It will solve the relative path from `from` to `to`, for instance:
543
+ // from = 'C:\\orandea\\test\\aaa'
544
+ // to = 'C:\\orandea\\impl\\bbb'
545
+ // The output of the function should be: '..\\..\\impl\\bbb'
546
+ relative(from: string, to: string): string {
547
+ validateString(from, 'from');
548
+ validateString(to, 'to');
549
+
550
+ if (from === to) {
551
+ return '';
552
+ }
553
+
554
+ const fromOrig = win32.resolve(from);
555
+ const toOrig = win32.resolve(to);
556
+
557
+ if (fromOrig === toOrig) {
558
+ return '';
559
+ }
560
+
561
+ from = fromOrig.toLowerCase();
562
+ to = toOrig.toLowerCase();
563
+
564
+ if (from === to) {
565
+ return '';
566
+ }
567
+
568
+ if (fromOrig.length !== from.length || toOrig.length !== to.length) {
569
+ const fromSplit = fromOrig.split('\\');
570
+ const toSplit = toOrig.split('\\');
571
+ if (fromSplit[fromSplit.length - 1] === '') {
572
+ fromSplit.pop();
573
+ }
574
+ if (toSplit[toSplit.length - 1] === '') {
575
+ toSplit.pop();
576
+ }
577
+
578
+ const fromLen = fromSplit.length;
579
+ const toLen = toSplit.length;
580
+ const length = fromLen < toLen ? fromLen : toLen;
581
+
582
+ let i;
583
+ for (i = 0; i < length; i++) {
584
+ if (fromSplit[i].toLowerCase() !== toSplit[i].toLowerCase()) {
585
+ break;
586
+ }
587
+ }
588
+
589
+ if (i === 0) {
590
+ return toOrig;
591
+ } else if (i === length) {
592
+ if (toLen > length) {
593
+ return toSplit.slice(i).join('\\');
594
+ }
595
+ if (fromLen > length) {
596
+ return '..\\'.repeat(fromLen - 1 - i) + '..';
597
+ }
598
+ return '';
599
+ }
600
+
601
+ return '..\\'.repeat(fromLen - i) + toSplit.slice(i).join('\\');
602
+ }
603
+
604
+ // Trim any leading backslashes
605
+ let fromStart = 0;
606
+ while (fromStart < from.length &&
607
+ from.charCodeAt(fromStart) === CHAR_BACKWARD_SLASH) {
608
+ fromStart++;
609
+ }
610
+ // Trim trailing backslashes (applicable to UNC paths only)
611
+ let fromEnd = from.length;
612
+ while (fromEnd - 1 > fromStart &&
613
+ from.charCodeAt(fromEnd - 1) === CHAR_BACKWARD_SLASH) {
614
+ fromEnd--;
615
+ }
616
+ const fromLen = fromEnd - fromStart;
617
+
618
+ // Trim any leading backslashes
619
+ let toStart = 0;
620
+ while (toStart < to.length &&
621
+ to.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) {
622
+ toStart++;
623
+ }
624
+ // Trim trailing backslashes (applicable to UNC paths only)
625
+ let toEnd = to.length;
626
+ while (toEnd - 1 > toStart &&
627
+ to.charCodeAt(toEnd - 1) === CHAR_BACKWARD_SLASH) {
628
+ toEnd--;
629
+ }
630
+ const toLen = toEnd - toStart;
631
+
632
+ // Compare paths to find the longest common path from root
633
+ const length = fromLen < toLen ? fromLen : toLen;
634
+ let lastCommonSep = -1;
635
+ let i = 0;
636
+ for (; i < length; i++) {
637
+ const fromCode = from.charCodeAt(fromStart + i);
638
+ if (fromCode !== to.charCodeAt(toStart + i)) {
639
+ break;
640
+ } else if (fromCode === CHAR_BACKWARD_SLASH) {
641
+ lastCommonSep = i;
642
+ }
643
+ }
644
+
645
+ // We found a mismatch before the first common path separator was seen, so
646
+ // return the original `to`.
647
+ if (i !== length) {
648
+ if (lastCommonSep === -1) {
649
+ return toOrig;
650
+ }
651
+ } else {
652
+ if (toLen > length) {
653
+ if (to.charCodeAt(toStart + i) === CHAR_BACKWARD_SLASH) {
654
+ // We get here if `from` is the exact base path for `to`.
655
+ // For example: from='C:\\foo\\bar'; to='C:\\foo\\bar\\baz'
656
+ return toOrig.slice(toStart + i + 1);
657
+ }
658
+ if (i === 2) {
659
+ // We get here if `from` is the device root.
660
+ // For example: from='C:\\'; to='C:\\foo'
661
+ return toOrig.slice(toStart + i);
662
+ }
663
+ }
664
+ if (fromLen > length) {
665
+ if (from.charCodeAt(fromStart + i) === CHAR_BACKWARD_SLASH) {
666
+ // We get here if `to` is the exact base path for `from`.
667
+ // For example: from='C:\\foo\\bar'; to='C:\\foo'
668
+ lastCommonSep = i;
669
+ } else if (i === 2) {
670
+ // We get here if `to` is the device root.
671
+ // For example: from='C:\\foo\\bar'; to='C:\\'
672
+ lastCommonSep = 3;
673
+ }
674
+ }
675
+ if (lastCommonSep === -1) {
676
+ lastCommonSep = 0;
677
+ }
678
+ }
679
+
680
+ let out = '';
681
+ // Generate the relative path based on the path difference between `to` and
682
+ // `from`
683
+ for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
684
+ if (i === fromEnd || from.charCodeAt(i) === CHAR_BACKWARD_SLASH) {
685
+ out += out.length === 0 ? '..' : '\\..';
686
+ }
687
+ }
688
+
689
+ toStart += lastCommonSep;
690
+
691
+ // Lastly, append the rest of the destination (`to`) path that comes after
692
+ // the common path parts
693
+ if (out.length > 0) {
694
+ return `${out}${toOrig.slice(toStart, toEnd)}`;
695
+ }
696
+
697
+ if (toOrig.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) {
698
+ ++toStart;
699
+ }
700
+
701
+ return toOrig.slice(toStart, toEnd);
702
+ },
703
+
704
+ toNamespacedPath(path: string): string {
705
+ // Note: this will *probably* throw somewhere.
706
+ if (typeof path !== 'string' || path.length === 0) {
707
+ return path;
708
+ }
709
+
710
+ const resolvedPath = win32.resolve(path);
711
+
712
+ if (resolvedPath.length <= 2) {
713
+ return path;
714
+ }
715
+
716
+ if (resolvedPath.charCodeAt(0) === CHAR_BACKWARD_SLASH) {
717
+ // Possible UNC root
718
+ if (resolvedPath.charCodeAt(1) === CHAR_BACKWARD_SLASH) {
719
+ const code = resolvedPath.charCodeAt(2);
720
+ if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) {
721
+ // Matched non-long UNC root, convert the path to a long UNC path
722
+ return `\\\\?\\UNC\\${resolvedPath.slice(2)}`;
723
+ }
724
+ }
725
+ } else if (isWindowsDeviceRoot(resolvedPath.charCodeAt(0)) &&
726
+ resolvedPath.charCodeAt(1) === CHAR_COLON &&
727
+ resolvedPath.charCodeAt(2) === CHAR_BACKWARD_SLASH) {
728
+ // Matched device root, convert the path to a long UNC path
729
+ return `\\\\?\\${resolvedPath}`;
730
+ }
731
+
732
+ return resolvedPath;
733
+ },
734
+
735
+ dirname(path: string): string {
736
+ validateString(path, 'path');
737
+ const len = path.length;
738
+ if (len === 0) {
739
+ return '.';
740
+ }
741
+ let rootEnd = -1;
742
+ let offset = 0;
743
+ const code = path.charCodeAt(0);
744
+
745
+ if (len === 1) {
746
+ // `path` contains just a path separator, exit early to avoid
747
+ // unnecessary work or a dot.
748
+ return isPathSeparator(code) ? path : '.';
749
+ }
750
+
751
+ // Try to match a root
752
+ if (isPathSeparator(code)) {
753
+ // Possible UNC root
754
+
755
+ rootEnd = offset = 1;
756
+
757
+ if (isPathSeparator(path.charCodeAt(1))) {
758
+ // Matched double path separator at beginning
759
+ let j = 2;
760
+ let last = j;
761
+ // Match 1 or more non-path separators
762
+ while (j < len && !isPathSeparator(path.charCodeAt(j))) {
763
+ j++;
764
+ }
765
+ if (j < len && j !== last) {
766
+ // Matched!
767
+ last = j;
768
+ // Match 1 or more path separators
769
+ while (j < len && isPathSeparator(path.charCodeAt(j))) {
770
+ j++;
771
+ }
772
+ if (j < len && j !== last) {
773
+ // Matched!
774
+ last = j;
775
+ // Match 1 or more non-path separators
776
+ while (j < len && !isPathSeparator(path.charCodeAt(j))) {
777
+ j++;
778
+ }
779
+ if (j === len) {
780
+ // We matched a UNC root only
781
+ return path;
782
+ }
783
+ if (j !== last) {
784
+ // We matched a UNC root with leftovers
785
+
786
+ // Offset by 1 to include the separator after the UNC root to
787
+ // treat it as a "normal root" on top of a (UNC) root
788
+ rootEnd = offset = j + 1;
789
+ }
790
+ }
791
+ }
792
+ }
793
+ // Possible device root
794
+ } else if (isWindowsDeviceRoot(code) && path.charCodeAt(1) === CHAR_COLON) {
795
+ rootEnd = len > 2 && isPathSeparator(path.charCodeAt(2)) ? 3 : 2;
796
+ offset = rootEnd;
797
+ }
798
+
799
+ let end = -1;
800
+ let matchedSlash = true;
801
+ for (let i = len - 1; i >= offset; --i) {
802
+ if (isPathSeparator(path.charCodeAt(i))) {
803
+ if (!matchedSlash) {
804
+ end = i;
805
+ break;
806
+ }
807
+ } else {
808
+ // We saw the first non-path separator
809
+ matchedSlash = false;
810
+ }
811
+ }
812
+
813
+ if (end === -1) {
814
+ if (rootEnd === -1) {
815
+ return '.';
816
+ }
817
+
818
+ end = rootEnd;
819
+ }
820
+ return path.slice(0, end);
821
+ },
822
+
823
+ basename(path: string, suffix?: string): string {
824
+ if (suffix !== undefined) {
825
+ validateString(suffix, 'suffix');
826
+ }
827
+ validateString(path, 'path');
828
+ let start = 0;
829
+ let end = -1;
830
+ let matchedSlash = true;
831
+ let i;
832
+
833
+ // Check for a drive letter prefix so as not to mistake the following
834
+ // path separator as an extra separator at the end of the path that can be
835
+ // disregarded
836
+ if (path.length >= 2 &&
837
+ isWindowsDeviceRoot(path.charCodeAt(0)) &&
838
+ path.charCodeAt(1) === CHAR_COLON) {
839
+ start = 2;
840
+ }
841
+
842
+ if (suffix !== undefined && suffix.length > 0 && suffix.length <= path.length) {
843
+ if (suffix === path) {
844
+ return '';
845
+ }
846
+ let extIdx = suffix.length - 1;
847
+ let firstNonSlashEnd = -1;
848
+ for (i = path.length - 1; i >= start; --i) {
849
+ const code = path.charCodeAt(i);
850
+ if (isPathSeparator(code)) {
851
+ // If we reached a path separator that was not part of a set of path
852
+ // separators at the end of the string, stop now
853
+ if (!matchedSlash) {
854
+ start = i + 1;
855
+ break;
856
+ }
857
+ } else {
858
+ if (firstNonSlashEnd === -1) {
859
+ // We saw the first non-path separator, remember this index in case
860
+ // we need it if the extension ends up not matching
861
+ matchedSlash = false;
862
+ firstNonSlashEnd = i + 1;
863
+ }
864
+ if (extIdx >= 0) {
865
+ // Try to match the explicit extension
866
+ if (code === suffix.charCodeAt(extIdx)) {
867
+ if (--extIdx === -1) {
868
+ // We matched the extension, so mark this as the end of our path
869
+ // component
870
+ end = i;
871
+ }
872
+ } else {
873
+ // Extension does not match, so our result is the entire path
874
+ // component
875
+ extIdx = -1;
876
+ end = firstNonSlashEnd;
877
+ }
878
+ }
879
+ }
880
+ }
881
+
882
+ if (start === end) {
883
+ end = firstNonSlashEnd;
884
+ } else if (end === -1) {
885
+ end = path.length;
886
+ }
887
+ return path.slice(start, end);
888
+ }
889
+ for (i = path.length - 1; i >= start; --i) {
890
+ if (isPathSeparator(path.charCodeAt(i))) {
891
+ // If we reached a path separator that was not part of a set of path
892
+ // separators at the end of the string, stop now
893
+ if (!matchedSlash) {
894
+ start = i + 1;
895
+ break;
896
+ }
897
+ } else if (end === -1) {
898
+ // We saw the first non-path separator, mark this as the end of our
899
+ // path component
900
+ matchedSlash = false;
901
+ end = i + 1;
902
+ }
903
+ }
904
+
905
+ if (end === -1) {
906
+ return '';
907
+ }
908
+ return path.slice(start, end);
909
+ },
910
+
911
+ extname(path: string): string {
912
+ validateString(path, 'path');
913
+ let start = 0;
914
+ let startDot = -1;
915
+ let startPart = 0;
916
+ let end = -1;
917
+ let matchedSlash = true;
918
+ // Track the state of characters (if any) we see before our first dot and
919
+ // after any path separator we find
920
+ let preDotState = 0;
921
+
922
+ // Check for a drive letter prefix so as not to mistake the following
923
+ // path separator as an extra separator at the end of the path that can be
924
+ // disregarded
925
+
926
+ if (path.length >= 2 &&
927
+ path.charCodeAt(1) === CHAR_COLON &&
928
+ isWindowsDeviceRoot(path.charCodeAt(0))) {
929
+ start = startPart = 2;
930
+ }
931
+
932
+ for (let i = path.length - 1; i >= start; --i) {
933
+ const code = path.charCodeAt(i);
934
+ if (isPathSeparator(code)) {
935
+ // If we reached a path separator that was not part of a set of path
936
+ // separators at the end of the string, stop now
937
+ if (!matchedSlash) {
938
+ startPart = i + 1;
939
+ break;
940
+ }
941
+ continue;
942
+ }
943
+ if (end === -1) {
944
+ // We saw the first non-path separator, mark this as the end of our
945
+ // extension
946
+ matchedSlash = false;
947
+ end = i + 1;
948
+ }
949
+ if (code === CHAR_DOT) {
950
+ // If this is our first dot, mark it as the start of our extension
951
+ if (startDot === -1) {
952
+ startDot = i;
953
+ }
954
+ else if (preDotState !== 1) {
955
+ preDotState = 1;
956
+ }
957
+ } else if (startDot !== -1) {
958
+ // We saw a non-dot and non-path separator before our dot, so we should
959
+ // have a good chance at having a non-empty extension
960
+ preDotState = -1;
961
+ }
962
+ }
963
+
964
+ if (startDot === -1 ||
965
+ end === -1 ||
966
+ // We saw a non-dot character immediately before the dot
967
+ preDotState === 0 ||
968
+ // The (right-most) trimmed path component is exactly '..'
969
+ (preDotState === 1 &&
970
+ startDot === end - 1 &&
971
+ startDot === startPart + 1)) {
972
+ return '';
973
+ }
974
+ return path.slice(startDot, end);
975
+ },
976
+
977
+ format: _format.bind(null, '\\'),
978
+
979
+ parse(path) {
980
+ validateString(path, 'path');
981
+
982
+ const ret = { root: '', dir: '', base: '', ext: '', name: '' };
983
+ if (path.length === 0) {
984
+ return ret;
985
+ }
986
+
987
+ const len = path.length;
988
+ let rootEnd = 0;
989
+ let code = path.charCodeAt(0);
990
+
991
+ if (len === 1) {
992
+ if (isPathSeparator(code)) {
993
+ // `path` contains just a path separator, exit early to avoid
994
+ // unnecessary work
995
+ ret.root = ret.dir = path;
996
+ return ret;
997
+ }
998
+ ret.base = ret.name = path;
999
+ return ret;
1000
+ }
1001
+ // Try to match a root
1002
+ if (isPathSeparator(code)) {
1003
+ // Possible UNC root
1004
+
1005
+ rootEnd = 1;
1006
+ if (isPathSeparator(path.charCodeAt(1))) {
1007
+ // Matched double path separator at beginning
1008
+ let j = 2;
1009
+ let last = j;
1010
+ // Match 1 or more non-path separators
1011
+ while (j < len && !isPathSeparator(path.charCodeAt(j))) {
1012
+ j++;
1013
+ }
1014
+ if (j < len && j !== last) {
1015
+ // Matched!
1016
+ last = j;
1017
+ // Match 1 or more path separators
1018
+ while (j < len && isPathSeparator(path.charCodeAt(j))) {
1019
+ j++;
1020
+ }
1021
+ if (j < len && j !== last) {
1022
+ // Matched!
1023
+ last = j;
1024
+ // Match 1 or more non-path separators
1025
+ while (j < len && !isPathSeparator(path.charCodeAt(j))) {
1026
+ j++;
1027
+ }
1028
+ if (j === len) {
1029
+ // We matched a UNC root only
1030
+ rootEnd = j;
1031
+ } else if (j !== last) {
1032
+ // We matched a UNC root with leftovers
1033
+ rootEnd = j + 1;
1034
+ }
1035
+ }
1036
+ }
1037
+ }
1038
+ } else if (isWindowsDeviceRoot(code) && path.charCodeAt(1) === CHAR_COLON) {
1039
+ // Possible device root
1040
+ if (len <= 2) {
1041
+ // `path` contains just a drive root, exit early to avoid
1042
+ // unnecessary work
1043
+ ret.root = ret.dir = path;
1044
+ return ret;
1045
+ }
1046
+ rootEnd = 2;
1047
+ if (isPathSeparator(path.charCodeAt(2))) {
1048
+ if (len === 3) {
1049
+ // `path` contains just a drive root, exit early to avoid
1050
+ // unnecessary work
1051
+ ret.root = ret.dir = path;
1052
+ return ret;
1053
+ }
1054
+ rootEnd = 3;
1055
+ }
1056
+ }
1057
+ if (rootEnd > 0) {
1058
+ ret.root = path.slice(0, rootEnd);
1059
+ }
1060
+
1061
+ let startDot = -1;
1062
+ let startPart = rootEnd;
1063
+ let end = -1;
1064
+ let matchedSlash = true;
1065
+ let i = path.length - 1;
1066
+
1067
+ // Track the state of characters (if any) we see before our first dot and
1068
+ // after any path separator we find
1069
+ let preDotState = 0;
1070
+
1071
+ // Get non-dir info
1072
+ for (; i >= rootEnd; --i) {
1073
+ code = path.charCodeAt(i);
1074
+ if (isPathSeparator(code)) {
1075
+ // If we reached a path separator that was not part of a set of path
1076
+ // separators at the end of the string, stop now
1077
+ if (!matchedSlash) {
1078
+ startPart = i + 1;
1079
+ break;
1080
+ }
1081
+ continue;
1082
+ }
1083
+ if (end === -1) {
1084
+ // We saw the first non-path separator, mark this as the end of our
1085
+ // extension
1086
+ matchedSlash = false;
1087
+ end = i + 1;
1088
+ }
1089
+ if (code === CHAR_DOT) {
1090
+ // If this is our first dot, mark it as the start of our extension
1091
+ if (startDot === -1) {
1092
+ startDot = i;
1093
+ } else if (preDotState !== 1) {
1094
+ preDotState = 1;
1095
+ }
1096
+ } else if (startDot !== -1) {
1097
+ // We saw a non-dot and non-path separator before our dot, so we should
1098
+ // have a good chance at having a non-empty extension
1099
+ preDotState = -1;
1100
+ }
1101
+ }
1102
+
1103
+ if (end !== -1) {
1104
+ if (startDot === -1 ||
1105
+ // We saw a non-dot character immediately before the dot
1106
+ preDotState === 0 ||
1107
+ // The (right-most) trimmed path component is exactly '..'
1108
+ (preDotState === 1 &&
1109
+ startDot === end - 1 &&
1110
+ startDot === startPart + 1)) {
1111
+ ret.base = ret.name = path.slice(startPart, end);
1112
+ } else {
1113
+ ret.name = path.slice(startPart, startDot);
1114
+ ret.base = path.slice(startPart, end);
1115
+ ret.ext = path.slice(startDot, end);
1116
+ }
1117
+ }
1118
+
1119
+ // If the directory is the root, use the entire root as the `dir` including
1120
+ // the trailing slash if any (`C:\abc` -> `C:\`). Otherwise, strip out the
1121
+ // trailing slash (`C:\abc\def` -> `C:\abc`).
1122
+ if (startPart > 0 && startPart !== rootEnd) {
1123
+ ret.dir = path.slice(0, startPart - 1);
1124
+ } else {
1125
+ ret.dir = ret.root;
1126
+ }
1127
+
1128
+ return ret;
1129
+ },
1130
+
1131
+ sep: '\\',
1132
+ delimiter: ';',
1133
+ win32: null,
1134
+ posix: null
1135
+ };
1136
+
1137
+ const posixCwd = (() => {
1138
+ if (platformIsWin32) {
1139
+ // Converts Windows' backslash path separators to POSIX forward slashes
1140
+ // and truncates any drive indicator
1141
+ const regexp = /\\/g;
1142
+ return () => {
1143
+ const cwd = process.cwd().replace(regexp, '/');
1144
+ return cwd.slice(cwd.indexOf('/'));
1145
+ };
1146
+ }
1147
+
1148
+ // We're already on POSIX, no need for any transformations
1149
+ return () => process.cwd();
1150
+ })();
1151
+
1152
+ export const posix: IPath = {
1153
+ // path.resolve([from ...], to)
1154
+ resolve(...pathSegments: string[]): string {
1155
+ let resolvedPath = '';
1156
+ let resolvedAbsolute = false;
1157
+
1158
+ for (let i = pathSegments.length - 1; i >= 0 && !resolvedAbsolute; i--) {
1159
+ const path = pathSegments[i];
1160
+ validateString(path, `paths[${i}]`);
1161
+
1162
+ // Skip empty entries
1163
+ if (path.length === 0) {
1164
+ continue;
1165
+ }
1166
+
1167
+ resolvedPath = `${path}/${resolvedPath}`;
1168
+ resolvedAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;
1169
+ }
1170
+
1171
+ if (!resolvedAbsolute) {
1172
+ const cwd = posixCwd();
1173
+ resolvedPath = `${cwd}/${resolvedPath}`;
1174
+ resolvedAbsolute =
1175
+ cwd.charCodeAt(0) === CHAR_FORWARD_SLASH;
1176
+ }
1177
+
1178
+ // At this point the path should be resolved to a full absolute path, but
1179
+ // handle relative paths to be safe (might happen when process.cwd() fails)
1180
+
1181
+ // Normalize the path
1182
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, '/',
1183
+ isPosixPathSeparator);
1184
+
1185
+ if (resolvedAbsolute) {
1186
+ return `/${resolvedPath}`;
1187
+ }
1188
+ return resolvedPath.length > 0 ? resolvedPath : '.';
1189
+ },
1190
+
1191
+ normalize(path: string): string {
1192
+ validateString(path, 'path');
1193
+
1194
+ if (path.length === 0) {
1195
+ return '.';
1196
+ }
1197
+
1198
+ const isAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;
1199
+ const trailingSeparator =
1200
+ path.charCodeAt(path.length - 1) === CHAR_FORWARD_SLASH;
1201
+
1202
+ // Normalize the path
1203
+ path = normalizeString(path, !isAbsolute, '/', isPosixPathSeparator);
1204
+
1205
+ if (path.length === 0) {
1206
+ if (isAbsolute) {
1207
+ return '/';
1208
+ }
1209
+ return trailingSeparator ? './' : '.';
1210
+ }
1211
+ if (trailingSeparator) {
1212
+ path += '/';
1213
+ }
1214
+
1215
+ return isAbsolute ? `/${path}` : path;
1216
+ },
1217
+
1218
+ isAbsolute(path: string): boolean {
1219
+ validateString(path, 'path');
1220
+ return path.length > 0 && path.charCodeAt(0) === CHAR_FORWARD_SLASH;
1221
+ },
1222
+
1223
+ join(...paths: string[]): string {
1224
+ if (paths.length === 0) {
1225
+ return '.';
1226
+ }
1227
+
1228
+ const path = [];
1229
+ for (let i = 0; i < paths.length; ++i) {
1230
+ const arg = paths[i];
1231
+ validateString(arg, 'path');
1232
+ if (arg.length > 0) {
1233
+ path.push(arg);
1234
+ }
1235
+ }
1236
+
1237
+ if (path.length === 0) {
1238
+ return '.';
1239
+ }
1240
+
1241
+ return posix.normalize(path.join('/'));
1242
+ },
1243
+
1244
+ relative(from: string, to: string): string {
1245
+ validateString(from, 'from');
1246
+ validateString(to, 'to');
1247
+
1248
+ if (from === to) {
1249
+ return '';
1250
+ }
1251
+
1252
+ // Trim leading forward slashes.
1253
+ from = posix.resolve(from);
1254
+ to = posix.resolve(to);
1255
+
1256
+ if (from === to) {
1257
+ return '';
1258
+ }
1259
+
1260
+ const fromStart = 1;
1261
+ const fromEnd = from.length;
1262
+ const fromLen = fromEnd - fromStart;
1263
+ const toStart = 1;
1264
+ const toLen = to.length - toStart;
1265
+
1266
+ // Compare paths to find the longest common path from root
1267
+ const length = (fromLen < toLen ? fromLen : toLen);
1268
+ let lastCommonSep = -1;
1269
+ let i = 0;
1270
+ for (; i < length; i++) {
1271
+ const fromCode = from.charCodeAt(fromStart + i);
1272
+ if (fromCode !== to.charCodeAt(toStart + i)) {
1273
+ break;
1274
+ } else if (fromCode === CHAR_FORWARD_SLASH) {
1275
+ lastCommonSep = i;
1276
+ }
1277
+ }
1278
+ if (i === length) {
1279
+ if (toLen > length) {
1280
+ if (to.charCodeAt(toStart + i) === CHAR_FORWARD_SLASH) {
1281
+ // We get here if `from` is the exact base path for `to`.
1282
+ // For example: from='/foo/bar'; to='/foo/bar/baz'
1283
+ return to.slice(toStart + i + 1);
1284
+ }
1285
+ if (i === 0) {
1286
+ // We get here if `from` is the root
1287
+ // For example: from='/'; to='/foo'
1288
+ return to.slice(toStart + i);
1289
+ }
1290
+ } else if (fromLen > length) {
1291
+ if (from.charCodeAt(fromStart + i) === CHAR_FORWARD_SLASH) {
1292
+ // We get here if `to` is the exact base path for `from`.
1293
+ // For example: from='/foo/bar/baz'; to='/foo/bar'
1294
+ lastCommonSep = i;
1295
+ } else if (i === 0) {
1296
+ // We get here if `to` is the root.
1297
+ // For example: from='/foo/bar'; to='/'
1298
+ lastCommonSep = 0;
1299
+ }
1300
+ }
1301
+ }
1302
+
1303
+ let out = '';
1304
+ // Generate the relative path based on the path difference between `to`
1305
+ // and `from`.
1306
+ for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
1307
+ if (i === fromEnd || from.charCodeAt(i) === CHAR_FORWARD_SLASH) {
1308
+ out += out.length === 0 ? '..' : '/..';
1309
+ }
1310
+ }
1311
+
1312
+ // Lastly, append the rest of the destination (`to`) path that comes after
1313
+ // the common path parts.
1314
+ return `${out}${to.slice(toStart + lastCommonSep)}`;
1315
+ },
1316
+
1317
+ toNamespacedPath(path: string): string {
1318
+ // Non-op on posix systems
1319
+ return path;
1320
+ },
1321
+
1322
+ dirname(path: string): string {
1323
+ validateString(path, 'path');
1324
+ if (path.length === 0) {
1325
+ return '.';
1326
+ }
1327
+ const hasRoot = path.charCodeAt(0) === CHAR_FORWARD_SLASH;
1328
+ let end = -1;
1329
+ let matchedSlash = true;
1330
+ for (let i = path.length - 1; i >= 1; --i) {
1331
+ if (path.charCodeAt(i) === CHAR_FORWARD_SLASH) {
1332
+ if (!matchedSlash) {
1333
+ end = i;
1334
+ break;
1335
+ }
1336
+ } else {
1337
+ // We saw the first non-path separator
1338
+ matchedSlash = false;
1339
+ }
1340
+ }
1341
+
1342
+ if (end === -1) {
1343
+ return hasRoot ? '/' : '.';
1344
+ }
1345
+ if (hasRoot && end === 1) {
1346
+ return '//';
1347
+ }
1348
+ return path.slice(0, end);
1349
+ },
1350
+
1351
+ basename(path: string, suffix?: string): string {
1352
+ if (suffix !== undefined) {
1353
+ validateString(suffix, 'suffix');
1354
+ }
1355
+ validateString(path, 'path');
1356
+
1357
+ let start = 0;
1358
+ let end = -1;
1359
+ let matchedSlash = true;
1360
+ let i;
1361
+
1362
+ if (suffix !== undefined && suffix.length > 0 && suffix.length <= path.length) {
1363
+ if (suffix === path) {
1364
+ return '';
1365
+ }
1366
+ let extIdx = suffix.length - 1;
1367
+ let firstNonSlashEnd = -1;
1368
+ for (i = path.length - 1; i >= 0; --i) {
1369
+ const code = path.charCodeAt(i);
1370
+ if (code === CHAR_FORWARD_SLASH) {
1371
+ // If we reached a path separator that was not part of a set of path
1372
+ // separators at the end of the string, stop now
1373
+ if (!matchedSlash) {
1374
+ start = i + 1;
1375
+ break;
1376
+ }
1377
+ } else {
1378
+ if (firstNonSlashEnd === -1) {
1379
+ // We saw the first non-path separator, remember this index in case
1380
+ // we need it if the extension ends up not matching
1381
+ matchedSlash = false;
1382
+ firstNonSlashEnd = i + 1;
1383
+ }
1384
+ if (extIdx >= 0) {
1385
+ // Try to match the explicit extension
1386
+ if (code === suffix.charCodeAt(extIdx)) {
1387
+ if (--extIdx === -1) {
1388
+ // We matched the extension, so mark this as the end of our path
1389
+ // component
1390
+ end = i;
1391
+ }
1392
+ } else {
1393
+ // Extension does not match, so our result is the entire path
1394
+ // component
1395
+ extIdx = -1;
1396
+ end = firstNonSlashEnd;
1397
+ }
1398
+ }
1399
+ }
1400
+ }
1401
+
1402
+ if (start === end) {
1403
+ end = firstNonSlashEnd;
1404
+ } else if (end === -1) {
1405
+ end = path.length;
1406
+ }
1407
+ return path.slice(start, end);
1408
+ }
1409
+ for (i = path.length - 1; i >= 0; --i) {
1410
+ if (path.charCodeAt(i) === CHAR_FORWARD_SLASH) {
1411
+ // If we reached a path separator that was not part of a set of path
1412
+ // separators at the end of the string, stop now
1413
+ if (!matchedSlash) {
1414
+ start = i + 1;
1415
+ break;
1416
+ }
1417
+ } else if (end === -1) {
1418
+ // We saw the first non-path separator, mark this as the end of our
1419
+ // path component
1420
+ matchedSlash = false;
1421
+ end = i + 1;
1422
+ }
1423
+ }
1424
+
1425
+ if (end === -1) {
1426
+ return '';
1427
+ }
1428
+ return path.slice(start, end);
1429
+ },
1430
+
1431
+ extname(path: string): string {
1432
+ validateString(path, 'path');
1433
+ let startDot = -1;
1434
+ let startPart = 0;
1435
+ let end = -1;
1436
+ let matchedSlash = true;
1437
+ // Track the state of characters (if any) we see before our first dot and
1438
+ // after any path separator we find
1439
+ let preDotState = 0;
1440
+ for (let i = path.length - 1; i >= 0; --i) {
1441
+ const char = path[i];
1442
+ if (char === '/') {
1443
+ // If we reached a path separator that was not part of a set of path
1444
+ // separators at the end of the string, stop now
1445
+ if (!matchedSlash) {
1446
+ startPart = i + 1;
1447
+ break;
1448
+ }
1449
+ continue;
1450
+ }
1451
+ if (end === -1) {
1452
+ // We saw the first non-path separator, mark this as the end of our
1453
+ // extension
1454
+ matchedSlash = false;
1455
+ end = i + 1;
1456
+ }
1457
+ if (char === '.') {
1458
+ // If this is our first dot, mark it as the start of our extension
1459
+ if (startDot === -1) {
1460
+ startDot = i;
1461
+ }
1462
+ else if (preDotState !== 1) {
1463
+ preDotState = 1;
1464
+ }
1465
+ } else if (startDot !== -1) {
1466
+ // We saw a non-dot and non-path separator before our dot, so we should
1467
+ // have a good chance at having a non-empty extension
1468
+ preDotState = -1;
1469
+ }
1470
+ }
1471
+
1472
+ if (startDot === -1 ||
1473
+ end === -1 ||
1474
+ // We saw a non-dot character immediately before the dot
1475
+ preDotState === 0 ||
1476
+ // The (right-most) trimmed path component is exactly '..'
1477
+ (preDotState === 1 &&
1478
+ startDot === end - 1 &&
1479
+ startDot === startPart + 1)) {
1480
+ return '';
1481
+ }
1482
+ return path.slice(startDot, end);
1483
+ },
1484
+
1485
+ format: _format.bind(null, '/'),
1486
+
1487
+ parse(path: string): ParsedPath {
1488
+ validateString(path, 'path');
1489
+
1490
+ const ret = { root: '', dir: '', base: '', ext: '', name: '' };
1491
+ if (path.length === 0) {
1492
+ return ret;
1493
+ }
1494
+ const isAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;
1495
+ let start;
1496
+ if (isAbsolute) {
1497
+ ret.root = '/';
1498
+ start = 1;
1499
+ } else {
1500
+ start = 0;
1501
+ }
1502
+ let startDot = -1;
1503
+ let startPart = 0;
1504
+ let end = -1;
1505
+ let matchedSlash = true;
1506
+ let i = path.length - 1;
1507
+
1508
+ // Track the state of characters (if any) we see before our first dot and
1509
+ // after any path separator we find
1510
+ let preDotState = 0;
1511
+
1512
+ // Get non-dir info
1513
+ for (; i >= start; --i) {
1514
+ const code = path.charCodeAt(i);
1515
+ if (code === CHAR_FORWARD_SLASH) {
1516
+ // If we reached a path separator that was not part of a set of path
1517
+ // separators at the end of the string, stop now
1518
+ if (!matchedSlash) {
1519
+ startPart = i + 1;
1520
+ break;
1521
+ }
1522
+ continue;
1523
+ }
1524
+ if (end === -1) {
1525
+ // We saw the first non-path separator, mark this as the end of our
1526
+ // extension
1527
+ matchedSlash = false;
1528
+ end = i + 1;
1529
+ }
1530
+ if (code === CHAR_DOT) {
1531
+ // If this is our first dot, mark it as the start of our extension
1532
+ if (startDot === -1) {
1533
+ startDot = i;
1534
+ } else if (preDotState !== 1) {
1535
+ preDotState = 1;
1536
+ }
1537
+ } else if (startDot !== -1) {
1538
+ // We saw a non-dot and non-path separator before our dot, so we should
1539
+ // have a good chance at having a non-empty extension
1540
+ preDotState = -1;
1541
+ }
1542
+ }
1543
+
1544
+ if (end !== -1) {
1545
+ const start = startPart === 0 && isAbsolute ? 1 : startPart;
1546
+ if (startDot === -1 ||
1547
+ // We saw a non-dot character immediately before the dot
1548
+ preDotState === 0 ||
1549
+ // The (right-most) trimmed path component is exactly '..'
1550
+ (preDotState === 1 &&
1551
+ startDot === end - 1 &&
1552
+ startDot === startPart + 1)) {
1553
+ ret.base = ret.name = path.slice(start, end);
1554
+ } else {
1555
+ ret.name = path.slice(start, startDot);
1556
+ ret.base = path.slice(start, end);
1557
+ ret.ext = path.slice(startDot, end);
1558
+ }
1559
+ }
1560
+
1561
+ if (startPart > 0) {
1562
+ ret.dir = path.slice(0, startPart - 1);
1563
+ } else if (isAbsolute) {
1564
+ ret.dir = '/';
1565
+ }
1566
+
1567
+ return ret;
1568
+ },
1569
+
1570
+ sep: '/',
1571
+ delimiter: ':',
1572
+ win32: null,
1573
+ posix: null
1574
+ };
1575
+
1576
+ posix.win32 = win32.win32 = win32;
1577
+ posix.posix = win32.posix = posix;
1578
+
1579
+ export const normalize = (platformIsWin32 ? win32.normalize : posix.normalize);
1580
+ export const isAbsolute = (platformIsWin32 ? win32.isAbsolute : posix.isAbsolute);
1581
+ export const join = (platformIsWin32 ? win32.join : posix.join);
1582
+ export const resolve = (platformIsWin32 ? win32.resolve : posix.resolve);
1583
+ export const relative = (platformIsWin32 ? win32.relative : posix.relative);
1584
+ export const dirname = (platformIsWin32 ? win32.dirname : posix.dirname);
1585
+ export const basename = (platformIsWin32 ? win32.basename : posix.basename);
1586
+ export const extname = (platformIsWin32 ? win32.extname : posix.extname);
1587
+ export const format = (platformIsWin32 ? win32.format : posix.format);
1588
+ export const parse = (platformIsWin32 ? win32.parse : posix.parse);
1589
+ export const toNamespacedPath = (platformIsWin32 ? win32.toNamespacedPath : posix.toNamespacedPath);
1590
+ export const sep = (platformIsWin32 ? win32.sep : posix.sep);
1591
+ export const delimiter = (platformIsWin32 ? win32.delimiter : posix.delimiter);