Skip to content

Commit 5a969bc

Browse files
committed
merge main
2 parents e82e6f6 + 58236e2 commit 5a969bc

23 files changed

+369
-285
lines changed

package-lock.json

Lines changed: 98 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@
13911391
"@azure/core-client": "^1.7.3",
13921392
"@azure/core-rest-pipeline": "^1.11.0",
13931393
"@azure/storage-blob": "^12.5.0",
1394-
"@microsoft/vscode-azext-azureappservice": "^3.3.1",
1394+
"@microsoft/vscode-azext-azureappservice": "^3.5.3",
13951395
"@microsoft/vscode-azext-azureappsettings": "file:../vscode-azuretools/appsettings/microsoft-vscode-azext-azureappsettings-0.2.6.tgz",
13961396
"@microsoft/vscode-azext-azureutils": "^3.1.6",
13971397
"@microsoft/vscode-azext-utils": "^2.6.3",

package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"azureFunctions.enableJavaRemoteDebugging": "Enable remote debugging for Java Functions Apps running on Windows. (experimental)",
4040
"azureFunctions.enableOutputTimestamps": "Prepends each line displayed in the output channel with a timestamp.",
4141
"azureFunctions.enableRemoteDebugging": "Enable remote debugging for Node.js Function Apps running on Linux App Service plans. Consumption plans are not supported. (experimental)",
42-
"azureFunctions.enableSystemIdentity": "Enable System Assigned Identity...",
42+
"azureFunctions.enableSystemIdentity": "Enable System Assigned Identity",
4343
"azureFunctions.endOfLifeWarning": "Show a warning when creating Function Apps with stacks within 6 months of their end of life.",
4444
"azureFunctions.executeFunction": "Execute Function Now...",
4545
"azureFunctions.funcCliPath": "The path to the 'func' executable to use for debug and deploy tasks. For example, set it to 'node_modules/.bin/func' if using the func cli installed as a local npm package.",

src/commands/appSettings/downloadAppSettings.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,30 @@
66
import { type StringDictionary } from "@azure/arm-appservice";
77
import { confirmOverwriteSettings } from "@microsoft/vscode-azext-azureappservice";
88
import { AppSettingsTreeItem, type IAppSettingsClient } from "@microsoft/vscode-azext-azureappsettings";
9-
import { AzExtFsExtra, type IActionContext } from "@microsoft/vscode-azext-utils";
9+
import { AzExtFsExtra, nonNullValue, type IActionContext, type ISubscriptionActionContext } from "@microsoft/vscode-azext-utils";
1010
import * as vscode from 'vscode';
1111
import { functionFilter, localSettingsFileName } from "../../constants";
1212
import { viewOutput } from "../../constants-nls";
1313
import { ext } from "../../extensionVariables";
1414
import { getLocalSettingsJson, type ILocalSettingsJson } from "../../funcConfig/local.settings";
1515
import { localize } from "../../localize";
1616
import type * as api from '../../vscode-azurefunctions.api';
17+
import { showEolWarningIfNecessary } from "../createFunctionApp/stacks/getStackPicks";
1718
import { decryptLocalSettings } from "./localSettings/decryptLocalSettings";
1819
import { encryptLocalSettings } from "./localSettings/encryptLocalSettings";
1920
import { getLocalSettingsFile } from "./localSettings/getLocalSettingsFile";
2021

21-
export async function downloadAppSettings(context: IActionContext, node?: AppSettingsTreeItem): Promise<void> {
22+
export async function downloadAppSettings(context: ISubscriptionActionContext, node?: AppSettingsTreeItem): Promise<void> {
2223
if (!node) {
2324
node = await ext.rgApi.pickAppResource<AppSettingsTreeItem>(context, {
2425
filter: functionFilter,
2526
expectedChildContextValue: new RegExp(AppSettingsTreeItem.contextValue)
2627
});
2728
}
2829

30+
const parent = node.parent;
2931
const client: IAppSettingsClient = await node.clientProvider.createClient(context);
32+
await showEolWarningIfNecessary(context, nonNullValue(parent), client);
3033
await node.runWithTemporaryDescription(context, localize('downloading', 'Downloading...'), async () => {
3134
await downloadAppSettingsInternal(context, client);
3235
});

src/commands/appSettings/uploadAppSettings.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@
66
import { type StringDictionary } from "@azure/arm-appservice";
77
import { confirmOverwriteSettings } from "@microsoft/vscode-azext-azureappservice";
88
import { AppSettingsTreeItem, type IAppSettingsClient } from "@microsoft/vscode-azext-azureappsettings";
9-
import { AzExtFsExtra, type IActionContext } from "@microsoft/vscode-azext-utils";
9+
import { AzExtFsExtra, nonNullValue, type IActionContext, type ISubscriptionActionContext } from "@microsoft/vscode-azext-utils";
1010
import * as vscode from 'vscode';
1111
import { ConnectionKey, functionFilter, localEventHubsEmulatorConnectionRegExp, localSettingsFileName, localStorageEmulatorConnectionString } from "../../constants";
1212
import { viewOutput } from "../../constants-nls";
1313
import { ext } from "../../extensionVariables";
1414
import { type ILocalSettingsJson } from "../../funcConfig/local.settings";
1515
import { localize } from "../../localize";
1616
import type * as api from '../../vscode-azurefunctions.api';
17+
import { showEolWarningIfNecessary } from "../createFunctionApp/stacks/getStackPicks";
1718
import { decryptLocalSettings } from "./localSettings/decryptLocalSettings";
1819
import { encryptLocalSettings } from "./localSettings/encryptLocalSettings";
1920
import { getLocalSettingsFile } from "./localSettings/getLocalSettingsFile";
2021

21-
export async function uploadAppSettings(context: IActionContext, node?: AppSettingsTreeItem, _nodes?: [], workspaceFolder?: vscode.WorkspaceFolder, exclude?: (RegExp | string)[]): Promise<void> {
22+
export async function uploadAppSettings(context: ISubscriptionActionContext, node?: AppSettingsTreeItem, _nodes?: [], workspaceFolder?: vscode.WorkspaceFolder, exclude?: (RegExp | string)[]): Promise<void> {
2223
context.telemetry.eventVersion = 2;
2324
if (!node) {
2425
node = await ext.rgApi.pickAppResource<AppSettingsTreeItem>(context, {
@@ -27,7 +28,9 @@ export async function uploadAppSettings(context: IActionContext, node?: AppSetti
2728
});
2829
}
2930

31+
const parent = node.parent;
3032
const client: IAppSettingsClient = await node.clientProvider.createClient(context);
33+
await showEolWarningIfNecessary(context, nonNullValue(parent), client);
3134
await node.runWithTemporaryDescription(context, localize('uploading', 'Uploading...'), async () => {
3235
await uploadAppSettingsInternal(context, client, workspaceFolder, exclude);
3336
});

0 commit comments

Comments
 (0)