@microsoft/teamsfx-core 1.2.0 → 1.2.2-alpha.eb4575da.0
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/build/common/armInterface.d.ts +0 -20
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.d.ts +1 -0
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts +2 -1
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +12 -7
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/index.d.ts +1 -0
- package/build/common/deps-checker/index.d.ts.map +1 -1
- package/build/common/deps-checker/index.js +1 -0
- package/build/common/deps-checker/index.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +2 -1
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +2 -1
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.js +2 -4
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts +1 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +9 -1
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
- package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
- package/build/common/deps-checker/util/extensionInstaller.js +47 -0
- package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
- package/build/common/deps-checker/util/index.d.ts +5 -0
- package/build/common/deps-checker/util/index.d.ts.map +1 -0
- package/build/common/deps-checker/util/index.js +10 -0
- package/build/common/deps-checker/util/index.js.map +1 -0
- package/build/common/index.d.ts +1 -3
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +1 -3
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +5 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +7 -1
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/index.d.ts +5 -0
- package/build/common/local/index.d.ts.map +1 -0
- package/build/common/local/index.js +10 -0
- package/build/common/local/index.js.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.d.ts → common/local/localCertificateManager.d.ts} +4 -6
- package/build/common/local/localCertificateManager.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.js → common/local/localCertificateManager.js} +37 -47
- package/build/common/local/localCertificateManager.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts +6 -2
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +41 -1
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.d.ts +0 -0
- package/build/common/local/process.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.js +0 -0
- package/build/common/local/process.js.map +1 -0
- package/build/common/local/projectSettingsHelper.d.ts +5 -5
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/local/projectSettingsHelper.js +28 -21
- package/build/common/local/projectSettingsHelper.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +1 -1
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +6 -4
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/common/localSettingsConstants.d.ts +1 -0
- package/build/common/localSettingsConstants.d.ts.map +1 -1
- package/build/common/localSettingsConstants.js +1 -0
- package/build/common/localSettingsConstants.js.map +1 -1
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +1 -0
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/permissionInterface.d.ts +1 -0
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +1 -0
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/telemetry.d.ts +7 -2
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +10 -4
- package/build/common/telemetry.js.map +1 -1
- package/build/common/{templates.d.ts → template-utils/templates.d.ts} +0 -0
- package/build/common/template-utils/templates.d.ts.map +1 -0
- package/build/common/{templates.js → template-utils/templates.js} +1 -1
- package/build/common/template-utils/templates.js.map +1 -0
- package/build/common/{templatesActions.d.ts → template-utils/templatesActions.d.ts} +0 -0
- package/build/common/template-utils/templatesActions.d.ts.map +1 -0
- package/build/common/{templatesActions.js → template-utils/templatesActions.js} +3 -3
- package/build/common/template-utils/templatesActions.js.map +1 -0
- package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +0 -0
- package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
- package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +1 -1
- package/build/common/template-utils/templatesUtils.js.map +1 -0
- package/build/common/tools.d.ts +1 -4
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +41 -12
- package/build/common/tools.js.map +1 -1
- package/build/core/index.d.ts +2 -2
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +14 -6
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/index.d.ts +0 -1
- package/build/core/middleware/index.d.ts.map +1 -1
- package/build/core/middleware/index.js +0 -1
- package/build/core/middleware/index.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +0 -9
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/permissionRequest.js +2 -2
- package/build/core/permissionRequest.js.map +1 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +7 -4
- package/build/core/question.js.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.d.ts +2 -2
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +3 -4
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/errors.d.ts.map +1 -1
- package/build/plugins/resource/aad/errors.js +1 -2
- package/build/plugins/resource/aad/errors.js.map +1 -1
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +4 -0
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +33 -46
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +2 -0
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +14 -14
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +1 -0
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +20 -38
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/apim/error.d.ts.map +1 -1
- package/build/plugins/resource/apim/error.js +1 -4
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +21 -58
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +0 -7
- package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +6 -13
- package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +3 -2
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +12 -11
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +2 -36
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +1 -31
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +16 -8
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +1 -0
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +14 -1
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +1 -3
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +28 -16
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.js +0 -10
- package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.js +1 -1
- package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +14 -131
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/configs.d.ts +1 -1
- package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
- package/build/plugins/resource/frontend/configs.js +3 -9
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +2 -8
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +3 -11
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.d.ts +52 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/constants.js +69 -0
- package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.js +39 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +34 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js +126 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.d.ts +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.js +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +6 -3
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +27 -45
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/interface.d.ts +13 -0
- package/build/plugins/resource/frontend/interface.d.ts.map +1 -0
- package/build/plugins/resource/frontend/interface.js +3 -0
- package/build/plugins/resource/frontend/interface.js.map +1 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +43 -0
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +3 -3
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +13 -44
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +23 -20
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +31 -67
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts +3 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.js +9 -6
- package/build/plugins/resource/frontend/utils/logger.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +0 -8
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +1 -19
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +1 -0
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +3 -0
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +15 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +149 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +8 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +95 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/error.d.ts +23 -0
- package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/error.js +66 -0
- package/build/plugins/resource/frontend/v3/error.js.map +1 -0
- package/build/plugins/resource/frontend/v3/index.d.ts +3 -0
- package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/index.js +7 -0
- package/build/plugins/resource/frontend/v3/index.js.map +1 -0
- package/build/plugins/resource/function/index.d.ts +1 -1
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +8 -21
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +8 -9
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/ops/scaffold.js +1 -1
- package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +33 -134
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/message.d.ts +0 -1
- package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/message.js +0 -1
- package/build/plugins/resource/function/resources/message.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +11 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +48 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts +6 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js +15 -8
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts +4 -3
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js +5 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js.map +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.d.ts +0 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +2 -20
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/index.js +1 -6
- package/build/plugins/resource/simpleauth/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +0 -3
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +14 -9
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +5 -4
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +1 -9
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +26 -58
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts +1 -1
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +3 -3
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +9 -2
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +45 -11
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +4 -3
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +11 -10
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +1 -0
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +1 -0
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts +0 -5
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.js +1 -7
- package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +2 -2
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +2 -2
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +5 -3
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +2 -2
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +32 -22
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +15 -15
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts +31 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js +222 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -3
- package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +196 -122
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +9 -14
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +81 -96
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js +6 -0
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +2 -4
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.js +29 -6
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +6 -14
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +23 -51
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.js +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +1 -3
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.js +9 -0
- package/build/plugins/solution/fx-solution/v3/init.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +219 -16
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +96 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +8 -13
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.js +30 -52
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +2 -4
- package/build/plugins/solution/spfx-solution/addModule.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.d.ts +2 -10
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.js +3 -39
- package/build/plugins/solution/spfx-solution/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.d.ts +12 -17
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.js +7 -7
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
- package/package.json +6 -7
- package/resource/strings.json +17 -7
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +1 -0
- package/templates/plugins/resource/apim/bicep/apimProvision.bicep +7 -5
- package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -0
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
- package/templates/plugins/resource/bot/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +4 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -0
- package/templates/plugins/resource/function/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +9 -7
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +8 -5
- package/templates/plugins/resource/webapp/bicep/config.template.bicep +10 -0
- package/templates/plugins/resource/webapp/bicep/provision.template.bicep +16 -0
- package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +74 -0
- package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +48 -0
- package/build/common/templates.d.ts.map +0 -1
- package/build/common/templates.js.map +0 -1
- package/build/common/templatesActions.d.ts.map +0 -1
- package/build/common/templatesActions.js.map +0 -1
- package/build/common/templatesUtils.d.ts.map +0 -1
- package/build/common/templatesUtils.js.map +0 -1
- package/build/core/middleware/projectUpgrader.d.ts +0 -6
- package/build/core/middleware/projectUpgrader.d.ts.map +0 -1
- package/build/core/middleware/projectUpgrader.js +0 -224
- package/build/core/middleware/projectUpgrader.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.d.ts +0 -75
- package/build/plugins/resource/frontend/blazor/constants.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.js +0 -98
- package/build/plugins/resource/frontend/blazor/constants.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/enum.js +0 -39
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
- package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
- package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
- package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
- package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
- package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts +0 -9
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js +0 -55
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -54
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.js +0 -104
- package/build/plugins/resource/function/utils/depsChecker/checker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts +0 -84
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.js +0 -136
- package/build/plugins/resource/function/utils/depsChecker/common.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts +0 -22
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js +0 -105
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +0 -53
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +0 -387
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts +0 -14
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.js +0 -41
- package/build/plugins/resource/function/utils/depsChecker/errors.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -26
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +0 -111
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.js.map +0 -1
- package/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
- package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { DepsInfo, IDepsAdapter, IDepsChecker, IDepsLogger, IDepsTelemetry } from "./checker";
|
|
2
|
-
export declare enum DotnetVersion {
|
|
3
|
-
v21 = "2.1",
|
|
4
|
-
v31 = "3.1",
|
|
5
|
-
v50 = "5.0",
|
|
6
|
-
v60 = "6.0"
|
|
7
|
-
}
|
|
8
|
-
export declare const DotnetCoreSDKName = ".NET Core SDK";
|
|
9
|
-
export declare type DotnetSDK = {
|
|
10
|
-
version: string;
|
|
11
|
-
path: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const installVersion: DotnetVersion;
|
|
14
|
-
export declare const supportedVersions: DotnetVersion[];
|
|
15
|
-
export declare class DotnetChecker implements IDepsChecker {
|
|
16
|
-
private static encoding;
|
|
17
|
-
private static timeout;
|
|
18
|
-
private static maxBuffer;
|
|
19
|
-
private readonly _adapter;
|
|
20
|
-
private readonly _logger;
|
|
21
|
-
private readonly _telemetry;
|
|
22
|
-
constructor(adapter: IDepsAdapter, logger: IDepsLogger, telemetry: IDepsTelemetry);
|
|
23
|
-
getDepsInfo(): Promise<DepsInfo>;
|
|
24
|
-
isEnabled(): Promise<boolean>;
|
|
25
|
-
isInstalled(): Promise<boolean>;
|
|
26
|
-
install(): Promise<void>;
|
|
27
|
-
getDotnetExecPath(): Promise<string>;
|
|
28
|
-
static escapeFilePath(path: string): string;
|
|
29
|
-
private static getDotnetConfigPath;
|
|
30
|
-
private getDotnetExecPathFromConfig;
|
|
31
|
-
private handleInstall;
|
|
32
|
-
private static persistDotnetExecPath;
|
|
33
|
-
private handleLinuxDependency;
|
|
34
|
-
private static cleanup;
|
|
35
|
-
private runDotnetInstallScript;
|
|
36
|
-
private isDotnetInstalledCorrectly;
|
|
37
|
-
private isDotnetVersionsInstalled;
|
|
38
|
-
private static arrayIntersection;
|
|
39
|
-
private static isPrivateInstall;
|
|
40
|
-
private getGlobalDotnetSdks;
|
|
41
|
-
private searchDotnetSdks;
|
|
42
|
-
private static isFullSdkVersion;
|
|
43
|
-
private static getDotnetExecPathFromDotnetInstallationDir;
|
|
44
|
-
private getDotnetInstallScriptPath;
|
|
45
|
-
private getDotnetInstallScriptName;
|
|
46
|
-
private static getDefaultInstallPath;
|
|
47
|
-
private getInstallCommand;
|
|
48
|
-
private validate;
|
|
49
|
-
private validateWithHelloWorld;
|
|
50
|
-
private tryAcquireGlobalDotnetSdk;
|
|
51
|
-
private static parseDotnetVersion;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=dotnetChecker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dotnetChecker.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/dotnetChecker.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAiB9F,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AACjD,oBAAY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AC,MAAM,CAAC,qBAAqB;YAItB,iBAAiB;YAkCjB,QAAQ;YAUR,sBAAsB;YAgDtB,yBAAyB;IAoBvC,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAQlC"}
|
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.DotnetChecker = exports.supportedVersions = exports.installVersion = exports.DotnetCoreSDKName = exports.DotnetVersion = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
// NOTE:
|
|
8
|
-
// DO NOT EDIT this file in function plugin.
|
|
9
|
-
// The source of truth of this file is in packages/vscode-extension/src/debug/depsChecker.
|
|
10
|
-
// If you need to edit this file, please edit it in the above folder
|
|
11
|
-
// and run the scripts (tools/depsChecker/copyfiles.sh or tools/depsChecker/copyfiles.ps1 according to your OS)
|
|
12
|
-
// to copy you changes to function plugin.
|
|
13
|
-
const os = tslib_1.__importStar(require("os"));
|
|
14
|
-
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
15
|
-
const path = tslib_1.__importStar(require("path"));
|
|
16
|
-
const child_process = tslib_1.__importStar(require("child_process"));
|
|
17
|
-
const util = tslib_1.__importStar(require("util"));
|
|
18
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
19
|
-
const common_1 = require("./common");
|
|
20
|
-
const perf_hooks_1 = require("perf_hooks");
|
|
21
|
-
const errors_1 = require("./errors");
|
|
22
|
-
const cpUtils_1 = require("./cpUtils");
|
|
23
|
-
const execFile = util.promisify(child_process.execFile);
|
|
24
|
-
var DotnetVersion;
|
|
25
|
-
(function (DotnetVersion) {
|
|
26
|
-
DotnetVersion["v21"] = "2.1";
|
|
27
|
-
DotnetVersion["v31"] = "3.1";
|
|
28
|
-
DotnetVersion["v50"] = "5.0";
|
|
29
|
-
DotnetVersion["v60"] = "6.0";
|
|
30
|
-
})(DotnetVersion = exports.DotnetVersion || (exports.DotnetVersion = {}));
|
|
31
|
-
exports.DotnetCoreSDKName = ".NET Core SDK";
|
|
32
|
-
exports.installVersion = common_1.isMacOS() && common_1.isArm64() ? DotnetVersion.v60 : DotnetVersion.v31;
|
|
33
|
-
exports.supportedVersions = [DotnetVersion.v31, DotnetVersion.v50, DotnetVersion.v60];
|
|
34
|
-
const installedNameWithVersion = `${exports.DotnetCoreSDKName} (v${DotnetVersion.v31})`;
|
|
35
|
-
class DotnetChecker {
|
|
36
|
-
constructor(adapter, logger, telemetry) {
|
|
37
|
-
this._adapter = adapter;
|
|
38
|
-
this._logger = logger;
|
|
39
|
-
this._telemetry = telemetry;
|
|
40
|
-
}
|
|
41
|
-
async getDepsInfo() {
|
|
42
|
-
const map = new Map();
|
|
43
|
-
const execPath = await this.getDotnetExecPathFromConfig();
|
|
44
|
-
if (execPath) {
|
|
45
|
-
map.set("execPath", execPath);
|
|
46
|
-
}
|
|
47
|
-
map.set("configPath", DotnetChecker.getDotnetConfigPath());
|
|
48
|
-
return {
|
|
49
|
-
name: exports.DotnetCoreSDKName,
|
|
50
|
-
installVersion: `${exports.installVersion}`,
|
|
51
|
-
supportedVersions: exports.supportedVersions,
|
|
52
|
-
details: map,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
async isEnabled() {
|
|
56
|
-
const enabled = await this._adapter.dotnetCheckerEnabled();
|
|
57
|
-
if (!enabled) {
|
|
58
|
-
this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetCheckSkipped);
|
|
59
|
-
}
|
|
60
|
-
return enabled;
|
|
61
|
-
}
|
|
62
|
-
async isInstalled() {
|
|
63
|
-
const configPath = DotnetChecker.getDotnetConfigPath();
|
|
64
|
-
await this._logger.debug(`[start] read dotnet path from '${configPath}'`);
|
|
65
|
-
const dotnetPath = await this.getDotnetExecPathFromConfig();
|
|
66
|
-
await this._logger.debug(`[end] read dotnet path from '${configPath}', dotnetPath = '${dotnetPath}'`);
|
|
67
|
-
await this._logger.debug(`[start] check dotnet version`);
|
|
68
|
-
if (dotnetPath !== null && (await this.isDotnetInstalledCorrectly())) {
|
|
69
|
-
// filter out global sdk
|
|
70
|
-
if (dotnetPath.includes(`.${teamsfx_api_1.ConfigFolderName}`)) {
|
|
71
|
-
this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetInstallCompleted);
|
|
72
|
-
}
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
await this._logger.debug(`[end] check dotnet version`);
|
|
76
|
-
if ((await this.tryAcquireGlobalDotnetSdk()) && (await this.validate())) {
|
|
77
|
-
this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetAlreadyInstalled);
|
|
78
|
-
await this._logger.info(`${common_1.Messages.useGlobalDotnet} '${await this.getDotnetExecPathFromConfig()}'`);
|
|
79
|
-
return true;
|
|
80
|
-
}
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
async install() {
|
|
84
|
-
await this._logger.debug(`[start] cleanup bin/dotnet and config`);
|
|
85
|
-
await DotnetChecker.cleanup();
|
|
86
|
-
await this._logger.debug(`[end] cleanup bin/dotnet and config`);
|
|
87
|
-
const installDir = DotnetChecker.getDefaultInstallPath();
|
|
88
|
-
await this._logger.debug(`[start] install dotnet ${exports.installVersion}`);
|
|
89
|
-
await this._logger.debug(common_1.Messages.dotnetNotFound.replace("@NameVersion", installedNameWithVersion));
|
|
90
|
-
await this._logger.info(common_1.Messages.downloadDotnet
|
|
91
|
-
.replace("@NameVersion", installedNameWithVersion)
|
|
92
|
-
.replace("@InstallDir", installDir));
|
|
93
|
-
await this._adapter.runWithProgressIndicator(async () => {
|
|
94
|
-
await this.handleInstall(exports.installVersion, installDir);
|
|
95
|
-
});
|
|
96
|
-
await this._logger.info(common_1.Messages.finishInstallDotnet.replace("@NameVersion", installedNameWithVersion));
|
|
97
|
-
await this._logger.debug(`[end] install dotnet ${exports.installVersion}`);
|
|
98
|
-
await this._logger.debug(`[start] validate dotnet version`);
|
|
99
|
-
if (!(await this.validate())) {
|
|
100
|
-
this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetInstallError);
|
|
101
|
-
throw new errors_1.DepsCheckerError(common_1.Messages.failToInstallDotnet.split("@NameVersion").join(installedNameWithVersion), common_1.dotnetFailToInstallHelpLink);
|
|
102
|
-
}
|
|
103
|
-
this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetInstallCompleted);
|
|
104
|
-
}
|
|
105
|
-
async getDotnetExecPath() {
|
|
106
|
-
const execPath = await this.getDotnetExecPathFromConfig();
|
|
107
|
-
return execPath || "dotnet";
|
|
108
|
-
}
|
|
109
|
-
static escapeFilePath(path) {
|
|
110
|
-
if (common_1.isWindows()) {
|
|
111
|
-
// Need to escape apostrophes with two apostrophes
|
|
112
|
-
const dotnetInstallDirEscaped = path.replace(/'/g, `''`);
|
|
113
|
-
// Surround with single quotes instead of double quotes (see https://github.com/dotnet/cli/issues/11521)
|
|
114
|
-
return `'${dotnetInstallDirEscaped}'`;
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
return `"${path}"`;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
static getDotnetConfigPath() {
|
|
121
|
-
return path.join(os.homedir(), `.${teamsfx_api_1.ConfigFolderName}`, "dotnet.json");
|
|
122
|
-
}
|
|
123
|
-
async getDotnetExecPathFromConfig() {
|
|
124
|
-
try {
|
|
125
|
-
const config = await fs.readJson(DotnetChecker.getDotnetConfigPath(), {
|
|
126
|
-
encoding: DotnetChecker.encoding,
|
|
127
|
-
});
|
|
128
|
-
if (typeof config.dotnetExecutablePath === "string") {
|
|
129
|
-
return config.dotnetExecutablePath;
|
|
130
|
-
}
|
|
131
|
-
await this._logger.debug(`invalid dotnet config file format, config: '${JSON.stringify(config)}' `);
|
|
132
|
-
}
|
|
133
|
-
catch (error) {
|
|
134
|
-
await this._logger.debug(`get dotnet path failed, error: '${error}'`);
|
|
135
|
-
}
|
|
136
|
-
return null;
|
|
137
|
-
}
|
|
138
|
-
// Do not print info level log in this method because it runs concurrently with the progress bar
|
|
139
|
-
async handleInstall(version, installDir) {
|
|
140
|
-
try {
|
|
141
|
-
if (common_1.isLinux()) {
|
|
142
|
-
await this.handleLinuxDependency();
|
|
143
|
-
}
|
|
144
|
-
// NOTE: we don't need to handle directory creation since dotnet-install script will handle it.
|
|
145
|
-
await this.runDotnetInstallScript(version, installDir);
|
|
146
|
-
await this._logger.debug(`[start] write dotnet path to config`);
|
|
147
|
-
const dotnetExecPath = DotnetChecker.getDotnetExecPathFromDotnetInstallationDir(installDir);
|
|
148
|
-
await DotnetChecker.persistDotnetExecPath(dotnetExecPath);
|
|
149
|
-
await this._logger.debug(`[end] write dotnet path to config`);
|
|
150
|
-
}
|
|
151
|
-
catch (error) {
|
|
152
|
-
await this._logger.error(`${common_1.Messages.failToInstallDotnet
|
|
153
|
-
.split("@NameVersion")
|
|
154
|
-
.join(installedNameWithVersion)}, error = '${error}'`);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
static async persistDotnetExecPath(dotnetExecPath) {
|
|
158
|
-
const configPath = DotnetChecker.getDotnetConfigPath();
|
|
159
|
-
await fs.ensureFile(configPath);
|
|
160
|
-
await fs.writeJson(configPath, { dotnetExecutablePath: dotnetExecPath }, {
|
|
161
|
-
encoding: DotnetChecker.encoding,
|
|
162
|
-
spaces: 4,
|
|
163
|
-
EOL: os.EOL,
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
async handleLinuxDependency() {
|
|
167
|
-
// do nothing
|
|
168
|
-
}
|
|
169
|
-
static async cleanup() {
|
|
170
|
-
await fs.remove(DotnetChecker.getDotnetConfigPath());
|
|
171
|
-
await fs.emptyDir(DotnetChecker.getDefaultInstallPath());
|
|
172
|
-
}
|
|
173
|
-
// from: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/vscode-dotnet-runtime-library/src/Acquisition/AcquisitionInvoker.ts
|
|
174
|
-
async runDotnetInstallScript(version, installDir) {
|
|
175
|
-
const command = await this.getInstallCommand(version, installDir);
|
|
176
|
-
const cwd = this._adapter.getResourceDir();
|
|
177
|
-
const options = {
|
|
178
|
-
cwd: cwd,
|
|
179
|
-
maxBuffer: DotnetChecker.maxBuffer,
|
|
180
|
-
timeout: DotnetChecker.timeout,
|
|
181
|
-
killSignal: "SIGKILL",
|
|
182
|
-
shell: false,
|
|
183
|
-
};
|
|
184
|
-
const start = perf_hooks_1.performance.now();
|
|
185
|
-
try {
|
|
186
|
-
fs.chmodSync(this.getDotnetInstallScriptPath(), "755");
|
|
187
|
-
const { stdout, stderr } = await execFile(command[0], command.slice(1), options);
|
|
188
|
-
await this._logger.debug(`Finished running dotnet-install script, command = '${command.join(" ")}', options = '${JSON.stringify(options)}', stdout = '${stdout}', stderr = '${stderr}'`);
|
|
189
|
-
const timecost = Number(((perf_hooks_1.performance.now() - start) / 1000).toFixed(2));
|
|
190
|
-
if (stderr && stderr.length > 0) {
|
|
191
|
-
const errorMessage = `${common_1.Messages.failToInstallDotnet
|
|
192
|
-
.split("@NameVersion")
|
|
193
|
-
.join(installedNameWithVersion)} ${common_1.Messages.dotnetInstallStderr} stdout = '${stdout}', stderr = '${stderr}', timecost = '${timecost}s'`;
|
|
194
|
-
this._telemetry.sendSystemErrorEvent(common_1.DepsCheckerEvent.dotnetInstallScriptError, common_1.TelemtryMessages.failedToExecDotnetScript, errorMessage);
|
|
195
|
-
await this._logger.error(errorMessage);
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetInstallScriptCompleted, {}, timecost);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
catch (error) {
|
|
202
|
-
const timecost = Number(((perf_hooks_1.performance.now() - start) / 1000).toFixed(2));
|
|
203
|
-
const errorMessage = `${common_1.Messages.failToInstallDotnet.split("@NameVersion").join(installedNameWithVersion)} ${common_1.Messages.dotnetInstallErrorCode}, ` +
|
|
204
|
-
`command = '${command.join(" ")}', options = '${JSON.stringify(options)}', error = '${error}', stdout = '${error.stdout}', stderr = '${error.stderr}', timecost = '${timecost}s'`;
|
|
205
|
-
this._telemetry.sendSystemErrorEvent(common_1.DepsCheckerEvent.dotnetInstallScriptError, common_1.TelemtryMessages.failedToExecDotnetScript, errorMessage);
|
|
206
|
-
// swallow the exception since later validate will find out the errors anyway
|
|
207
|
-
await this._logger.error(errorMessage);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
async isDotnetInstalledCorrectly() {
|
|
211
|
-
try {
|
|
212
|
-
const dotnetExecPath = await this.getDotnetExecPathFromConfig();
|
|
213
|
-
const dotnetSdks = await this.searchDotnetSdks(dotnetExecPath);
|
|
214
|
-
const installedVersions = dotnetSdks
|
|
215
|
-
.map((sdk) => DotnetChecker.parseDotnetVersion(sdk.version))
|
|
216
|
-
.filter((version) => version !== null);
|
|
217
|
-
return this.isDotnetVersionsInstalled(installedVersions);
|
|
218
|
-
}
|
|
219
|
-
catch (error) {
|
|
220
|
-
const errorMessage = `validate private install failed, error = '${error}'`;
|
|
221
|
-
this._telemetry.sendSystemErrorEvent(common_1.DepsCheckerEvent.dotnetValidationError, common_1.TelemtryMessages.failedToValidateDotnet, errorMessage);
|
|
222
|
-
await this._logger.debug(errorMessage);
|
|
223
|
-
return false;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
async isDotnetVersionsInstalled(installedVersions) {
|
|
227
|
-
try {
|
|
228
|
-
const validVersions = DotnetChecker.arrayIntersection(installedVersions, exports.supportedVersions);
|
|
229
|
-
return validVersions.length > 0;
|
|
230
|
-
}
|
|
231
|
-
catch (error) {
|
|
232
|
-
await this._logger.error(`failed to check .NET, installedVersions = '${installedVersions}', supportedVersions = '${exports.supportedVersions}', error = '${error}'`);
|
|
233
|
-
return false;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
static arrayIntersection(lhs, rhs) {
|
|
237
|
-
return lhs.filter((value) => rhs.includes(value));
|
|
238
|
-
}
|
|
239
|
-
static isPrivateInstall(sdk) {
|
|
240
|
-
const privateInstallPath = DotnetChecker.getDotnetExecPathFromDotnetInstallationDir(DotnetChecker.getDefaultInstallPath());
|
|
241
|
-
return path.dirname(privateInstallPath) == path.dirname(sdk.path) && sdk.version !== null;
|
|
242
|
-
}
|
|
243
|
-
async getGlobalDotnetSdks() {
|
|
244
|
-
const globalSdks = await this.searchDotnetSdks("dotnet");
|
|
245
|
-
return globalSdks.filter((sdk) => !DotnetChecker.isPrivateInstall(sdk));
|
|
246
|
-
}
|
|
247
|
-
async searchDotnetSdks(dotnetExecPath) {
|
|
248
|
-
if (!dotnetExecPath) {
|
|
249
|
-
return [];
|
|
250
|
-
}
|
|
251
|
-
const sdks = [];
|
|
252
|
-
try {
|
|
253
|
-
// shell = false to prevent shell escape issues in dotnetExecPath
|
|
254
|
-
const dotnetListSdksOutput = await cpUtils_1.cpUtils.executeCommand(undefined, this._logger, { shell: false }, dotnetExecPath, "--list-sdks");
|
|
255
|
-
// dotnet --list-sdks sample output:
|
|
256
|
-
// > 5.0.200 [C:\Program Files\dotnet\sdk]
|
|
257
|
-
// > 3.1.200 [C:\Program Files\dotnet\sdk]
|
|
258
|
-
const regex = /(?<version>\d+\.\d+\.\d+)\s+\[(?<installPath>[^\]]+)\]/;
|
|
259
|
-
// NOTE(aochengwang):
|
|
260
|
-
// for default installation, we expect our dotnet should be installVersion.
|
|
261
|
-
// for user specified dotnet path, check that installVersion exists in any dotnet installation from dotnet --list-sdks.
|
|
262
|
-
dotnetListSdksOutput.split(/\r?\n/).forEach((line) => {
|
|
263
|
-
const match = regex.exec(line.trim());
|
|
264
|
-
if (match && match.groups) {
|
|
265
|
-
const path = match.groups.installPath;
|
|
266
|
-
const version = match.groups.version;
|
|
267
|
-
if (DotnetChecker.isFullSdkVersion(version) && path) {
|
|
268
|
-
sdks.push({ version: version, path: path });
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
catch (error) {
|
|
274
|
-
const errorMessage = `Failed to search dotnet sdk by dotnetPath = '${dotnetExecPath}', error = '${error}'`;
|
|
275
|
-
await this._logger.debug(errorMessage);
|
|
276
|
-
this._telemetry.sendSystemErrorEvent(common_1.DepsCheckerEvent.dotnetSearchDotnetSdks, common_1.TelemtryMessages.failedToSearchDotnetSdks, errorMessage);
|
|
277
|
-
}
|
|
278
|
-
return sdks;
|
|
279
|
-
}
|
|
280
|
-
static isFullSdkVersion(version) {
|
|
281
|
-
const regex = /(?<major_version>\d+)\.(?<minor_version>\d+)\.(?<patch_version>\d+)/gm;
|
|
282
|
-
const match = regex.exec(version);
|
|
283
|
-
return match !== null && match.length > 0;
|
|
284
|
-
}
|
|
285
|
-
static getDotnetExecPathFromDotnetInstallationDir(installDir) {
|
|
286
|
-
return path.join(installDir, common_1.isWindows() ? "dotnet.exe" : "dotnet");
|
|
287
|
-
}
|
|
288
|
-
getDotnetInstallScriptPath() {
|
|
289
|
-
return path.join(this._adapter.getResourceDir(), this.getDotnetInstallScriptName());
|
|
290
|
-
}
|
|
291
|
-
getDotnetInstallScriptName() {
|
|
292
|
-
return common_1.isWindows() ? "dotnet-install.ps1" : "dotnet-install.sh";
|
|
293
|
-
}
|
|
294
|
-
static getDefaultInstallPath() {
|
|
295
|
-
return path.join(os.homedir(), `.${teamsfx_api_1.ConfigFolderName}`, "bin", "dotnet");
|
|
296
|
-
}
|
|
297
|
-
async getInstallCommand(version, dotnetInstallDir) {
|
|
298
|
-
if (common_1.isWindows()) {
|
|
299
|
-
const command = [
|
|
300
|
-
DotnetChecker.escapeFilePath(this.getDotnetInstallScriptPath()),
|
|
301
|
-
"-InstallDir",
|
|
302
|
-
DotnetChecker.escapeFilePath(dotnetInstallDir),
|
|
303
|
-
"-Channel",
|
|
304
|
-
version,
|
|
305
|
-
];
|
|
306
|
-
return [
|
|
307
|
-
"powershell.exe",
|
|
308
|
-
"-NoProfile",
|
|
309
|
-
"-ExecutionPolicy",
|
|
310
|
-
"unrestricted",
|
|
311
|
-
"-Command",
|
|
312
|
-
`& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 ; & ${command.join(" ")} }`,
|
|
313
|
-
];
|
|
314
|
-
}
|
|
315
|
-
else {
|
|
316
|
-
return [
|
|
317
|
-
"bash",
|
|
318
|
-
this.getDotnetInstallScriptPath(),
|
|
319
|
-
"-InstallDir",
|
|
320
|
-
dotnetInstallDir,
|
|
321
|
-
"-Channel",
|
|
322
|
-
version,
|
|
323
|
-
];
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
async validate() {
|
|
327
|
-
const isInstallationValid = (await this.isDotnetInstalledCorrectly()) && (await this.validateWithHelloWorld());
|
|
328
|
-
if (!isInstallationValid) {
|
|
329
|
-
this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetValidationError);
|
|
330
|
-
await DotnetChecker.cleanup();
|
|
331
|
-
}
|
|
332
|
-
return isInstallationValid;
|
|
333
|
-
}
|
|
334
|
-
async validateWithHelloWorld() {
|
|
335
|
-
const dotnetPath = await this.getDotnetExecPathFromConfig();
|
|
336
|
-
if (!dotnetPath) {
|
|
337
|
-
return false;
|
|
338
|
-
}
|
|
339
|
-
const samplePath = path.join(os.homedir(), `.${teamsfx_api_1.ConfigFolderName}`, "dotnetSample");
|
|
340
|
-
try {
|
|
341
|
-
await fs.remove(samplePath);
|
|
342
|
-
await cpUtils_1.cpUtils.executeCommand(undefined, this._logger, { shell: false }, dotnetPath, "new", "console", "--output", `${samplePath}`, "--force");
|
|
343
|
-
await cpUtils_1.cpUtils.executeCommand(undefined, this._logger, { shell: false }, dotnetPath, "run", "--project", `${samplePath}`, "--force");
|
|
344
|
-
return true;
|
|
345
|
-
}
|
|
346
|
-
catch (error) {
|
|
347
|
-
this._telemetry.sendSystemErrorEvent(common_1.DepsCheckerEvent.dotnetValidationError, common_1.TelemtryMessages.failedToValidateDotnet, error);
|
|
348
|
-
await this._logger.debug(`Failed to run hello world, dotnetPath = ${dotnetPath}, error = ${error}`);
|
|
349
|
-
}
|
|
350
|
-
finally {
|
|
351
|
-
await fs.remove(samplePath);
|
|
352
|
-
}
|
|
353
|
-
return false;
|
|
354
|
-
}
|
|
355
|
-
async tryAcquireGlobalDotnetSdk() {
|
|
356
|
-
try {
|
|
357
|
-
const sdks = await this.getGlobalDotnetSdks();
|
|
358
|
-
if (!sdks || sdks.length == 0) {
|
|
359
|
-
return false;
|
|
360
|
-
}
|
|
361
|
-
// todo: by far, use first valid dotnet sdk
|
|
362
|
-
// todo: write dotnetExecPath into user settings instead of into .fx/dotnet.json
|
|
363
|
-
const selectedSdk = sdks[0];
|
|
364
|
-
const dotnetExecPath = DotnetChecker.getDotnetExecPathFromDotnetInstallationDir(path.resolve(selectedSdk.path, ".."));
|
|
365
|
-
await DotnetChecker.persistDotnetExecPath(dotnetExecPath);
|
|
366
|
-
return true;
|
|
367
|
-
}
|
|
368
|
-
catch (error) {
|
|
369
|
-
await this._logger.debug(`Failed to acquire global dotnet sdk, error = '${error}'`);
|
|
370
|
-
return false;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
static parseDotnetVersion(output) {
|
|
374
|
-
var _a, _b;
|
|
375
|
-
const regex = /(?<major_version>\d+)\.(?<minor_version>\d+)\.(?<patch_version>\d+)/gm;
|
|
376
|
-
const match = regex.exec(output);
|
|
377
|
-
if (!match) {
|
|
378
|
-
return null;
|
|
379
|
-
}
|
|
380
|
-
return ((_a = match.groups) === null || _a === void 0 ? void 0 : _a.major_version) + "." + ((_b = match.groups) === null || _b === void 0 ? void 0 : _b.minor_version);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
exports.DotnetChecker = DotnetChecker;
|
|
384
|
-
DotnetChecker.encoding = "utf-8";
|
|
385
|
-
DotnetChecker.timeout = 5 * 60 * 1000; // same as vscode-dotnet-runtime
|
|
386
|
-
DotnetChecker.maxBuffer = 500 * 1024;
|
|
387
|
-
//# sourceMappingURL=dotnetChecker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dotnetChecker.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/dotnetChecker.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,QAAQ;AACR,4CAA4C;AAC5C,0FAA0F;AAC1F,oEAAoE;AACpE,+GAA+G;AAC/G,0CAA0C;AAE1C,+CAAyB;AACzB,qDAA+B;AAC/B,mDAA6B;AAC7B,qEAA+C;AAC/C,mDAA6B;AAC7B,wDAA0D;AAE1D,qCASkB;AAClB,2CAAyC;AACzC,qCAA4C;AAC5C,uCAAoC;AAEpC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAExD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;AACb,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAEY,QAAA,iBAAiB,GAAG,eAAe,CAAC;AAGpC,QAAA,cAAc,GAAG,gBAAO,EAAE,IAAI,gBAAO,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC;AAChF,QAAA,iBAAiB,GAAG,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,CAAC,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;AAC3F,MAAM,wBAAwB,GAAG,GAAG,yBAAiB,MAAM,aAAa,CAAC,GAAG,GAAG,CAAC;AAEhF,MAAa,aAAa;IASxB,YAAY,OAAqB,EAAE,MAAmB,EAAE,SAAyB;QAC/E,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,UA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MAAc;;QAC9C,MAAM,KAAK,GAAG,uEAAuE,CAAC;QACtF,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,EAAE;YACV,OAAO,IAAI,CAAC;SACb;QACD,OAAO,CAAA,MAAA,KAAK,CAAC,MAAM,0CAAE,aAAa,IAAG,GAAG,IAAG,MAAA,KAAK,CAAC,MAAM,0CAAE,aAAa,CAAA,CAAC;IACzE,CAAC;;AAleH,sCAmeC;AAlegB,sBAAQ,GAAG,OAAO,CAAC;AACnB,qBAAO,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,gCAAgC;AACzD,uBAAS,GAAG,GAAG,GAAG,IAAI,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare class DepsCheckerError extends Error {
|
|
2
|
-
readonly helpLink: string;
|
|
3
|
-
constructor(message: string, helpLink: string);
|
|
4
|
-
}
|
|
5
|
-
export declare class NodeNotFoundError extends DepsCheckerError {
|
|
6
|
-
constructor(message: string, helpLink: string);
|
|
7
|
-
}
|
|
8
|
-
export declare class NodeNotSupportedError extends DepsCheckerError {
|
|
9
|
-
constructor(message: string, helpLink: string);
|
|
10
|
-
}
|
|
11
|
-
export declare class BackendExtensionsInstallError extends DepsCheckerError {
|
|
12
|
-
constructor(message: string, helpLink: string);
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/errors.ts"],"names":[],"mappings":"AAUA,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,SAAgB,QAAQ,EAAE,MAAM,CAAC;gBAErB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAM9C;AAED,qBAAa,iBAAkB,SAAQ,gBAAgB;gBACzC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAK9C;AAED,qBAAa,qBAAsB,SAAQ,gBAAgB;gBAC7C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAK9C;AAED,qBAAa,6BAA8B,SAAQ,gBAAgB;gBACrD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAK9C"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.BackendExtensionsInstallError = exports.NodeNotSupportedError = exports.NodeNotFoundError = exports.DepsCheckerError = void 0;
|
|
6
|
-
// NOTE:
|
|
7
|
-
// DO NOT EDIT this file in function plugin.
|
|
8
|
-
// The source of truth of this file is in packages/vscode-extension/src/debug/depsChecker.
|
|
9
|
-
// If you need to edit this file, please edit it in the above folder
|
|
10
|
-
// and run the scripts (tools/depsChecker/copyfiles.sh or tools/depsChecker/copyfiles.ps1 according to your OS)
|
|
11
|
-
// to copy you changes to function plugin.
|
|
12
|
-
class DepsCheckerError extends Error {
|
|
13
|
-
constructor(message, helpLink) {
|
|
14
|
-
super(message);
|
|
15
|
-
this.helpLink = helpLink;
|
|
16
|
-
Object.setPrototypeOf(this, DepsCheckerError.prototype);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.DepsCheckerError = DepsCheckerError;
|
|
20
|
-
class NodeNotFoundError extends DepsCheckerError {
|
|
21
|
-
constructor(message, helpLink) {
|
|
22
|
-
super(message, helpLink);
|
|
23
|
-
Object.setPrototypeOf(this, NodeNotFoundError.prototype);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.NodeNotFoundError = NodeNotFoundError;
|
|
27
|
-
class NodeNotSupportedError extends DepsCheckerError {
|
|
28
|
-
constructor(message, helpLink) {
|
|
29
|
-
super(message, helpLink);
|
|
30
|
-
Object.setPrototypeOf(this, NodeNotSupportedError.prototype);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.NodeNotSupportedError = NodeNotSupportedError;
|
|
34
|
-
class BackendExtensionsInstallError extends DepsCheckerError {
|
|
35
|
-
constructor(message, helpLink) {
|
|
36
|
-
super(message, helpLink);
|
|
37
|
-
Object.setPrototypeOf(this, BackendExtensionsInstallError.prototype);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.BackendExtensionsInstallError = BackendExtensionsInstallError;
|
|
41
|
-
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/errors.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,QAAQ;AACR,4CAA4C;AAC5C,0FAA0F;AAC1F,oEAAoE;AACpE,+GAA+G;AAC/G,0CAA0C;AAE1C,MAAa,gBAAiB,SAAQ,KAAK;IAGzC,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC1D,CAAC;CACF;AATD,4CASC;AAED,MAAa,iBAAkB,SAAQ,gBAAgB;IACrD,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;CACF;AAND,8CAMC;AAED,MAAa,qBAAsB,SAAQ,gBAAgB;IACzD,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC;CACF;AAND,sDAMC;AAED,MAAa,6BAA8B,SAAQ,gBAAgB;IACjE,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,6BAA6B,CAAC,SAAS,CAAC,CAAC;IACvE,CAAC;CACF;AAND,sEAMC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { PluginContext } from "@microsoft/teamsfx-api";
|
|
2
|
-
import { IDepsAdapter, IDepsChecker, IDepsTelemetry } from "./checker";
|
|
3
|
-
export declare class FuncPluginAdapter implements IDepsAdapter {
|
|
4
|
-
private readonly downloadIndicatorInterval;
|
|
5
|
-
private readonly _ctx;
|
|
6
|
-
private readonly _telemetry;
|
|
7
|
-
private readonly dotnetSettingKey;
|
|
8
|
-
constructor(ctx: PluginContext, telemetry: IDepsTelemetry);
|
|
9
|
-
displayLearnMore(message: string, link: string): Promise<boolean>;
|
|
10
|
-
displayWarningMessage(message: string, buttonText: string, action: () => Promise<boolean>): Promise<boolean>;
|
|
11
|
-
displayContinueWithLearnMore(message: string, link: string): Promise<boolean>;
|
|
12
|
-
showOutputChannel(): void;
|
|
13
|
-
getResourceDir(): string;
|
|
14
|
-
dotnetCheckerEnabled(): Promise<boolean>;
|
|
15
|
-
runWithProgressIndicator(callback: () => Promise<void>): Promise<void>;
|
|
16
|
-
hasTeamsfxBackend(): Promise<boolean>;
|
|
17
|
-
hasTeamsfxBot(): Promise<boolean>;
|
|
18
|
-
funcToolCheckerEnabled(): Promise<boolean>;
|
|
19
|
-
ngrokCheckerEnabled(): Promise<boolean>;
|
|
20
|
-
nodeCheckerEnabled(): Promise<boolean>;
|
|
21
|
-
handleDotnetError(error: Error): void;
|
|
22
|
-
handleDotnetForLinux(checker: IDepsChecker): Promise<boolean>;
|
|
23
|
-
generateMsg(messageTemplate: string, checkers: Array<IDepsChecker>): Promise<string>;
|
|
24
|
-
private splitHelpLink;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=funcPluginAdapter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"funcPluginAdapter.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/funcPluginAdapter.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAmB,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGvE,qBAAa,iBAAkB,YAAW,YAAY;IACpD,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAQ;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiB;IAC5C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAqC;gBAE1D,GAAG,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc;IAKlD,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAK3D,qBAAqB,CAChC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAC7B,OAAO,CAAC,OAAO,CAAC;IAIZ,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI7E,iBAAiB,IAAI,IAAI;IAIzB,cAAc,IAAI,MAAM;IAIxB,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC;IAQlC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAe5E,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IAGrC,aAAa,IAAI,OA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