Skip to content

Commit

Permalink
Merge pull request #647 from Microsoft/ej/betaCreate
Browse files Browse the repository at this point in the history
Fix creating function app with beta setting
  • Loading branch information
StephenWeatherford authored Sep 24, 2018
2 parents 5f92c18 + e7786a3 commit ce4c9f9
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 ce4c9f9

Please sign in to comment.