@@ -923,28 +923,28 @@ export class OperationExplorer {
923923 if ( tool && ! tool . no_binaries ) { /* have online package */
924924
925925 const pickItems : vscode . QuickPickItem [ ] = [
926- {
927- label : 'Online' ,
928- description : 'Download from website and install' ,
929- detail : view_str$prompt$tool_install_mode_online
930- } ,
931926 {
932927 label : 'Local' ,
933928 description : 'Use existed installation directory' ,
934929 detail : view_str$prompt$tool_install_mode_local
930+ } ,
931+ {
932+ label : 'Online' ,
933+ description : 'Download from website and install' ,
934+ detail : view_str$prompt$tool_install_mode_online
935935 }
936936 ] ;
937937
938- const onlineInstall = await vscode . window . showQuickPick ( pickItems , {
938+ const select = await vscode . window . showQuickPick ( pickItems , {
939939 canPickMany : false ,
940940 placeHolder : view_str$prompt$select_tool_install_mode
941941 } ) ;
942942
943- if ( onlineInstall == undefined ) {
943+ if ( select == undefined ) {
944944 return ;
945945 }
946946
947- if ( onlineInstall . label == 'Online' ) {
947+ if ( select . label == 'Online' ) {
948948 await resInstaller . installTool ( item . type ) ;
949949 return ;
950950 }
@@ -973,6 +973,10 @@ export class OperationExplorer {
973973 } ;
974974 }
975975
976+ if ( item . type !== 'Keil_C51' && ! item . label . includes ( 'MDK' ) &&
977+ item . type !== 'IAR_ARM' && item . type !== 'IAR_STM8' )
978+ dialogOption . defaultUri = vscode . Uri . file ( ResManager . instance ( ) . getEideToolsInstallDir ( ) ) ;
979+
976980 const path = await vscode . window . showOpenDialog ( dialogOption ) ;
977981 if ( path === undefined || path . length === 0 ) {
978982 return ;
0 commit comments