diff --git a/README.md b/README.md index 0e86ab20c..ea5e55649 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ -Use the Azure Functions extension to quickly create, debug, manage, and deploy serverless apps directly from VS Code. Check out the [Azure serverless community library](https://aka.ms/AA4ul9b) to view sample projects. +Use the Azure Functions extension to quickly create, debug, manage, and deploy serverless apps directly from VS Code. **Visit the [wiki](https://github.com/Microsoft/vscode-azurefunctions/wiki) for more information about Azure Functions and how to use the advanced features of this extension.** diff --git a/src/commands/createNewProject/NewProjectLanguageStep.ts b/src/commands/createNewProject/NewProjectLanguageStep.ts index 01bade5a9..a3fc69240 100644 --- a/src/commands/createNewProject/NewProjectLanguageStep.ts +++ b/src/commands/createNewProject/NewProjectLanguageStep.ts @@ -3,13 +3,12 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import { AzureWizardPromptStep, UserCancelledError, type AzureWizardExecuteStep, type IAzureQuickPickItem, type IWizardOptions } from '@microsoft/vscode-azext-utils'; +import { AzureWizardPromptStep, type AzureWizardExecuteStep, type IAzureQuickPickItem, type IWizardOptions } from '@microsoft/vscode-azext-utils'; import { type QuickPickOptions } from 'vscode'; import { ProjectLanguage, nodeDefaultModelVersion, nodeLearnMoreLink, nodeModels, pythonDefaultModelVersion, pythonLearnMoreLink, pythonModels } from '../../constants'; import { localize } from '../../localize'; import { TemplateSchemaVersion } from '../../templates/TemplateProviderBase'; import { nonNullProp } from '../../utils/nonNull'; -import { openUrl } from '../../utils/openUrl'; import { FunctionListStep } from '../createFunction/FunctionListStep'; import { addInitVSCodeSteps } from '../initProjectForVSCode/InitVSCodeLanguageStep'; import { type IProjectWizardContext } from './IProjectWizardContext'; @@ -39,7 +38,7 @@ export class NewProjectLanguageStep extends AzureWizardPromptStep { // Only display 'supported' languages that can be debugged in VS Code - let languagePicks: IAzureQuickPickItem<{ language: ProjectLanguage, model?: number } | undefined>[] = [ + let languagePicks: IAzureQuickPickItem<{ language: ProjectLanguage, model?: number }>[] = [ { label: ProjectLanguage.JavaScript, data: { language: ProjectLanguage.JavaScript } }, { label: ProjectLanguage.TypeScript, data: { language: ProjectLanguage.TypeScript } }, { label: ProjectLanguage.CSharp, data: { language: ProjectLanguage.CSharp } }, @@ -50,23 +49,16 @@ export class NewProjectLanguageStep extends AzureWizardPromptStep { - return p.data !== undefined && context.languageFilter?.test(p.data.language); + return context.languageFilter?.test(p.data.language); }); } const options: QuickPickOptions = { placeHolder: localize('selectLanguage', 'Select a language') }; const result = (await context.ui.showQuickPick(languagePicks, options)).data; - if (result === undefined) { - await openUrl('https://aka.ms/AA4ul9b'); - throw new UserCancelledError('viewSampleProjects'); - } else { - context.language = result.language; - this.setTemplateSchemaVersion(context); - } + context.language = result.language; + this.setTemplateSchemaVersion(context); } public shouldPrompt(context: IProjectWizardContext): boolean {