@@ -31,12 +31,14 @@ export async function createProject(config:IotConfiguration,devices:Array<IotDev
3131 }
3232 //Select Device
3333 let itemDevices :Array < ItemQuickPick > = [ ] ;
34- devices . forEach ( ( device ) => {
35- const item = new ItemQuickPick ( < string > device . label ,
36- `${ device . Information . BoardName } ${ device . Information . Architecture } ` , device ) ;
34+ devices . forEach ( ( device ) => {
35+ const label = `${ device . label } ` ;
36+ const description = `${ device . Information . Architecture } ` ;
37+ const detail = `$(circuit-board) ${ device . Information . BoardName } $(terminal-linux) ${ device . Information . OsDescription } ${ device . Information . OsKernel } $(account) ${ device . Account . UserName } ` ;
38+ const item = new ItemQuickPick ( label , description , device , detail ) ;
3739 itemDevices . push ( item ) ;
3840 } ) ;
39- let SELECTED_ITEM = await vscode . window . showQuickPick ( itemDevices , { title : 'Choose a device (1/5):' , } ) ;
41+ let SELECTED_ITEM = await vscode . window . showQuickPick ( itemDevices , { title : 'Choose a device (1/4)' , placeHolder : `Developer board` } ) ;
4042 if ( ! SELECTED_ITEM ) return ;
4143 const selectDevice = < IotDevice > SELECTED_ITEM . value ;
4244 //Select template
@@ -49,16 +51,16 @@ export async function createProject(config:IotConfiguration,devices:Array<IotDev
4951 let itemTemplates :Array < ItemQuickPick > = [ ] ;
5052 listTemplates . forEach ( ( template ) => {
5153 const item = new ItemQuickPick ( < string > template . Attributes . Label ,
52- `${ template . Attributes . Detail } . Language: ${ template . Attributes . Language } ` , template ) ;
54+ `Language: ${ template . Attributes . Language } ` , template , ` ${ template . Attributes . Detail } ` ) ;
5355 itemTemplates . push ( item ) ;
5456 } ) ;
55- SELECTED_ITEM = await vscode . window . showQuickPick ( itemTemplates , { title : 'Choose a template (2/5):' , } ) ;
57+ SELECTED_ITEM = await vscode . window . showQuickPick ( itemTemplates , { title : 'Choose a template (2/5)' , placeHolder : `Template` } ) ;
5658 if ( ! SELECTED_ITEM ) return ;
5759 const selectTemplate = < IotTemplate > SELECTED_ITEM . value ;
5860 //Select name project
5961 let nameProject = await vscode . window . showInputBox ( {
60- prompt : 'prompt ' ,
61- title : 'Application name (3/5). Enter the name of your application ' ,
62+ prompt : 'Enter the name of your application ' ,
63+ title : 'Application name (3/5)' ,
6264 value : selectTemplate . Attributes . ProjName
6365 } ) ;
6466 if ( ! nameProject ) return ;
@@ -76,7 +78,7 @@ export async function createProject(config:IotConfiguration,devices:Array<IotDev
7678 canSelectFolders : true ,
7779 canSelectMany : false ,
7880 title : "Select a folder for the project (4/5)" ,
79- openLabel : 'Select' ,
81+ openLabel : 'Select folder ' ,
8082 } ;
8183 let folder :string ;
8284 if ( config . ExtMode == vscode . ExtensionMode . Production ) {
@@ -90,8 +92,8 @@ export async function createProject(config:IotConfiguration,devices:Array<IotDev
9092 //Project path confirmation
9193 folder = `${ folder } \\${ nameProject } ` ;
9294 let selectFolder = await vscode . window . showInputBox ( {
93- prompt : 'prompt ' ,
94- title : 'Project path (5/5). Confirm project location ' ,
95+ prompt : 'Confirm project location ' ,
96+ title : 'Project path (5/5)' ,
9597 value : folder
9698 } ) ;
9799 if ( ! selectFolder ) return ;
@@ -115,7 +117,7 @@ export async function createProject(config:IotConfiguration,devices:Array<IotDev
115117 const item = new ItemQuickPick ( value [ 1 ] , "" , value [ 0 ] ) ;
116118 itemTarget . push ( item ) ;
117119 } ) ;
118- SELECTED_ITEM = await vscode . window . showQuickPick ( itemTarget , { title : 'Choose a .NET framework:' , } ) ;
120+ SELECTED_ITEM = await vscode . window . showQuickPick ( itemTarget , { title : 'Choose a .NET framework' , placeHolder : `.NET framework` } ) ;
119121 if ( ! SELECTED_ITEM ) return ;
120122 //
121123 values . set ( "%{project.dotnet.targetframework}" , < string > SELECTED_ITEM . value ) ;
0 commit comments