File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/commands/sovereignCloud Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 44*--------------------------------------------------------------------------------------------*/
55
66import { AzureWizardExecuteStep } from "@microsoft/vscode-azext-utils" ;
7+ import * as vscode from 'vscode' ;
78import { settingUtils } from "../../utils/settingUtils" ;
89import { ConfigureSovereignCloudContext } from "./ConfigureSovereignCloudContext" ;
910
1011export class SovereignCloudSetStep extends AzureWizardExecuteStep < ConfigureSovereignCloudContext > {
1112 public priority : number = 10 ;
1213
1314 public async execute ( context : ConfigureSovereignCloudContext ) : Promise < void > {
14- await settingUtils . updateGlobalSetting ( 'environment' , context . sovereignCloud , 'microsoft-sovereign-cloud' ) ;
15+ if ( context . sovereignCloud === 'custom' ) {
16+ await vscode . commands . executeCommand ( 'workbench.action.openSettings' , 'microsoft-sovereign-cloud' ) ;
17+ } else {
18+ await settingUtils . updateGlobalSetting ( 'environment' , context . sovereignCloud , 'microsoft-sovereign-cloud' ) ;
19+ }
1520 }
1621
1722 public shouldExecute ( ) : boolean {
You can’t perform that action at this time.
0 commit comments