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