Skip to content

Commit

Permalink
Add env path to description
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 committed Jan 10, 2025
1 parent bf9d0e8 commit a086062
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/

import { type EnvironmentVar } from "@azure/arm-appcontainers";
import { activitySuccessContext, activitySuccessIcon, AzureWizardPromptStep, createUniversallyUniqueContextValue, GenericTreeItem, nonNullProp, type IAzureQuickPickItem } from "@microsoft/vscode-azext-utils";
import { activitySuccessContext, activitySuccessIcon, AzureWizardPromptStep, createUniversallyUniqueContextValue, GenericTreeItem, nonNullProp, nonNullValueAndProp, type IAzureQuickPickItem } from "@microsoft/vscode-azext-utils";
import * as deepEqual from "deep-eql";
import * as path from "path";
import { ext } from "../../../../../extensionVariables";
Expand Down Expand Up @@ -45,12 +45,13 @@ export class EnvUseRemoteConfigurationPromptStep<T extends WorkspaceDeploymentCo
}

public async prompt(context: T): Promise<void> {
const envPath: string = nonNullValueAndProp(context.deploymentConfigurationSettings, 'envPath');
const useEnvFile: string = localize('useEnvFile', 'Env file');
const useExistingConfig: string = localize('useExistingConfig', 'Existing configuration');

const picks: IAzureQuickPickItem<string>[] = [
{ label: useEnvFile, data: useEnvFile, description: localize('local', 'Local') },
{ label: useExistingConfig, data: useExistingConfig, description: localize('remote', 'Remote') },
{ label: useEnvFile, data: useEnvFile, description: envPath },
{ label: useExistingConfig, data: useExistingConfig, description: context.containerApp?.name },
];

const result: string = (await context.ui.showQuickPick(picks, {
Expand Down

0 comments on commit a086062

Please sign in to comment.