55
66import { AzureWizardExecuteStep , AzureWizardPromptStep , IAzureQuickPickItem , IWizardOptions } from '@microsoft/vscode-azext-utils' ;
77import { QuickPickOptions } from 'vscode' ;
8- import { previewPythonModel , ProjectLanguage , pysteinModelSetting , pythonNewModelPreview } from '../../constants' ;
8+ import { previewPythonModel , ProjectLanguage , pythonNewModelPreview } from '../../constants' ;
99import { localize } from '../../localize' ;
10- import { getWorkspaceSetting } from '../../vsCodeConfig/settings' ;
1110import { IProjectWizardContext } from '../createNewProject/IProjectWizardContext' ;
1211import { DotnetInitVSCodeStep } from './InitVSCodeStep/DotnetInitVSCodeStep' ;
1312import { DotnetScriptInitVSCodeStep } from './InitVSCodeStep/DotnetScriptInitVSCodeStep' ;
@@ -23,7 +22,7 @@ export class InitVSCodeLanguageStep extends AzureWizardPromptStep<IProjectWizard
2322
2423 public async prompt ( context : IProjectWizardContext ) : Promise < void > {
2524 // Display all languages, even if we don't have full support for them
26- let languagePicks : IAzureQuickPickItem < { language : ProjectLanguage , model ?: number } > [ ] = [
25+ const languagePicks : IAzureQuickPickItem < { language : ProjectLanguage , model ?: number } > [ ] = [
2726 { label : ProjectLanguage . CSharp , data : { language : ProjectLanguage . CSharp } } ,
2827 { label : ProjectLanguage . CSharpScript , data : { language : ProjectLanguage . CSharpScript } } ,
2928 { label : ProjectLanguage . FSharp , data : { language : ProjectLanguage . FSharp } } ,
@@ -37,12 +36,6 @@ export class InitVSCodeLanguageStep extends AzureWizardPromptStep<IProjectWizard
3736 { label : ProjectLanguage . Custom , data : { language : ProjectLanguage . Custom } }
3837 ] ;
3938
40- if ( ! getWorkspaceSetting ( pysteinModelSetting ) ) {
41- languagePicks = languagePicks . filter ( p => {
42- return p . label !== pythonNewModelPreview ;
43- } )
44- }
45-
4639 const options : QuickPickOptions = { placeHolder : localize ( 'selectLanguage' , "Select your project's language" ) } ;
4740 const option = await context . ui . showQuickPick ( languagePicks , options ) ;
4841 context . language = option . data . language ;
0 commit comments