Skip to content

Commit 169ab9f

Browse files
committed
Add context values
1 parent 396a956 commit 169ab9f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/commands/addMIConnections/LocalSettingsAddStep.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.md in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { ActivityChildItem, ActivityChildType, activitySuccessIcon, AzExtFsExtra, AzureWizardExecuteStep, createContextValue, nonNullProp } from "@microsoft/vscode-azext-utils";
6+
import { ActivityChildItem, ActivityChildType, activitySuccessContext, activitySuccessIcon, AzExtFsExtra, AzureWizardExecuteStep, createContextValue, nonNullProp } from "@microsoft/vscode-azext-utils";
77
import { ext } from "../../extensionVariables";
88
import { getLocalSettingsJsonwithEncryption } from "../../funcConfig/local.settings";
99
import { localize } from "../../localize";
@@ -29,7 +29,7 @@ export class LocalSettingsAddStep extends AzureWizardExecuteStep<AddMIConnection
2929
// TODO: Convert to use createSuccessOutput
3030
context.activityChildren?.push(
3131
new ActivityChildItem({
32-
contextValue: createContextValue([this.stepName]),
32+
contextValue: createContextValue([this.stepName, activitySuccessContext]),
3333
label: localize('addedLocalSetting', 'Add local setting "{0}"', connection.name),
3434
iconPath: activitySuccessIcon,
3535
activityType: ActivityChildType.Success

src/commands/addMIConnections/RemoteSettingsAddStep.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.md in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { ActivityChildItem, ActivityChildType, activitySuccessIcon, AzureWizardExecuteStep, createContextValue, nonNullProp } from "@microsoft/vscode-azext-utils";
6+
import { ActivityChildItem, ActivityChildType, activitySuccessContext, activitySuccessIcon, AzureWizardExecuteStep, createContextValue, nonNullProp } from "@microsoft/vscode-azext-utils";
77
import { ext } from "../../extensionVariables";
88
import { localize } from "../../localize";
99
import { type AddMIConnectionsContext } from "./AddMIConnectionsContext";
@@ -26,7 +26,7 @@ export class RemoteSettingsAddStep extends AzureWizardExecuteStep<AddMIConnectio
2626
// TODO: Convert to use createSuccessOutput
2727
context.activityChildren?.push(
2828
new ActivityChildItem({
29-
contextValue: createContextValue([this.stepName]),
29+
contextValue: createContextValue([this.stepName, activitySuccessContext]),
3030
label: localize('addedAppSetting', 'Add app setting "{0}"', connection.name),
3131
iconPath: activitySuccessIcon,
3232
activityType: ActivityChildType.Success

0 commit comments

Comments
 (0)