3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
- import { AzExtFsExtra , AzureWizardExecuteStepWithActivityOutput , parseError , type IParsedError } from '@microsoft/vscode-azext-utils' ;
6
+ import { AzExtFsExtra , AzureWizardExecuteStepWithActivityOutput , nonNullValue , parseError , type IParsedError } from '@microsoft/vscode-azext-utils' ;
7
7
import * as path from "path" ;
8
8
import { type Progress } from 'vscode' ;
9
9
import { ConnectionKey , DurableBackend , hostFileName , ProjectLanguage } from '../../../constants' ;
@@ -16,6 +16,7 @@ import { cpUtils } from '../../../utils/cpUtils';
16
16
import { durableUtils } from '../../../utils/durableUtils' ;
17
17
import { pythonUtils } from '../../../utils/pythonUtils' ;
18
18
import { venvUtils } from '../../../utils/venvUtils' ;
19
+ import { tryGetVariableSubstitutedKey } from '../../appSettings/connectionSettings/getVariableSubstitutedKey' ;
19
20
import { type IFunctionWizardContext } from '../IFunctionWizardContext' ;
20
21
21
22
export class DurableProjectConfigureStep < T extends IFunctionWizardContext > extends AzureWizardExecuteStepWithActivityOutput < T > {
@@ -87,7 +88,7 @@ export class DurableProjectConfigureStep<T extends IFunctionWizardContext> exten
87
88
ext . outputChannel . appendLog ( localize ( 'extensionBundlePreview' , 'Updated "host.json" extension bundle to preview version to enable new DTS features.' ) ) ;
88
89
}
89
90
await setLocalAppSetting ( context , context . projectPath , ConnectionKey . DTS , '' , MismatchBehavior . Overwrite ) ;
90
- await setLocalAppSetting ( context , context . projectPath , ConnectionKey . DTSHub , '' , MismatchBehavior . Overwrite ) ;
91
+ await setLocalAppSetting ( context , context . projectPath , nonNullValue ( tryGetVariableSubstitutedKey ( ConnectionKey . DTSHub ) ) , '' , MismatchBehavior . Overwrite ) ;
91
92
break ;
92
93
case DurableBackend . SQL :
93
94
hostJson . extensions . durableTask = this . getDefaultSqlTaskConfig ( ) ;
0 commit comments