@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.
- package/LICENSE.txt +21 -0
- package/README.md +13 -0
- package/dist/src/_internal/extension/byok/node/openAIEndpoint.d.ts +32 -0
- package/dist/src/_internal/extension/byok/node/openAIEndpoint.d.ts.map +1 -0
- package/dist/src/_internal/extension/byok/node/openAIEndpoint.js +159 -0
- package/dist/src/_internal/extension/byok/node/openAIEndpoint.js.map +1 -0
- package/dist/src/_internal/extension/common/constants.d.ts +37 -0
- package/dist/src/_internal/extension/common/constants.d.ts.map +1 -0
- package/dist/src/_internal/extension/common/constants.js +59 -0
- package/dist/src/_internal/extension/common/constants.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/delayer.d.ts +24 -0
- package/dist/src/_internal/extension/inlineEdits/common/delayer.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/delayer.js +100 -0
- package/dist/src/_internal/extension/inlineEdits/common/delayer.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/editRebase.d.ts +19 -0
- package/dist/src/_internal/extension/inlineEdits/common/editRebase.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/editRebase.js +275 -0
- package/dist/src/_internal/extension/inlineEdits/common/editRebase.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.d.ts +16 -0
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.js +147 -0
- package/dist/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.d.ts +47 -0
- package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.js +189 -0
- package/dist/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.d.ts +15 -0
- package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.js +137 -0
- package/dist/src/_internal/extension/inlineEdits/common/rejectionCollector.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.d.ts +18 -0
- package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.js +156 -0
- package/dist/src/_internal/extension/inlineEdits/node/debugRecorder.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/importFiltering.d.ts +7 -0
- package/dist/src/_internal/extension/inlineEdits/node/importFiltering.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/importFiltering.js +24 -0
- package/dist/src/_internal/extension/inlineEdits/node/importFiltering.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.d.ts +8 -0
- package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.js +7 -0
- package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts +47 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js +230 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts +73 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js +629 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.d.ts +241 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js +680 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.d.ts +38 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.d.ts.map +1 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.js +16 -0
- package/dist/src/_internal/extension/inlineEdits/node/nextEditResult.js.map +1 -0
- package/dist/src/_internal/extension/prompt/common/importStatement.d.ts +2 -0
- package/dist/src/_internal/extension/prompt/common/importStatement.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompt/common/importStatement.js +28 -0
- package/dist/src/_internal/extension/prompt/common/importStatement.js.map +1 -0
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts +62 -0
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +639 -0
- package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.d.ts +42 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.js +125 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.js.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.d.ts +60 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.js +416 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.js.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.d.ts +30 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.js +64 -0
- package/dist/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.js.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/visualization.d.ts +26 -0
- package/dist/src/_internal/extension/prompts/node/inline/visualization.d.ts.map +1 -0
- package/dist/src/_internal/extension/prompts/node/inline/visualization.js +41 -0
- package/dist/src/_internal/extension/prompts/node/inline/visualization.js.map +1 -0
- package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts +51 -0
- package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/common/promptCrafting.js +517 -0
- package/dist/src/_internal/extension/xtab/common/promptCrafting.js.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.d.ts +23 -0
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.js +96 -0
- package/dist/src/_internal/extension/xtab/node/xtabEndpoint.js.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts +75 -0
- package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js +796 -0
- package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabUtils.d.ts +8 -0
- package/dist/src/_internal/extension/xtab/node/xtabUtils.d.ts.map +1 -0
- package/dist/src/_internal/extension/xtab/node/xtabUtils.js +55 -0
- package/dist/src/_internal/extension/xtab/node/xtabUtils.js.map +1 -0
- package/dist/src/_internal/platform/authentication/common/authentication.d.ts +145 -0
- package/dist/src/_internal/platform/authentication/common/authentication.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/common/authentication.js +156 -0
- package/dist/src/_internal/platform/authentication/common/authentication.js.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts +190 -0
- package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotToken.js +181 -0
- package/dist/src/_internal/platform/authentication/common/copilotToken.js.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenManager.d.ts +50 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenManager.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenManager.js +14 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenManager.js.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenStore.d.ts +23 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenStore.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenStore.js +30 -0
- package/dist/src/_internal/platform/authentication/common/copilotTokenStore.js.map +1 -0
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.d.ts +23 -0
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.js +92 -0
- package/dist/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.js.map +1 -0
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.d.ts +80 -0
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.d.ts.map +1 -0
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js +274 -0
- package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatMLFetcher.d.ts +48 -0
- package/dist/src/_internal/platform/chat/common/chatMLFetcher.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatMLFetcher.js +77 -0
- package/dist/src/_internal/platform/chat/common/chatMLFetcher.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaService.d.ts +54 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaService.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaService.js +10 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaService.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.d.ts +16 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.js +99 -0
- package/dist/src/_internal/platform/chat/common/chatQuotaServiceImpl.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/commonTypes.d.ts +264 -0
- package/dist/src/_internal/platform/chat/common/commonTypes.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/commonTypes.js +299 -0
- package/dist/src/_internal/platform/chat/common/commonTypes.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/conversationOptions.d.ts +9 -0
- package/dist/src/_internal/platform/chat/common/conversationOptions.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/conversationOptions.js +10 -0
- package/dist/src/_internal/platform/chat/common/conversationOptions.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/globalStringUtils.d.ts +10 -0
- package/dist/src/_internal/platform/chat/common/globalStringUtils.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/globalStringUtils.js +52 -0
- package/dist/src/_internal/platform/chat/common/globalStringUtils.js.map +1 -0
- package/dist/src/_internal/platform/chat/common/interactionService.d.ts +18 -0
- package/dist/src/_internal/platform/chat/common/interactionService.d.ts.map +1 -0
- package/dist/src/_internal/platform/chat/common/interactionService.js +28 -0
- package/dist/src/_internal/platform/chat/common/interactionService.js.map +1 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +513 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.js +529 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -0
- package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.d.ts +15 -0
- package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.d.ts.map +1 -0
- package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.js +33 -0
- package/dist/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.js.map +1 -0
- package/dist/src/_internal/platform/configuration/common/jsonSchema.d.ts +94 -0
- package/dist/src/_internal/platform/configuration/common/jsonSchema.d.ts.map +1 -0
- package/dist/src/_internal/platform/configuration/common/jsonSchema.js +36 -0
- package/dist/src/_internal/platform/configuration/common/jsonSchema.js.map +1 -0
- package/dist/src/_internal/platform/configuration/common/validator.d.ts +35 -0
- package/dist/src/_internal/platform/configuration/common/validator.d.ts.map +1 -0
- package/dist/src/_internal/platform/configuration/common/validator.js +195 -0
- package/dist/src/_internal/platform/configuration/common/validator.js.map +1 -0
- package/dist/src/_internal/platform/diff/common/diffService.d.ts +27 -0
- package/dist/src/_internal/platform/diff/common/diffService.d.ts.map +1 -0
- package/dist/src/_internal/platform/diff/common/diffService.js +10 -0
- package/dist/src/_internal/platform/diff/common/diffService.js.map +1 -0
- package/dist/src/_internal/platform/diff/common/diffWorker.d.ts +34 -0
- package/dist/src/_internal/platform/diff/common/diffWorker.d.ts.map +1 -0
- package/dist/src/_internal/platform/diff/common/diffWorker.js +44 -0
- package/dist/src/_internal/platform/diff/common/diffWorker.js.map +1 -0
- package/dist/src/_internal/platform/diff/node/diffServiceImpl.d.ts +14 -0
- package/dist/src/_internal/platform/diff/node/diffServiceImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/diff/node/diffServiceImpl.js +95 -0
- package/dist/src/_internal/platform/diff/node/diffServiceImpl.js.map +1 -0
- package/dist/src/_internal/platform/editing/common/abstractText.d.ts +58 -0
- package/dist/src/_internal/platform/editing/common/abstractText.d.ts.map +1 -0
- package/dist/src/_internal/platform/editing/common/abstractText.js +129 -0
- package/dist/src/_internal/platform/editing/common/abstractText.js.map +1 -0
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.d.ts +38 -0
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.d.ts.map +1 -0
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.js +96 -0
- package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.js.map +1 -0
- package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.d.ts +28 -0
- package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.d.ts.map +1 -0
- package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.js +158 -0
- package/dist/src/_internal/platform/editing/common/positionOffsetTransformer.js.map +1 -0
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.d.ts +55 -0
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.d.ts.map +1 -0
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.js +195 -0
- package/dist/src/_internal/platform/editing/common/textDocumentSnapshot.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/capiClient.d.ts +15 -0
- package/dist/src/_internal/platform/endpoint/common/capiClient.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/capiClient.js +25 -0
- package/dist/src/_internal/platform/endpoint/common/capiClient.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts +55 -0
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js +111 -0
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/domainService.d.ts +18 -0
- package/dist/src/_internal/platform/endpoint/common/domainService.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/domainService.js +12 -0
- package/dist/src/_internal/platform/endpoint/common/domainService.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts +83 -0
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.js +23 -0
- package/dist/src/_internal/platform/endpoint/common/endpointProvider.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.d.ts +7 -0
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.js +15 -0
- package/dist/src/_internal/platform/endpoint/common/endpointTypes.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/licenseAgreement.d.ts +7 -0
- package/dist/src/_internal/platform/endpoint/common/licenseAgreement.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/licenseAgreement.js +14 -0
- package/dist/src/_internal/platform/endpoint/common/licenseAgreement.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.d.ts +31 -0
- package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.js +73 -0
- package/dist/src/_internal/platform/endpoint/common/statefulMarkerContainer.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.d.ts +17 -0
- package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.js +37 -0
- package/dist/src/_internal/platform/endpoint/common/thinkingDataContainer.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/capiClientImpl.d.ts +7 -0
- package/dist/src/_internal/platform/endpoint/node/capiClientImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/capiClientImpl.js +30 -0
- package/dist/src/_internal/platform/endpoint/node/capiClientImpl.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.d.ts +90 -0
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js +349 -0
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.d.ts +19 -0
- package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.js +80 -0
- package/dist/src/_internal/platform/endpoint/node/domainServiceImpl.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.d.ts +4 -0
- package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.js +39 -0
- package/dist/src/_internal/platform/endpoint/node/proxyXtabEndpoint.js.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts +13 -0
- package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts.map +1 -0
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js +308 -0
- package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -0
- package/dist/src/_internal/platform/env/common/envService.d.ts +84 -0
- package/dist/src/_internal/platform/env/common/envService.d.ts.map +1 -0
- package/dist/src/_internal/platform/env/common/envService.js +64 -0
- package/dist/src/_internal/platform/env/common/envService.js.map +1 -0
- package/dist/src/_internal/platform/env/common/nullEnvService.d.ts +21 -0
- package/dist/src/_internal/platform/env/common/nullEnvService.d.ts.map +1 -0
- package/dist/src/_internal/platform/env/common/nullEnvService.js +57 -0
- package/dist/src/_internal/platform/env/common/nullEnvService.js.map +1 -0
- package/dist/src/_internal/platform/env/common/packagejson.d.ts +42 -0
- package/dist/src/_internal/platform/env/common/packagejson.d.ts.map +1 -0
- package/dist/src/_internal/platform/env/common/packagejson.js +12 -0
- package/dist/src/_internal/platform/env/common/packagejson.js.map +1 -0
- package/dist/src/_internal/platform/git/common/gitExtensionService.d.ts +12 -0
- package/dist/src/_internal/platform/git/common/gitExtensionService.d.ts.map +1 -0
- package/dist/src/_internal/platform/git/common/gitExtensionService.js +10 -0
- package/dist/src/_internal/platform/git/common/gitExtensionService.js.map +1 -0
- package/dist/src/_internal/platform/git/common/nullGitExtensionService.d.ts +11 -0
- package/dist/src/_internal/platform/git/common/nullGitExtensionService.d.ts.map +1 -0
- package/dist/src/_internal/platform/git/common/nullGitExtensionService.js +19 -0
- package/dist/src/_internal/platform/git/common/nullGitExtensionService.js.map +1 -0
- package/dist/src/_internal/platform/github/common/githubAPI.d.ts +7 -0
- package/dist/src/_internal/platform/github/common/githubAPI.d.ts.map +1 -0
- package/dist/src/_internal/platform/github/common/githubAPI.js +42 -0
- package/dist/src/_internal/platform/github/common/githubAPI.js.map +1 -0
- package/dist/src/_internal/platform/github/common/githubService.d.ts +63 -0
- package/dist/src/_internal/platform/github/common/githubService.d.ts.map +1 -0
- package/dist/src/_internal/platform/github/common/githubService.js +37 -0
- package/dist/src/_internal/platform/github/common/githubService.js.map +1 -0
- package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.d.ts +9 -0
- package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.js +21 -0
- package/dist/src/_internal/platform/github/common/nullOctokitServiceImpl.js.map +1 -0
- package/dist/src/_internal/platform/ignore/common/ignoreService.d.ts +30 -0
- package/dist/src/_internal/platform/ignore/common/ignoreService.d.ts.map +1 -0
- package/dist/src/_internal/platform/ignore/common/ignoreService.js +73 -0
- package/dist/src/_internal/platform/ignore/common/ignoreService.js.map +1 -0
- package/dist/src/_internal/platform/inlineCompletions/common/api.d.ts +162 -0
- package/dist/src/_internal/platform/inlineCompletions/common/api.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineCompletions/common/api.js +3 -0
- package/dist/src/_internal/platform/inlineCompletions/common/api.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.d.ts +14 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.js +31 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.d.ts +20 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.js +44 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/documentId.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.d.ts +73 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.js +142 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/edit.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.d.ts +14 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.js +59 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.d.ts +6 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.js +16 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.d.ts +44 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.js +57 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.d.ts +8 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.js +16 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageId.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.d.ts +36 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.js +68 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/permutation.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.d.ts +16 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.js +42 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.d.ts +24 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.js +62 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.d.ts +3 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.js +125 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.d.ts +46 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.js +171 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.d.ts +9 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.js +32 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts +50 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js +54 -0
- package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.d.ts +5 -0
- package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.js +14 -0
- package/dist/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/editReason.d.ts +98 -0
- package/dist/src/_internal/platform/inlineEdits/common/editReason.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/editReason.js +111 -0
- package/dist/src/_internal/platform/inlineEdits/common/editReason.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.d.ts +132 -0
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.js +398 -0
- package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableGit.d.ts +11 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableGit.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableGit.js +50 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableGit.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.d.ts +90 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.js +169 -0
- package/dist/src/_internal/platform/inlineEdits/common/observableWorkspace.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.d.ts +34 -0
- package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.js +185 -0
- package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts +223 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js +315 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.d.ts +14 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.js +53 -0
- package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/observable.d.ts +16 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/observable.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/observable.js +38 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/observable.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.d.ts +3 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.js +26 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/utils.d.ts +19 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/utils.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/utils.js +44 -0
- package/dist/src/_internal/platform/inlineEdits/common/utils/utils.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.d.ts +45 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.js +49 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.d.ts +17 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.js +300 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.js.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.d.ts +37 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.d.ts.map +1 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.js +116 -0
- package/dist/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.js.map +1 -0
- package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.d.ts +13 -0
- package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.d.ts.map +1 -0
- package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.js +10 -0
- package/dist/src/_internal/platform/languageContextProvider/common/languageContextProviderService.js.map +1 -0
- package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.d.ts +13 -0
- package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.d.ts.map +1 -0
- package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.js +31 -0
- package/dist/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.js.map +1 -0
- package/dist/src/_internal/platform/languageServer/common/languageContextService.d.ts +146 -0
- package/dist/src/_internal/platform/languageServer/common/languageContextService.d.ts.map +1 -0
- package/dist/src/_internal/platform/languageServer/common/languageContextService.js +42 -0
- package/dist/src/_internal/platform/languageServer/common/languageContextService.js.map +1 -0
- package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.d.ts +26 -0
- package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.d.ts.map +1 -0
- package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.js +53 -0
- package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.js.map +1 -0
- package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.d.ts +11 -0
- package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.d.ts.map +1 -0
- package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.js +30 -0
- package/dist/src/_internal/platform/languages/common/testLanguageDiagnosticsService.js.map +1 -0
- package/dist/src/_internal/platform/log/common/logService.d.ts +100 -0
- package/dist/src/_internal/platform/log/common/logService.d.ts.map +1 -0
- package/dist/src/_internal/platform/log/common/logService.js +178 -0
- package/dist/src/_internal/platform/log/common/logService.js.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.d.ts +69 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.d.ts.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.js +23 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsAPI.js.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.d.ts +80 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.d.ts.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.js +77 -0
- package/dist/src/_internal/platform/nesFetch/common/completionsFetchService.js.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/responseStream.d.ts +26 -0
- package/dist/src/_internal/platform/nesFetch/common/responseStream.d.ts.map +1 -0
- package/dist/src/_internal/platform/nesFetch/common/responseStream.js +125 -0
- package/dist/src/_internal/platform/nesFetch/common/responseStream.js.map +1 -0
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.d.ts +27 -0
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.js +222 -0
- package/dist/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.js.map +1 -0
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.d.ts +10 -0
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.d.ts.map +1 -0
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.js +86 -0
- package/dist/src/_internal/platform/nesFetch/node/streamTransformer.js.map +1 -0
- package/dist/src/_internal/platform/networking/common/fetch.d.ts +256 -0
- package/dist/src/_internal/platform/networking/common/fetch.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/common/fetch.js +51 -0
- package/dist/src/_internal/platform/networking/common/fetch.js.map +1 -0
- package/dist/src/_internal/platform/networking/common/fetcherService.d.ts +53 -0
- package/dist/src/_internal/platform/networking/common/fetcherService.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/common/fetcherService.js +46 -0
- package/dist/src/_internal/platform/networking/common/fetcherService.js.map +1 -0
- package/dist/src/_internal/platform/networking/common/networking.d.ts +213 -0
- package/dist/src/_internal/platform/networking/common/networking.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/common/networking.js +148 -0
- package/dist/src/_internal/platform/networking/common/networking.js.map +1 -0
- package/dist/src/_internal/platform/networking/common/openai.d.ts +202 -0
- package/dist/src/_internal/platform/networking/common/openai.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/common/openai.js +144 -0
- package/dist/src/_internal/platform/networking/common/openai.js.map +1 -0
- package/dist/src/_internal/platform/networking/node/chatStream.d.ts +9 -0
- package/dist/src/_internal/platform/networking/node/chatStream.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/node/chatStream.js +117 -0
- package/dist/src/_internal/platform/networking/node/chatStream.js.map +1 -0
- package/dist/src/_internal/platform/networking/node/stream.d.ts +145 -0
- package/dist/src/_internal/platform/networking/node/stream.d.ts.map +1 -0
- package/dist/src/_internal/platform/networking/node/stream.js +595 -0
- package/dist/src/_internal/platform/networking/node/stream.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContent.d.ts +28 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContent.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContent.js +85 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContent.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.d.ts +6 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.js +14 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentFormat.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.d.ts +31 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.js +14 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.d.ts +15 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.js +232 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.json.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.d.ts +16 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.js +231 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.text.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.d.ts +13 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.js +191 -0
- package/dist/src/_internal/platform/notebook/common/alternativeContentProvider.xml.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.d.ts +34 -0
- package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.js +123 -0
- package/dist/src/_internal/platform/notebook/common/alternativeNotebookDocument.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/helpers.d.ts +79 -0
- package/dist/src/_internal/platform/notebook/common/helpers.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/helpers.js +157 -0
- package/dist/src/_internal/platform/notebook/common/helpers.js.map +1 -0
- package/dist/src/_internal/platform/notebook/common/notebookService.d.ts +34 -0
- package/dist/src/_internal/platform/notebook/common/notebookService.d.ts.map +1 -0
- package/dist/src/_internal/platform/notebook/common/notebookService.js +10 -0
- package/dist/src/_internal/platform/notebook/common/notebookService.js.map +1 -0
- package/dist/src/_internal/platform/openai/node/fetch.d.ts +77 -0
- package/dist/src/_internal/platform/openai/node/fetch.d.ts.map +1 -0
- package/dist/src/_internal/platform/openai/node/fetch.js +408 -0
- package/dist/src/_internal/platform/openai/node/fetch.js.map +1 -0
- package/dist/src/_internal/platform/parser/node/nodes.d.ts +93 -0
- package/dist/src/_internal/platform/parser/node/nodes.d.ts.map +1 -0
- package/dist/src/_internal/platform/parser/node/nodes.js +133 -0
- package/dist/src/_internal/platform/parser/node/nodes.js.map +1 -0
- package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.d.ts +14 -0
- package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.d.ts.map +1 -0
- package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.js +28 -0
- package/dist/src/_internal/platform/requestLogger/node/nullRequestLogger.js.map +1 -0
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.d.ts +198 -0
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.d.ts.map +1 -0
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.js +177 -0
- package/dist/src/_internal/platform/requestLogger/node/requestLogger.js.map +1 -0
- package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.d.ts +12 -0
- package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.d.ts.map +1 -0
- package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.js +19 -0
- package/dist/src/_internal/platform/simulationTestContext/common/simulationTestContext.js.map +1 -0
- package/dist/src/_internal/platform/snippy/common/snippyService.d.ts +13 -0
- package/dist/src/_internal/platform/snippy/common/snippyService.d.ts.map +1 -0
- package/dist/src/_internal/platform/snippy/common/snippyService.js +16 -0
- package/dist/src/_internal/platform/snippy/common/snippyService.js.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.d.ts +46 -0
- package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.d.ts.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.js +23 -0
- package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.js.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.d.ts +18 -0
- package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.d.ts.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.js +50 -0
- package/dist/src/_internal/platform/telemetry/common/nullTelemetryService.js.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/telemetry.d.ts +145 -0
- package/dist/src/_internal/platform/telemetry/common/telemetry.d.ts.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/telemetry.js +87 -0
- package/dist/src/_internal/platform/telemetry/common/telemetry.js.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/telemetryData.d.ts +60 -0
- package/dist/src/_internal/platform/telemetry/common/telemetryData.d.ts.map +1 -0
- package/dist/src/_internal/platform/telemetry/common/telemetryData.js +169 -0
- package/dist/src/_internal/platform/telemetry/common/telemetryData.js.map +1 -0
- package/dist/src/_internal/platform/thinking/common/thinking.d.ts +49 -0
- package/dist/src/_internal/platform/thinking/common/thinking.d.ts.map +1 -0
- package/dist/src/_internal/platform/thinking/common/thinking.js +11 -0
- package/dist/src/_internal/platform/thinking/common/thinking.js.map +1 -0
- package/dist/src/_internal/platform/thinking/common/thinkingUtils.d.ts +6 -0
- package/dist/src/_internal/platform/thinking/common/thinkingUtils.d.ts.map +1 -0
- package/dist/src/_internal/platform/thinking/common/thinkingUtils.js +56 -0
- package/dist/src/_internal/platform/thinking/common/thinkingUtils.js.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/cl100k_base.tiktoken +100256 -0
- package/dist/src/_internal/platform/tokenizer/node/o200k_base.tiktoken +199998 -0
- package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.d.ts +3 -0
- package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.d.ts.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.js +24 -0
- package/dist/src/_internal/platform/tokenizer/node/parseTikTokens.js.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.d.ts +17 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.d.ts.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.js +58 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerImpl.js.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.d.ts +2 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.d.ts.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.js +25 -0
- package/dist/src/_internal/platform/tokenizer/node/tikTokenizerWorker.js.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tokenizer.d.ts +32 -0
- package/dist/src/_internal/platform/tokenizer/node/tokenizer.d.ts.map +1 -0
- package/dist/src/_internal/platform/tokenizer/node/tokenizer.js +308 -0
- package/dist/src/_internal/platform/tokenizer/node/tokenizer.js.map +1 -0
- package/dist/src/_internal/platform/workspace/common/workspaceService.d.ts +104 -0
- package/dist/src/_internal/platform/workspace/common/workspaceService.d.ts.map +1 -0
- package/dist/src/_internal/platform/workspace/common/workspaceService.js +176 -0
- package/dist/src/_internal/platform/workspace/common/workspaceService.js.map +1 -0
- package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.d.ts +115 -0
- package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.d.ts.map +1 -0
- package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.js +33 -0
- package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.js.map +1 -0
- package/dist/src/_internal/util/common/anomalyDetection.d.ts +16 -0
- package/dist/src/_internal/util/common/anomalyDetection.d.ts.map +1 -0
- package/dist/src/_internal/util/common/anomalyDetection.js +100 -0
- package/dist/src/_internal/util/common/anomalyDetection.js.map +1 -0
- package/dist/src/_internal/util/common/arrays.d.ts +18 -0
- package/dist/src/_internal/util/common/arrays.d.ts.map +1 -0
- package/dist/src/_internal/util/common/arrays.js +80 -0
- package/dist/src/_internal/util/common/arrays.js.map +1 -0
- package/dist/src/_internal/util/common/async.d.ts +35 -0
- package/dist/src/_internal/util/common/async.d.ts.map +1 -0
- package/dist/src/_internal/util/common/async.js +146 -0
- package/dist/src/_internal/util/common/async.js.map +1 -0
- package/dist/src/_internal/util/common/cache.d.ts +42 -0
- package/dist/src/_internal/util/common/cache.d.ts.map +1 -0
- package/dist/src/_internal/util/common/cache.js +157 -0
- package/dist/src/_internal/util/common/cache.js.map +1 -0
- package/dist/src/_internal/util/common/crypto.d.ts +3 -0
- package/dist/src/_internal/util/common/crypto.d.ts.map +1 -0
- package/dist/src/_internal/util/common/crypto.js +33 -0
- package/dist/src/_internal/util/common/crypto.js.map +1 -0
- package/dist/src/_internal/util/common/errors.d.ts +3 -0
- package/dist/src/_internal/util/common/errors.d.ts.map +1 -0
- package/dist/src/_internal/util/common/errors.js +22 -0
- package/dist/src/_internal/util/common/errors.js.map +1 -0
- package/dist/src/_internal/util/common/imageUtils.d.ts +23 -0
- package/dist/src/_internal/util/common/imageUtils.d.ts.map +1 -0
- package/dist/src/_internal/util/common/imageUtils.js +148 -0
- package/dist/src/_internal/util/common/imageUtils.js.map +1 -0
- package/dist/src/_internal/util/common/languages.d.ts +560 -0
- package/dist/src/_internal/util/common/languages.d.ts.map +1 -0
- package/dist/src/_internal/util/common/languages.js +901 -0
- package/dist/src/_internal/util/common/languages.js.map +1 -0
- package/dist/src/_internal/util/common/notebooks.d.ts +88 -0
- package/dist/src/_internal/util/common/notebooks.d.ts.map +1 -0
- package/dist/src/_internal/util/common/notebooks.js +270 -0
- package/dist/src/_internal/util/common/notebooks.js.map +1 -0
- package/dist/src/_internal/util/common/result.d.ts +32 -0
- package/dist/src/_internal/util/common/result.d.ts.map +1 -0
- package/dist/src/_internal/util/common/result.js +65 -0
- package/dist/src/_internal/util/common/result.js.map +1 -0
- package/dist/src/_internal/util/common/services.d.ts +17 -0
- package/dist/src/_internal/util/common/services.d.ts.map +1 -0
- package/dist/src/_internal/util/common/services.js +32 -0
- package/dist/src/_internal/util/common/services.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts +301 -0
- package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/chatTypes.js +380 -0
- package/dist/src/_internal/util/common/test/shims/chatTypes.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/editing.d.ts +101 -0
- package/dist/src/_internal/util/common/test/shims/editing.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/editing.js +149 -0
- package/dist/src/_internal/util/common/test/shims/editing.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/enums.d.ts +50 -0
- package/dist/src/_internal/util/common/test/shims/enums.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/enums.js +65 -0
- package/dist/src/_internal/util/common/test/shims/enums.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/l10n.d.ts +8 -0
- package/dist/src/_internal/util/common/test/shims/l10n.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/l10n.js +26 -0
- package/dist/src/_internal/util/common/test/shims/l10n.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/newSymbolName.d.ts +13 -0
- package/dist/src/_internal/util/common/test/shims/newSymbolName.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/newSymbolName.js +24 -0
- package/dist/src/_internal/util/common/test/shims/newSymbolName.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/terminal.d.ts +26 -0
- package/dist/src/_internal/util/common/test/shims/terminal.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/terminal.js +34 -0
- package/dist/src/_internal/util/common/test/shims/terminal.js.map +1 -0
- package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts +4 -0
- package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts.map +1 -0
- package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js +113 -0
- package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js.map +1 -0
- package/dist/src/_internal/util/common/time.d.ts +8 -0
- package/dist/src/_internal/util/common/time.d.ts.map +1 -0
- package/dist/src/_internal/util/common/time.js +30 -0
- package/dist/src/_internal/util/common/time.js.map +1 -0
- package/dist/src/_internal/util/common/tokenizer.d.ts +19 -0
- package/dist/src/_internal/util/common/tokenizer.d.ts.map +1 -0
- package/dist/src/_internal/util/common/tokenizer.js +14 -0
- package/dist/src/_internal/util/common/tokenizer.js.map +1 -0
- package/dist/src/_internal/util/common/tracing.d.ts +8 -0
- package/dist/src/_internal/util/common/tracing.d.ts.map +1 -0
- package/dist/src/_internal/util/common/tracing.js +49 -0
- package/dist/src/_internal/util/common/tracing.js.map +1 -0
- package/dist/src/_internal/util/common/types.d.ts +7 -0
- package/dist/src/_internal/util/common/types.d.ts.map +1 -0
- package/dist/src/_internal/util/common/types.js +35 -0
- package/dist/src/_internal/util/common/types.js.map +1 -0
- package/dist/src/_internal/util/common/variableLengthQuantity.d.ts +9 -0
- package/dist/src/_internal/util/common/variableLengthQuantity.d.ts.map +1 -0
- package/dist/src/_internal/util/common/variableLengthQuantity.js +38 -0
- package/dist/src/_internal/util/common/variableLengthQuantity.js.map +1 -0
- package/dist/src/_internal/util/node/worker.d.ts +44 -0
- package/dist/src/_internal/util/node/worker.d.ts.map +1 -0
- package/dist/src/_internal/util/node/worker.js +115 -0
- package/dist/src/_internal/util/node/worker.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/arrays.d.ts +299 -0
- package/dist/src/_internal/util/vs/base/common/arrays.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/arrays.js +836 -0
- package/dist/src/_internal/util/vs/base/common/arrays.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/arraysFind.d.ts +69 -0
- package/dist/src/_internal/util/vs/base/common/arraysFind.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/arraysFind.js +193 -0
- package/dist/src/_internal/util/vs/base/common/arraysFind.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/assert.d.ts +35 -0
- package/dist/src/_internal/util/vs/base/common/assert.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/assert.js +86 -0
- package/dist/src/_internal/util/vs/base/common/assert.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/async.d.ts +764 -0
- package/dist/src/_internal/util/vs/base/common/async.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/async.js +2037 -0
- package/dist/src/_internal/util/vs/base/common/async.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/buffer.d.ts +92 -0
- package/dist/src/_internal/util/vs/base/common/buffer.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/buffer.js +480 -0
- package/dist/src/_internal/util/vs/base/common/buffer.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/cache.d.ts +47 -0
- package/dist/src/_internal/util/vs/base/common/cache.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/cache.js +95 -0
- package/dist/src/_internal/util/vs/base/common/cache.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/cancellation.d.ts +31 -0
- package/dist/src/_internal/util/vs/base/common/cancellation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/cancellation.js +120 -0
- package/dist/src/_internal/util/vs/base/common/cancellation.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/charCode.d.ts +428 -0
- package/dist/src/_internal/util/vs/base/common/charCode.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/charCode.js +4 -0
- package/dist/src/_internal/util/vs/base/common/charCode.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codicons.d.ts +681 -0
- package/dist/src/_internal/util/vs/base/common/codicons.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codicons.js +59 -0
- package/dist/src/_internal/util/vs/base/common/codicons.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.d.ts +607 -0
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.js +619 -0
- package/dist/src/_internal/util/vs/base/common/codiconsLibrary.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codiconsUtil.d.ts +9 -0
- package/dist/src/_internal/util/vs/base/common/codiconsUtil.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/codiconsUtil.js +25 -0
- package/dist/src/_internal/util/vs/base/common/codiconsUtil.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/collections.d.ts +49 -0
- package/dist/src/_internal/util/vs/base/common/collections.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/collections.js +134 -0
- package/dist/src/_internal/util/vs/base/common/collections.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/diff/diff.d.ts +151 -0
- package/dist/src/_internal/util/vs/base/common/diff/diff.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/diff/diff.js +1064 -0
- package/dist/src/_internal/util/vs/base/common/diff/diff.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/diff/diffChange.d.ts +39 -0
- package/dist/src/_internal/util/vs/base/common/diff/diffChange.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/diff/diffChange.js +38 -0
- package/dist/src/_internal/util/vs/base/common/diff/diffChange.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/equals.d.ts +38 -0
- package/dist/src/_internal/util/vs/base/common/equals.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/equals.js +166 -0
- package/dist/src/_internal/util/vs/base/common/equals.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/errors.d.ts +114 -0
- package/dist/src/_internal/util/vs/base/common/errors.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/errors.js +274 -0
- package/dist/src/_internal/util/vs/base/common/errors.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/event.d.ts +567 -0
- package/dist/src/_internal/util/vs/base/common/event.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/event.js +1405 -0
- package/dist/src/_internal/util/vs/base/common/event.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/extpath.d.ts +58 -0
- package/dist/src/_internal/util/vs/base/common/extpath.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/extpath.js +363 -0
- package/dist/src/_internal/util/vs/base/common/extpath.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/filters.d.ts +63 -0
- package/dist/src/_internal/util/vs/base/common/filters.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/filters.js +821 -0
- package/dist/src/_internal/util/vs/base/common/filters.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/functional.d.ts +5 -0
- package/dist/src/_internal/util/vs/base/common/functional.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/functional.js +35 -0
- package/dist/src/_internal/util/vs/base/common/functional.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/glob.d.ts +72 -0
- package/dist/src/_internal/util/vs/base/common/glob.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/glob.js +622 -0
- package/dist/src/_internal/util/vs/base/common/glob.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/hash.d.ts +41 -0
- package/dist/src/_internal/util/vs/base/common/hash.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/hash.js +320 -0
- package/dist/src/_internal/util/vs/base/common/hash.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/htmlContent.d.ts +59 -0
- package/dist/src/_internal/util/vs/base/common/htmlContent.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/htmlContent.js +179 -0
- package/dist/src/_internal/util/vs/base/common/htmlContent.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/iconLabels.d.ts +21 -0
- package/dist/src/_internal/util/vs/base/common/iconLabels.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/iconLabels.js +95 -0
- package/dist/src/_internal/util/vs/base/common/iconLabels.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/iterator.d.ts +33 -0
- package/dist/src/_internal/util/vs/base/common/iterator.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/iterator.js +188 -0
- package/dist/src/_internal/util/vs/base/common/iterator.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/lazy.d.ts +23 -0
- package/dist/src/_internal/util/vs/base/common/lazy.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/lazy.js +57 -0
- package/dist/src/_internal/util/vs/base/common/lazy.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/lifecycle.d.ts +262 -0
- package/dist/src/_internal/util/vs/base/common/lifecycle.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/lifecycle.js +703 -0
- package/dist/src/_internal/util/vs/base/common/lifecycle.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/linkedList.d.ts +16 -0
- package/dist/src/_internal/util/vs/base/common/linkedList.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/linkedList.js +130 -0
- package/dist/src/_internal/util/vs/base/common/linkedList.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/map.d.ts +175 -0
- package/dist/src/_internal/util/vs/base/common/map.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/map.js +796 -0
- package/dist/src/_internal/util/vs/base/common/map.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/marshallingIds.d.ts +29 -0
- package/dist/src/_internal/util/vs/base/common/marshallingIds.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/marshallingIds.js +4 -0
- package/dist/src/_internal/util/vs/base/common/marshallingIds.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/mime.d.ts +19 -0
- package/dist/src/_internal/util/vs/base/common/mime.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/mime.js +127 -0
- package/dist/src/_internal/util/vs/base/common/mime.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.d.ts +10 -0
- package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.js +324 -0
- package/dist/src/_internal/util/vs/base/common/naturalLanguage/korean.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/network.d.ts +189 -0
- package/dist/src/_internal/util/vs/base/common/network.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/network.js +386 -0
- package/dist/src/_internal/util/vs/base/common/network.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/numbers.d.ts +71 -0
- package/dist/src/_internal/util/vs/base/common/numbers.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/numbers.js +148 -0
- package/dist/src/_internal/util/vs/base/common/numbers.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/objects.d.ts +36 -0
- package/dist/src/_internal/util/vs/base/common/objects.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/objects.js +231 -0
- package/dist/src/_internal/util/vs/base/common/objects.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observable.d.ts +2 -0
- package/dist/src/_internal/util/vs/base/common/observable.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observable.js +24 -0
- package/dist/src/_internal/util/vs/base/common/observable.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/base.d.ts +169 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/base.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/base.js +18 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/base.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.d.ts +45 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.js +76 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/changeTracker.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.d.ts +3 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.js +15 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.d.ts +6 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.js +24 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.d.ts +21 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.js +64 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugLocation.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.d.ts +34 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.js +112 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/debugName.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.d.ts +16 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.js +57 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/experimental/utils.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/index.d.ts +25 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/index.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/index.js +101 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/index.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.d.ts +41 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.js +346 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.d.ts +5 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js +68 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.d.ts +44 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js +445 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.d.ts +42 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.js +59 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.d.ts +14 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.js +69 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.d.ts +31 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.js +97 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/logging/logging.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/map.d.ts +19 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/map.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/map.js +65 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/map.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.d.ts +55 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.js +133 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.d.ts +6 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.js +36 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.d.ts +47 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.js +99 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derived.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.d.ts +83 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.js +355 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts +28 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.js +124 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +34 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.js +118 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.d.ts +12 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.js +45 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.d.ts +6 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.js +39 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.d.ts +38 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.js +105 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.d.ts +9 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.js +16 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.d.ts +57 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.js +139 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +53 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.js +212 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/set.d.ts +18 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/set.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/set.js +63 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/set.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.d.ts +28 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.js +116 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/transaction.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.d.ts +76 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.js +113 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/promise.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.d.ts +8 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.js +59 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.d.ts +44 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.js +256 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utils.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.d.ts +11 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.js +85 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.d.ts +11 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.js +26 -0
- package/dist/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/path.d.ts +40 -0
- package/dist/src/_internal/util/vs/base/common/path.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/path.js +1494 -0
- package/dist/src/_internal/util/vs/base/common/path.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/platform.d.ts +100 -0
- package/dist/src/_internal/util/vs/base/common/platform.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/platform.js +254 -0
- package/dist/src/_internal/util/vs/base/common/platform.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/process.d.ts +28 -0
- package/dist/src/_internal/util/vs/base/common/process.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/process.js +69 -0
- package/dist/src/_internal/util/vs/base/common/process.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/resources.d.ts +188 -0
- package/dist/src/_internal/util/vs/base/common/resources.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/resources.js +324 -0
- package/dist/src/_internal/util/vs/base/common/resources.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/sequence.d.ts +20 -0
- package/dist/src/_internal/util/vs/base/common/sequence.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/sequence.js +22 -0
- package/dist/src/_internal/util/vs/base/common/sequence.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/sseParser.d.ts +78 -0
- package/dist/src/_internal/util/vs/base/common/sseParser.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/sseParser.js +175 -0
- package/dist/src/_internal/util/vs/base/common/sseParser.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/stopwatch.d.ts +11 -0
- package/dist/src/_internal/util/vs/base/common/stopwatch.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/stopwatch.js +30 -0
- package/dist/src/_internal/util/vs/base/common/stopwatch.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/stream.d.ts +212 -0
- package/dist/src/_internal/util/vs/base/common/stream.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/stream.js +495 -0
- package/dist/src/_internal/util/vs/base/common/stream.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/strings.d.ts +264 -0
- package/dist/src/_internal/util/vs/base/common/strings.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/strings.js +1162 -0
- package/dist/src/_internal/util/vs/base/common/strings.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/symbols.d.ts +5 -0
- package/dist/src/_internal/util/vs/base/common/symbols.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/symbols.js +13 -0
- package/dist/src/_internal/util/vs/base/common/symbols.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/themables.d.ts +31 -0
- package/dist/src/_internal/util/vs/base/common/themables.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/themables.js +92 -0
- package/dist/src/_internal/util/vs/base/common/themables.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/types.d.ts +184 -0
- package/dist/src/_internal/util/vs/base/common/types.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/types.js +265 -0
- package/dist/src/_internal/util/vs/base/common/types.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uint.d.ts +32 -0
- package/dist/src/_internal/util/vs/base/common/uint.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uint.js +24 -0
- package/dist/src/_internal/util/vs/base/common/uint.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uri.d.ts +172 -0
- package/dist/src/_internal/util/vs/base/common/uri.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uri.js +653 -0
- package/dist/src/_internal/util/vs/base/common/uri.js.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uuid.d.ts +5 -0
- package/dist/src/_internal/util/vs/base/common/uuid.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/base/common/uuid.js +66 -0
- package/dist/src/_internal/util/vs/base/common/uuid.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/editOperation.d.ts +28 -0
- package/dist/src/_internal/util/vs/editor/common/core/editOperation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/editOperation.js +35 -0
- package/dist/src/_internal/util/vs/editor/common/core/editOperation.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/edit.d.ts +109 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/edit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/edit.js +341 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/edit.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.d.ts +53 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.js +322 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/lineEdit.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.d.ts +135 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.js +437 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/stringEdit.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.d.ts +50 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.js +348 -0
- package/dist/src/_internal/util/vs/editor/common/core/edits/textEdit.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/position.d.ts +91 -0
- package/dist/src/_internal/util/vs/editor/common/core/position.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/position.js +142 -0
- package/dist/src/_internal/util/vs/editor/common/core/position.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/range.d.ts +195 -0
- package/dist/src/_internal/util/vs/editor/common/core/range.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/range.js +424 -0
- package/dist/src/_internal/util/vs/editor/common/core/range.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.d.ts +108 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.js +357 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/lineRange.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.d.ts +79 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.js +242 -0
- package/dist/src/_internal/util/vs/editor/common/core/ranges/offsetRange.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.d.ts +40 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.js +105 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/abstractText.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.d.ts +3 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.js +28 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffset.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.d.ts +39 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.js +110 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/textLength.d.ts +34 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/textLength.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/textLength.js +134 -0
- package/dist/src/_internal/util/vs/editor/common/core/text/textLength.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/wordHelper.d.ts +28 -0
- package/dist/src/_internal/util/vs/editor/common/core/wordHelper.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/core/wordHelper.js +137 -0
- package/dist/src/_internal/util/vs/editor/common/core/wordHelper.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.d.ts +83 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +154 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.d.ts +9 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js +104 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.d.ts +8 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js +165 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.d.ts +4 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js +251 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.d.ts +9 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +213 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.d.ts +10 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +380 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.d.ts +13 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js +36 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts +32 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +208 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.d.ts +23 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.js +64 -0
- package/dist/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.d.ts +70 -0
- package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.js +501 -0
- package/dist/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.d.ts +46 -0
- package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.js +33 -0
- package/dist/src/_internal/util/vs/editor/common/diff/linesDiffComputer.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.d.ts +84 -0
- package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.js +287 -0
- package/dist/src/_internal/util/vs/editor/common/diff/rangeMapping.js.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.d.ts +71 -0
- package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.js +234 -0
- package/dist/src/_internal/util/vs/editor/common/model/prefixSumComputer.js.map +1 -0
- package/dist/src/_internal/util/vs/nls.d.ts +143 -0
- package/dist/src/_internal/util/vs/nls.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/nls.js +84 -0
- package/dist/src/_internal/util/vs/nls.js.map +1 -0
- package/dist/src/_internal/util/vs/nls.messages.d.ts +3 -0
- package/dist/src/_internal/util/vs/nls.messages.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/nls.messages.js +22 -0
- package/dist/src/_internal/util/vs/nls.messages.js.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.d.ts +10 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.js +17 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/descriptors.js.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/graph.d.ts +26 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/graph.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/graph.js +99 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/graph.js.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.d.ts +70 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.js +48 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiation.js.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.d.ts +56 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.js +406 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/instantiationService.js.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.d.ts +10 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.js +25 -0
- package/dist/src/_internal/util/vs/platform/instantiation/common/serviceCollection.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.d.ts +32 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.js +103 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.d.ts +8 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.js +38 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.d.ts +12 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.js +53 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/location.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.d.ts +21 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.js +72 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.d.ts +85 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.js +243 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.d.ts +30 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.js +178 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/position.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.d.ts +27 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.js +148 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/range.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.d.ts +21 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.js +84 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.d.ts +13 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.js +95 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.d.ts +14 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.js +30 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.d.ts +46 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.js +82 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.js.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.d.ts +25 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.d.ts.map +1 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.js +93 -0
- package/dist/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.js.map +1 -0
- package/dist/src/_internal/vscodeTypes.d.ts +95 -0
- package/dist/src/_internal/vscodeTypes.d.ts.map +1 -0
- package/dist/src/_internal/vscodeTypes.js +133 -0
- package/dist/src/_internal/vscodeTypes.js.map +1 -0
- package/dist/src/main.d.ts +13 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/src/main.js +190 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/package.json +4063 -0
- package/package.json +64 -0
- package/src/_internal/extension/byok/node/openAIEndpoint.ts +171 -0
- package/src/_internal/extension/common/constants.ts +90 -0
- package/src/_internal/extension/inlineEdits/common/delayer.ts +108 -0
- package/src/_internal/extension/inlineEdits/common/editRebase.ts +268 -0
- package/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.tsx +163 -0
- package/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.ts +225 -0
- package/src/_internal/extension/inlineEdits/common/rejectionCollector.ts +164 -0
- package/src/_internal/extension/inlineEdits/node/debugRecorder.ts +205 -0
- package/src/_internal/extension/inlineEdits/node/importFiltering.ts +25 -0
- package/src/_internal/extension/inlineEdits/node/nesConfigs.ts +12 -0
- package/src/_internal/extension/inlineEdits/node/nextEditCache.ts +278 -0
- package/src/_internal/extension/inlineEdits/node/nextEditProvider.ts +778 -0
- package/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.ts +983 -0
- package/src/_internal/extension/inlineEdits/node/nextEditResult.ts +40 -0
- package/src/_internal/extension/prompt/common/importStatement.ts +25 -0
- package/src/_internal/extension/prompt/node/chatMLFetcher.ts +706 -0
- package/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.ts +146 -0
- package/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.ts +527 -0
- package/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.ts +76 -0
- package/src/_internal/extension/prompts/node/inline/visualization.ts +65 -0
- package/src/_internal/extension/vscode.proposed.activeComment.d.ts +23 -0
- package/src/_internal/extension/vscode.proposed.aiRelatedInformation.d.ts +49 -0
- package/src/_internal/extension/vscode.proposed.aiSettingsSearch.d.ts +31 -0
- package/src/_internal/extension/vscode.proposed.aiTextSearchProvider.d.ts +41 -0
- package/src/_internal/extension/vscode.proposed.authLearnMore.d.ts +16 -0
- package/src/_internal/extension/vscode.proposed.chatBinaryReferenceData.d.ts +41 -0
- package/src/_internal/extension/vscode.proposed.chatEditing.d.ts +29 -0
- package/src/_internal/extension/vscode.proposed.chatParticipantAdditions.d.ts +636 -0
- package/src/_internal/extension/vscode.proposed.chatParticipantPrivate.d.ts +276 -0
- package/src/_internal/extension/vscode.proposed.chatProvider.d.ts +62 -0
- package/src/_internal/extension/vscode.proposed.chatReadonlyPromptReference.d.ts +17 -0
- package/src/_internal/extension/vscode.proposed.chatReferenceDiagnostic.d.ts +23 -0
- package/src/_internal/extension/vscode.proposed.chatSessionsProvider.d.ts +218 -0
- package/src/_internal/extension/vscode.proposed.chatStatusItem.d.ts +61 -0
- package/src/_internal/extension/vscode.proposed.codeActionAI.d.ts +16 -0
- package/src/_internal/extension/vscode.proposed.commentReveal.d.ts +32 -0
- package/src/_internal/extension/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts +8 -0
- package/src/_internal/extension/vscode.proposed.contribCommentsViewThreadMenus.d.ts +6 -0
- package/src/_internal/extension/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +7 -0
- package/src/_internal/extension/vscode.proposed.dataChannels.d.ts +19 -0
- package/src/_internal/extension/vscode.proposed.defaultChatParticipant.d.ts +52 -0
- package/src/_internal/extension/vscode.proposed.documentFiltersExclusive.d.ts +13 -0
- package/src/_internal/extension/vscode.proposed.embeddings.d.ts +33 -0
- package/src/_internal/extension/vscode.proposed.extensionsAny.d.ts +40 -0
- package/src/_internal/extension/vscode.proposed.findFiles2.d.ts +125 -0
- package/src/_internal/extension/vscode.proposed.findTextInFiles.d.ts +104 -0
- package/src/_internal/extension/vscode.proposed.findTextInFiles2.d.ts +144 -0
- package/src/_internal/extension/vscode.proposed.inlineCompletionsAdditions.d.ts +202 -0
- package/src/_internal/extension/vscode.proposed.interactive.d.ts +11 -0
- package/src/_internal/extension/vscode.proposed.languageModelCapabilities.d.ts +25 -0
- package/src/_internal/extension/vscode.proposed.languageModelDataPart.d.ts +163 -0
- package/src/_internal/extension/vscode.proposed.languageModelSystem.d.ts +17 -0
- package/src/_internal/extension/vscode.proposed.languageModelThinkingPart.d.ts +49 -0
- package/src/_internal/extension/vscode.proposed.languageModelToolResultAudience.d.ts +36 -0
- package/src/_internal/extension/vscode.proposed.mappedEditsProvider.d.ts +110 -0
- package/src/_internal/extension/vscode.proposed.newSymbolNamesProvider.d.ts +47 -0
- package/src/_internal/extension/vscode.proposed.readonlyMessage.d.ts +14 -0
- package/src/_internal/extension/vscode.proposed.resolvers.d.ts +475 -0
- package/src/_internal/extension/vscode.proposed.scmInputBoxValueProvider.d.ts +25 -0
- package/src/_internal/extension/vscode.proposed.taskProblemMatcherStatus.d.ts +42 -0
- package/src/_internal/extension/vscode.proposed.terminalDataWriteEvent.d.ts +32 -0
- package/src/_internal/extension/vscode.proposed.terminalExecuteCommandEvent.d.ts +48 -0
- package/src/_internal/extension/vscode.proposed.terminalQuickFixProvider.d.ts +87 -0
- package/src/_internal/extension/vscode.proposed.terminalSelection.d.ts +16 -0
- package/src/_internal/extension/vscode.proposed.testObserver.d.ts +199 -0
- package/src/_internal/extension/vscode.proposed.textDocumentChangeReason.d.ts +30 -0
- package/src/_internal/extension/vscode.proposed.textSearchProvider.d.ts +281 -0
- package/src/_internal/extension/vscode.proposed.textSearchProvider2.d.ts +297 -0
- package/src/_internal/extension/xtab/common/promptCrafting.ts +670 -0
- package/src/_internal/extension/xtab/node/xtabEndpoint.ts +102 -0
- package/src/_internal/extension/xtab/node/xtabProvider.ts +976 -0
- package/src/_internal/extension/xtab/node/xtabUtils.ts +62 -0
- package/src/_internal/platform/authentication/common/authentication.ts +309 -0
- package/src/_internal/platform/authentication/common/copilotToken.ts +300 -0
- package/src/_internal/platform/authentication/common/copilotTokenManager.ts +59 -0
- package/src/_internal/platform/authentication/common/copilotTokenStore.ts +40 -0
- package/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.ts +96 -0
- package/src/_internal/platform/authentication/node/copilotTokenManager.ts +303 -0
- package/src/_internal/platform/chat/common/chatMLFetcher.ts +124 -0
- package/src/_internal/platform/chat/common/chatQuotaService.ts +63 -0
- package/src/_internal/platform/chat/common/chatQuotaServiceImpl.ts +96 -0
- package/src/_internal/platform/chat/common/commonTypes.ts +353 -0
- package/src/_internal/platform/chat/common/conversationOptions.ts +16 -0
- package/src/_internal/platform/chat/common/globalStringUtils.ts +54 -0
- package/src/_internal/platform/chat/common/interactionService.ts +35 -0
- package/src/_internal/platform/configuration/common/configurationService.ts +803 -0
- package/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.ts +39 -0
- package/src/_internal/platform/configuration/common/jsonSchema.ts +139 -0
- package/src/_internal/platform/configuration/common/validator.ts +242 -0
- package/src/_internal/platform/diff/common/diffService.ts +41 -0
- package/src/_internal/platform/diff/common/diffWorker.ts +83 -0
- package/src/_internal/platform/diff/node/diffServiceImpl.ts +85 -0
- package/src/_internal/platform/editing/common/abstractText.ts +177 -0
- package/src/_internal/platform/editing/common/notebookDocumentSnapshot.ts +122 -0
- package/src/_internal/platform/editing/common/positionOffsetTransformer.ts +202 -0
- package/src/_internal/platform/editing/common/textDocumentSnapshot.ts +274 -0
- package/src/_internal/platform/endpoint/common/capiClient.ts +37 -0
- package/src/_internal/platform/endpoint/common/chatModelCapabilities.ts +115 -0
- package/src/_internal/platform/endpoint/common/domainService.ts +27 -0
- package/src/_internal/platform/endpoint/common/endpointProvider.ts +104 -0
- package/src/_internal/platform/endpoint/common/endpointTypes.ts +12 -0
- package/src/_internal/platform/endpoint/common/licenseAgreement.ts +11 -0
- package/src/_internal/platform/endpoint/common/statefulMarkerContainer.tsx +85 -0
- package/src/_internal/platform/endpoint/common/thinkingDataContainer.tsx +44 -0
- package/src/_internal/platform/endpoint/node/capiClientImpl.ts +18 -0
- package/src/_internal/platform/endpoint/node/chatEndpoint.ts +435 -0
- package/src/_internal/platform/endpoint/node/domainServiceImpl.ts +80 -0
- package/src/_internal/platform/endpoint/node/proxyXtabEndpoint.ts +43 -0
- package/src/_internal/platform/endpoint/node/responsesApi.ts +326 -0
- package/src/_internal/platform/env/common/envService.ts +134 -0
- package/src/_internal/platform/env/common/nullEnvService.ts +68 -0
- package/src/_internal/platform/env/common/packagejson.ts +49 -0
- package/src/_internal/platform/git/common/gitExtensionService.ts +21 -0
- package/src/_internal/platform/git/common/nullGitExtensionService.ts +20 -0
- package/src/_internal/platform/git/vscode/git.d.ts +414 -0
- package/src/_internal/platform/github/common/githubAPI.ts +44 -0
- package/src/_internal/platform/github/common/githubService.ts +87 -0
- package/src/_internal/platform/github/common/nullOctokitServiceImpl.ts +21 -0
- package/src/_internal/platform/ignore/common/ignoreService.ts +72 -0
- package/src/_internal/platform/inlineCompletions/common/api.ts +198 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.ts +32 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/documentId.ts +52 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/edit.ts +165 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.ts +74 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.ts +14 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.ts +107 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/languageId.ts +14 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/permutation.ts +69 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.ts +49 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.ts +74 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.ts +132 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.ts +184 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.ts +32 -0
- package/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.ts +89 -0
- package/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.ts +10 -0
- package/src/_internal/platform/inlineEdits/common/editReason.ts +134 -0
- package/src/_internal/platform/inlineEdits/common/inlineEditLogContext.ts +490 -0
- package/src/_internal/platform/inlineEdits/common/observableGit.ts +49 -0
- package/src/_internal/platform/inlineEdits/common/observableWorkspace.ts +239 -0
- package/src/_internal/platform/inlineEdits/common/responseProcessor.ts +249 -0
- package/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.ts +468 -0
- package/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.ts +59 -0
- package/src/_internal/platform/inlineEdits/common/utils/observable.ts +54 -0
- package/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.ts +29 -0
- package/src/_internal/platform/inlineEdits/common/utils/utils.ts +56 -0
- package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.ts +60 -0
- package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.ts +353 -0
- package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.ts +176 -0
- package/src/_internal/platform/languageContextProvider/common/languageContextProviderService.ts +25 -0
- package/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.ts +38 -0
- package/src/_internal/platform/languageServer/common/languageContextService.ts +186 -0
- package/src/_internal/platform/languages/common/languageDiagnosticsService.ts +67 -0
- package/src/_internal/platform/languages/common/testLanguageDiagnosticsService.ts +28 -0
- package/src/_internal/platform/log/common/logService.ts +232 -0
- package/src/_internal/platform/nesFetch/common/completionsAPI.ts +78 -0
- package/src/_internal/platform/nesFetch/common/completionsFetchService.ts +118 -0
- package/src/_internal/platform/nesFetch/common/responseStream.ts +151 -0
- package/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.ts +236 -0
- package/src/_internal/platform/nesFetch/node/streamTransformer.ts +95 -0
- package/src/_internal/platform/networking/common/fetch.ts +349 -0
- package/src/_internal/platform/networking/common/fetcherService.ts +84 -0
- package/src/_internal/platform/networking/common/networking.ts +442 -0
- package/src/_internal/platform/networking/common/openai.ts +273 -0
- package/src/_internal/platform/networking/node/chatStream.ts +137 -0
- package/src/_internal/platform/networking/node/stream.ts +749 -0
- package/src/_internal/platform/notebook/common/alternativeContent.ts +89 -0
- package/src/_internal/platform/notebook/common/alternativeContentFormat.ts +10 -0
- package/src/_internal/platform/notebook/common/alternativeContentProvider.json.ts +262 -0
- package/src/_internal/platform/notebook/common/alternativeContentProvider.text.ts +243 -0
- package/src/_internal/platform/notebook/common/alternativeContentProvider.ts +41 -0
- package/src/_internal/platform/notebook/common/alternativeContentProvider.xml.ts +205 -0
- package/src/_internal/platform/notebook/common/alternativeNotebookDocument.ts +155 -0
- package/src/_internal/platform/notebook/common/helpers.ts +212 -0
- package/src/_internal/platform/notebook/common/notebookService.ts +43 -0
- package/src/_internal/platform/openai/node/fetch.ts +596 -0
- package/src/_internal/platform/parser/node/nodes.ts +190 -0
- package/src/_internal/platform/requestLogger/node/nullRequestLogger.ts +26 -0
- package/src/_internal/platform/requestLogger/node/requestLogger.ts +383 -0
- package/src/_internal/platform/simulationTestContext/common/simulationTestContext.ts +29 -0
- package/src/_internal/platform/snippy/common/snippyService.ts +25 -0
- package/src/_internal/platform/telemetry/common/nullExperimentationService.ts +64 -0
- package/src/_internal/platform/telemetry/common/nullTelemetryService.ts +53 -0
- package/src/_internal/platform/telemetry/common/telemetry.ts +215 -0
- package/src/_internal/platform/telemetry/common/telemetryData.ts +205 -0
- package/src/_internal/platform/thinking/common/thinking.ts +61 -0
- package/src/_internal/platform/thinking/common/thinkingUtils.ts +57 -0
- package/src/_internal/platform/tokenizer/node/parseTikTokens.ts +23 -0
- package/src/_internal/platform/tokenizer/node/tikTokenizerImpl.ts +74 -0
- package/src/_internal/platform/tokenizer/node/tikTokenizerWorker.ts +24 -0
- package/src/_internal/platform/tokenizer/node/tokenizer.ts +357 -0
- package/src/_internal/platform/workspace/common/workspaceService.ts +226 -0
- package/src/_internal/platform/workspaceRecorder/common/workspaceLog.ts +118 -0
- package/src/_internal/util/common/anomalyDetection.ts +112 -0
- package/src/_internal/util/common/arrays.ts +81 -0
- package/src/_internal/util/common/async.ts +155 -0
- package/src/_internal/util/common/cache.ts +183 -0
- package/src/_internal/util/common/crypto.ts +41 -0
- package/src/_internal/util/common/errors.ts +22 -0
- package/src/_internal/util/common/globals.d.ts +12 -0
- package/src/_internal/util/common/imageUtils.ts +154 -0
- package/src/_internal/util/common/languages.ts +940 -0
- package/src/_internal/util/common/notebooks.ts +286 -0
- package/src/_internal/util/common/result.ts +71 -0
- package/src/_internal/util/common/services.ts +43 -0
- package/src/_internal/util/common/test/shims/chatTypes.ts +448 -0
- package/src/_internal/util/common/test/shims/editing.ts +233 -0
- package/src/_internal/util/common/test/shims/enums.ts +61 -0
- package/src/_internal/util/common/test/shims/l10n.ts +37 -0
- package/src/_internal/util/common/test/shims/newSymbolName.ts +23 -0
- package/src/_internal/util/common/test/shims/terminal.ts +33 -0
- package/src/_internal/util/common/test/shims/vscodeTypesShim.ts +115 -0
- package/src/_internal/util/common/time.ts +31 -0
- package/src/_internal/util/common/tokenizer.ts +30 -0
- package/src/_internal/util/common/tracing.ts +52 -0
- package/src/_internal/util/common/types.ts +33 -0
- package/src/_internal/util/common/variableLengthQuantity.ts +40 -0
- package/src/_internal/util/node/worker.ts +130 -0
- package/src/_internal/util/vs/base/common/arrays.ts +926 -0
- package/src/_internal/util/vs/base/common/arraysFind.ts +206 -0
- package/src/_internal/util/vs/base/common/assert.ts +89 -0
- package/src/_internal/util/vs/base/common/async.ts +2582 -0
- package/src/_internal/util/vs/base/common/buffer.ts +501 -0
- package/src/_internal/util/vs/base/common/cache.ts +122 -0
- package/src/_internal/util/vs/base/common/cancellation.ts +150 -0
- package/src/_internal/util/vs/base/common/charCode.ts +452 -0
- package/src/_internal/util/vs/base/common/codicons.ts +66 -0
- package/src/_internal/util/vs/base/common/codiconsLibrary.ts +618 -0
- package/src/_internal/util/vs/base/common/codiconsUtil.ts +30 -0
- package/src/_internal/util/vs/base/common/collections.ts +156 -0
- package/src/_internal/util/vs/base/common/diff/diff.ts +1317 -0
- package/src/_internal/util/vs/base/common/diff/diffChange.ts +62 -0
- package/src/_internal/util/vs/base/common/equals.ts +148 -0
- package/src/_internal/util/vs/base/common/errors.ts +342 -0
- package/src/_internal/util/vs/base/common/event.ts +1782 -0
- package/src/_internal/util/vs/base/common/extpath.ts +425 -0
- package/src/_internal/util/vs/base/common/filters.ts +928 -0
- package/src/_internal/util/vs/base/common/functional.ts +34 -0
- package/src/_internal/util/vs/base/common/glob.ts +839 -0
- package/src/_internal/util/vs/base/common/hash.ts +326 -0
- package/src/_internal/util/vs/base/common/htmlContent.ts +212 -0
- package/src/_internal/util/vs/base/common/iconLabels.ts +118 -0
- package/src/_internal/util/vs/base/common/iterator.ts +196 -0
- package/src/_internal/util/vs/base/common/lazy.ts +59 -0
- package/src/_internal/util/vs/base/common/lifecycle.ts +845 -0
- package/src/_internal/util/vs/base/common/linkedList.ts +144 -0
- package/src/_internal/util/vs/base/common/map.ts +954 -0
- package/src/_internal/util/vs/base/common/marshallingIds.ts +35 -0
- package/src/_internal/util/vs/base/common/mime.ts +136 -0
- package/src/_internal/util/vs/base/common/naturalLanguage/korean.ts +425 -0
- package/src/_internal/util/vs/base/common/network.ts +429 -0
- package/src/_internal/util/vs/base/common/numbers.ts +166 -0
- package/src/_internal/util/vs/base/common/objects.ts +242 -0
- package/src/_internal/util/vs/base/common/observable.ts +10 -0
- package/src/_internal/util/vs/base/common/observableInternal/base.ts +208 -0
- package/src/_internal/util/vs/base/common/observableInternal/changeTracker.ts +96 -0
- package/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.ts +9 -0
- package/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.ts +12 -0
- package/src/_internal/util/vs/base/common/observableInternal/debugLocation.ts +88 -0
- package/src/_internal/util/vs/base/common/observableInternal/debugName.ts +150 -0
- package/src/_internal/util/vs/base/common/observableInternal/experimental/utils.ts +62 -0
- package/src/_internal/util/vs/base/common/observableInternal/index.ts +61 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.ts +388 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerApi.d.ts +154 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.ts +80 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.ts +485 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.ts +103 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.ts +69 -0
- package/src/_internal/util/vs/base/common/observableInternal/logging/logging.ts +133 -0
- package/src/_internal/util/vs/base/common/observableInternal/map.ts +81 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.ts +172 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.ts +44 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/derived.ts +190 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.ts +445 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.ts +154 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.ts +174 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.ts +67 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.ts +62 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.ts +131 -0
- package/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.ts +37 -0
- package/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.ts +188 -0
- package/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.ts +256 -0
- package/src/_internal/util/vs/base/common/observableInternal/set.ts +78 -0
- package/src/_internal/util/vs/base/common/observableInternal/transaction.ts +115 -0
- package/src/_internal/util/vs/base/common/observableInternal/utils/promise.ts +129 -0
- package/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.ts +65 -0
- package/src/_internal/util/vs/base/common/observableInternal/utils/utils.ts +281 -0
- package/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.ts +101 -0
- package/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.ts +31 -0
- package/src/_internal/util/vs/base/common/path.ts +1591 -0
- package/src/_internal/util/vs/base/common/platform.ts +282 -0
- package/src/_internal/util/vs/base/common/process.ts +78 -0
- package/src/_internal/util/vs/base/common/resources.ts +446 -0
- package/src/_internal/util/vs/base/common/sequence.ts +36 -0
- package/src/_internal/util/vs/base/common/sseParser.ts +247 -0
- package/src/_internal/util/vs/base/common/stopwatch.ts +43 -0
- package/src/_internal/util/vs/base/common/stream.ts +792 -0
- package/src/_internal/util/vs/base/common/strings.ts +1364 -0
- package/src/_internal/util/vs/base/common/symbols.ts +11 -0
- package/src/_internal/util/vs/base/common/themables.ts +106 -0
- package/src/_internal/util/vs/base/common/types.ts +345 -0
- package/src/_internal/util/vs/base/common/uint.ts +61 -0
- package/src/_internal/util/vs/base/common/uri.ts +752 -0
- package/src/_internal/util/vs/base/common/uuid.ts +72 -0
- package/src/_internal/util/vs/base-common.d.ts +42 -0
- package/src/_internal/util/vs/editor/common/core/editOperation.ts +62 -0
- package/src/_internal/util/vs/editor/common/core/edits/edit.ts +399 -0
- package/src/_internal/util/vs/editor/common/core/edits/lineEdit.ts +414 -0
- package/src/_internal/util/vs/editor/common/core/edits/stringEdit.ts +568 -0
- package/src/_internal/util/vs/editor/common/core/edits/textEdit.ts +411 -0
- package/src/_internal/util/vs/editor/common/core/position.ts +186 -0
- package/src/_internal/util/vs/editor/common/core/range.ts +519 -0
- package/src/_internal/util/vs/editor/common/core/ranges/lineRange.ts +416 -0
- package/src/_internal/util/vs/editor/common/core/ranges/offsetRange.ts +275 -0
- package/src/_internal/util/vs/editor/common/core/text/abstractText.ts +127 -0
- package/src/_internal/util/vs/editor/common/core/text/positionToOffset.ts +26 -0
- package/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.ts +144 -0
- package/src/_internal/util/vs/editor/common/core/text/textLength.ts +150 -0
- package/src/_internal/util/vs/editor/common/core/wordHelper.ts +177 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.ts +210 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.ts +109 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.ts +178 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.ts +331 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.ts +273 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.ts +475 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.ts +47 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.ts +248 -0
- package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.ts +76 -0
- package/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.ts +693 -0
- package/src/_internal/util/vs/editor/common/diff/linesDiffComputer.ts +61 -0
- package/src/_internal/util/vs/editor/common/diff/rangeMapping.ts +418 -0
- package/src/_internal/util/vs/editor/common/model/prefixSumComputer.ts +304 -0
- package/src/_internal/util/vs/nls.messages.ts +21 -0
- package/src/_internal/util/vs/nls.ts +243 -0
- package/src/_internal/util/vs/platform/instantiation/common/descriptors.ts +23 -0
- package/src/_internal/util/vs/platform/instantiation/common/graph.ts +113 -0
- package/src/_internal/util/vs/platform/instantiation/common/instantiation.ts +127 -0
- package/src/_internal/util/vs/platform/instantiation/common/instantiationService.ts +483 -0
- package/src/_internal/util/vs/platform/instantiation/common/serviceCollection.ts +34 -0
- package/src/_internal/util/vs/vscode-globals-nls.d.ts +42 -0
- package/src/_internal/util/vs/vscode-globals-product.d.ts +35 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.ts +109 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.ts +34 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/location.ts +51 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.ts +83 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.ts +296 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/position.ts +195 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/range.ts +167 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.ts +94 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.ts +103 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.ts +44 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.ts +89 -0
- package/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.ts +99 -0
- package/src/_internal/vscodeTypes.ts +100 -0
- package/src/main.ts +207 -0
- 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
|