@microsoft/vscode-azext-azureappservice
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -55,6 +55,6 @@ "use strict"; | ||
}); | ||
let customLocations = response.data; | ||
customLocations = customLocations.sort((a, b) => a.name.localeCompare(b.name)); | ||
context.telemetry.properties.hasCustomLoc = String(customLocations.length > 0); | ||
picks.unshift(...customLocations.map(cl => { | ||
const customLocations = response.data; | ||
const customLocationFlattened = Object.values(customLocations).sort((a, b) => a.name.localeCompare(b.name)); | ||
context.telemetry.properties.hasCustomLoc = String(customLocationFlattened.length > 0); | ||
picks.unshift(...customLocationFlattened.map(cl => { | ||
return { | ||
@@ -61,0 +61,0 @@ label: cl.name, |
@@ -33,10 +33,10 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let options = {}; | ||
const options = {}; | ||
options['api-version'] = '2020-09-01'; | ||
if (context.newSiteOS === AppKind_1.WebsiteOS.linux) { | ||
if (context.newSiteKind === AppKind_1.AppKind.functionapp && context.useConsumptionPlan) { | ||
options = { linuxDynamicWorkersEnabled: true }; | ||
options.linuxDynamicWorkersEnabled = true; | ||
} | ||
else { | ||
options = { linuxWorkersEnabled: true }; | ||
options.linuxWorkersEnabled = true; | ||
} | ||
@@ -43,0 +43,0 @@ } |
@@ -17,3 +17,2 @@ "use strict"; | ||
exports.deployToStorageAccount = void 0; | ||
const ms_rest_azure_env_1 = require("@azure/ms-rest-azure-env"); | ||
const storage_blob_1 = require("@azure/storage-blob"); | ||
@@ -33,2 +32,4 @@ const vscode_azext_utils_1 = require("@microsoft/vscode-azext-utils"); | ||
dayjs.extend(utc); | ||
// From https://github.com/Azure/ms-rest-azure-env/blob/6fa17ce7f36741af6ce64461735e6c7c0125f0ed/lib/azureEnvironment.ts#L280 | ||
const AzureCloudStorageEndpointSuffix = 'core.windows.net'; | ||
/** | ||
@@ -78,3 +79,3 @@ * Method of deployment that is only intended to be used for Linux Consumption Function apps because it doesn't support kudu pushDeployment | ||
} | ||
connectionString += `${endpointSuffix}=${ms_rest_azure_env_1.Environment.AzureCloud.storageEndpointSuffix}${separator}`; | ||
connectionString += `${endpointSuffix}=${AzureCloudStorageEndpointSuffix}${separator}`; | ||
return storage_blob_1.BlobServiceClient.fromConnectionString(connectionString); | ||
@@ -81,0 +82,0 @@ } |
@@ -6,3 +6,2 @@ // /*--------------------------------------------------------------------------------------------- | ||
// import type { SiteSourceControl } from '@azure/arm-appservice'; | ||
// import { AccessToken, GetTokenOptions, TokenCredential } from '@azure/core-auth'; | ||
// import { ServiceClient } from '@azure/core-client'; | ||
@@ -9,0 +8,0 @@ // import { AzExtPipelineResponse, createGenericClient, openInPortal } from '@microsoft/vscode-azext-azureutils'; |
@@ -40,4 +40,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const client = (yield Promise.resolve().then(() => require('@azure/arm-resourcegraph'))).ResourceGraphClient; | ||
return (0, vscode_azext_azureutils_1.createAzureSubscriptionClient)(context, client); | ||
return (0, vscode_azext_azureutils_1.createAzureSubscriptionClient)(context, (yield Promise.resolve().then(() => require('@azure/arm-resourcegraph'))).ResourceGraphClient); | ||
}); | ||
@@ -44,0 +43,0 @@ } |
{ | ||
"name": "@microsoft/vscode-azext-azureappservice", | ||
"author": "Microsoft Corporation", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Common tools for developing Azure App Service extensions for VS Code", | ||
@@ -39,3 +39,3 @@ "tags": [ | ||
"@azure/arm-operationalinsights": "^8.0.1", | ||
"@azure/arm-resourcegraph": "^4.2.1", | ||
"@azure/arm-resourcegraph": "^5.0.0-beta.3", | ||
"@azure/arm-resources-subscriptions": "^2.0.1", | ||
@@ -42,0 +42,0 @@ "@azure/core-client": "^1.7.2", |
375024
6687
+ Added@azure/arm-resourcegraph@5.0.0-beta.3(transitive)
- Removed@azure/arm-resourcegraph@4.2.1(transitive)
- Removed@azure/ms-rest-azure-js@2.1.0(transitive)
- Removed@azure/ms-rest-js@2.7.0(transitive)
- Removedabort-controller@3.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedevent-target-shim@5.0.1(transitive)
- Removedform-data@2.5.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedsax@1.4.1(transitive)
- Removedtr46@0.0.3(transitive)
- Removedtslib@1.14.1(transitive)
- Removedtunnel@0.0.6(transitive)
- Removeduuid@8.3.2(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedxml2js@0.5.0(transitive)
- Removedxmlbuilder@11.0.1(transitive)