Skip to content

Commit ce4c9f9

Browse files
Merge pull request #647 from Microsoft/ej/betaCreate
Fix creating function app with beta setting
2 parents 5f92c18 + e7786a3 commit ce4c9f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tree/FunctionAppProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { addExtensionUserAgent, createTreeItemsWithErrorHandling, IActionContext
1010
import { ProjectLanguage, projectLanguageSetting, ProjectRuntime, projectRuntimeSetting } from '../constants';
1111
import { tryGetLocalRuntimeVersion } from '../funcCoreTools/tryGetLocalRuntimeVersion';
1212
import { localize } from "../localize";
13-
import { getFuncExtensionSetting } from '../ProjectSettings';
13+
import { convertStringToRuntime, getFuncExtensionSetting } from '../ProjectSettings';
1414
import { getCliFeedAppSettings } from '../utils/getCliFeedJson';
1515
import { FunctionAppTreeItem } from "./FunctionAppTreeItem";
1616

@@ -98,7 +98,7 @@ export class FunctionAppProvider implements IChildProvider {
9898

9999
async function getDefaultRuntime(actionContext: IActionContext): Promise<ProjectRuntime> {
100100
// Try to get VS Code setting for runtime (aka if they have a project open)
101-
let runtime: string | undefined = getFuncExtensionSetting(projectRuntimeSetting);
101+
let runtime: string | undefined = convertStringToRuntime(getFuncExtensionSetting(projectRuntimeSetting));
102102
actionContext.properties.runtimeSource = 'VSCodeSetting';
103103

104104
if (!runtime) {

0 commit comments

Comments
 (0)