Skip to content

Commit

Permalink
Fix creating function app with beta setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ejizba committed Sep 23, 2018
1 parent 5f92c18 commit e7786a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tree/FunctionAppProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { addExtensionUserAgent, createTreeItemsWithErrorHandling, IActionContext
import { ProjectLanguage, projectLanguageSetting, ProjectRuntime, projectRuntimeSetting } from '../constants';
import { tryGetLocalRuntimeVersion } from '../funcCoreTools/tryGetLocalRuntimeVersion';
import { localize } from "../localize";
import { getFuncExtensionSetting } from '../ProjectSettings';
import { convertStringToRuntime, getFuncExtensionSetting } from '../ProjectSettings';
import { getCliFeedAppSettings } from '../utils/getCliFeedJson';
import { FunctionAppTreeItem } from "./FunctionAppTreeItem";

Expand Down Expand Up @@ -98,7 +98,7 @@ export class FunctionAppProvider implements IChildProvider {

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

if (!runtime) {
Expand Down

0 comments on commit e7786a3

Please sign in to comment.