Skip to content

Commit c69acd6

Browse files
Remove deprecated serverless library link from project creation (#4747)
* Initial plan * Remove "View sample projects" link from project creation Co-authored-by: alexweininger <[email protected]> * Remove serverless library reference from README Co-authored-by: alexweininger <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: alexweininger <[email protected]>
1 parent 7771001 commit c69acd6

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<!-- endregion exclude-from-marketplace -->
88

9-
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.
9+
Use the Azure Functions extension to quickly create, debug, manage, and deploy serverless apps directly from VS Code.
1010

1111
**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.**
1212

src/commands/createNewProject/NewProjectLanguageStep.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { AzureWizardPromptStep, UserCancelledError, type AzureWizardExecuteStep, type IAzureQuickPickItem, type IWizardOptions } from '@microsoft/vscode-azext-utils';
6+
import { AzureWizardPromptStep, type AzureWizardExecuteStep, type IAzureQuickPickItem, type IWizardOptions } from '@microsoft/vscode-azext-utils';
77
import { type QuickPickOptions } from 'vscode';
88
import { ProjectLanguage, nodeDefaultModelVersion, nodeLearnMoreLink, nodeModels, pythonDefaultModelVersion, pythonLearnMoreLink, pythonModels } from '../../constants';
99
import { localize } from '../../localize';
1010
import { TemplateSchemaVersion } from '../../templates/TemplateProviderBase';
1111
import { nonNullProp } from '../../utils/nonNull';
12-
import { openUrl } from '../../utils/openUrl';
1312
import { FunctionListStep } from '../createFunction/FunctionListStep';
1413
import { addInitVSCodeSteps } from '../initProjectForVSCode/InitVSCodeLanguageStep';
1514
import { type IProjectWizardContext } from './IProjectWizardContext';
@@ -39,7 +38,7 @@ export class NewProjectLanguageStep extends AzureWizardPromptStep<IProjectWizard
3938

4039
public async prompt(context: IProjectWizardContext): Promise<void> {
4140
// Only display 'supported' languages that can be debugged in VS Code
42-
let languagePicks: IAzureQuickPickItem<{ language: ProjectLanguage, model?: number } | undefined>[] = [
41+
let languagePicks: IAzureQuickPickItem<{ language: ProjectLanguage, model?: number }>[] = [
4342
{ label: ProjectLanguage.JavaScript, data: { language: ProjectLanguage.JavaScript } },
4443
{ label: ProjectLanguage.TypeScript, data: { language: ProjectLanguage.TypeScript } },
4544
{ label: ProjectLanguage.CSharp, data: { language: ProjectLanguage.CSharp } },
@@ -50,23 +49,16 @@ export class NewProjectLanguageStep extends AzureWizardPromptStep<IProjectWizard
5049
{ label: localize('customHandler', 'Custom Handler'), data: { language: ProjectLanguage.Custom } }
5150
];
5251

53-
languagePicks.push({ label: localize('viewSamples', '$(link-external) View sample projects'), data: undefined, suppressPersistence: true });
54-
5552
if (context.languageFilter) {
5653
languagePicks = languagePicks.filter(p => {
57-
return p.data !== undefined && context.languageFilter?.test(p.data.language);
54+
return context.languageFilter?.test(p.data.language);
5855
});
5956
}
6057

6158
const options: QuickPickOptions = { placeHolder: localize('selectLanguage', 'Select a language') };
6259
const result = (await context.ui.showQuickPick(languagePicks, options)).data;
63-
if (result === undefined) {
64-
await openUrl('https://aka.ms/AA4ul9b');
65-
throw new UserCancelledError('viewSampleProjects');
66-
} else {
67-
context.language = result.language;
68-
this.setTemplateSchemaVersion(context);
69-
}
60+
context.language = result.language;
61+
this.setTemplateSchemaVersion(context);
7062
}
7163

7264
public shouldPrompt(context: IProjectWizardContext): boolean {

0 commit comments

Comments
 (0)