@@ -19,17 +19,20 @@ enum StatusBarItemKey {
1919
2020const  STATUS_BAR_ITEMS : { 
2121  [ key : string ] : { 
22+     name : string ; 
2223    text : string ; 
2324    rustText ?: string ; 
2425    zephyrText ?: string ; 
2526    command : string ; 
2627    tooltip : string ; 
28+     rustTooltip ?: string ; 
2729    zephyrTooltip ?: string ; 
2830    rustSupport : boolean ; 
2931    zephyrSupport : boolean ; 
3032  } ; 
3133}  =  { 
3234  [ StatusBarItemKey . compile ] : { 
35+     name : "Raspberry Pi Pico - Compile Project" , 
3336    // alt. "$(gear) Compile" 
3437    text : "$(file-binary) Compile" , 
3538    command : `${ extensionName } ${ COMPILE_PROJECT }  , 
@@ -38,6 +41,7 @@ const STATUS_BAR_ITEMS: {
3841    zephyrSupport : true , 
3942  } , 
4043  [ StatusBarItemKey . run ] : { 
44+     name : "Raspberry Pi Pico - Run Project" , 
4145    // alt. "$(gear) Compile" 
4246    text : "$(run) Run" , 
4347    command : `${ extensionName } ${ RUN_PROJECT }  , 
@@ -46,6 +50,7 @@ const STATUS_BAR_ITEMS: {
4650    zephyrSupport : true , 
4751  } , 
4852  [ StatusBarItemKey . picoSDKQuickPick ] : { 
53+     name : "Raspberry Pi Pico - Select SDK Version" , 
4954    text : "Pico SDK: <version>" , 
5055    zephyrText : "Zephyr version: <version>" , 
5156    command : `${ extensionName } ${ SWITCH_SDK }  , 
@@ -55,10 +60,12 @@ const STATUS_BAR_ITEMS: {
5560    zephyrSupport : true , 
5661  } , 
5762  [ StatusBarItemKey . picoBoardQuickPick ] : { 
63+     name : "Raspberry Pi Pico - Select Board" , 
5864    text : "Board: <board>" , 
5965    rustText : "Chip: <chip>" , 
6066    command : `${ extensionName } ${ SWITCH_BOARD }  , 
61-     tooltip : "Select Chip" , 
67+     tooltip : "Select board" , 
68+     rustTooltip : "Select Chip" , 
6269    rustSupport : true , 
6370    zephyrSupport : true , 
6471  } , 
@@ -78,6 +85,7 @@ export default class UI {
7885    Object . entries ( STATUS_BAR_ITEMS ) . forEach ( ( [ key ,  value ] )  =>  { 
7986      this . _items [ key ]  =  this . createStatusBarItem ( 
8087        key , 
88+         value . name , 
8189        value . text , 
8290        value . command , 
8391        value . tooltip 
@@ -102,6 +110,13 @@ export default class UI {
102110          if  ( STATUS_BAR_ITEMS [ item . id ] . zephyrTooltip )  { 
103111            item . tooltip  =  STATUS_BAR_ITEMS [ item . id ] . zephyrTooltip ; 
104112          } 
113+         }  else  if  ( isRustProject )  { 
114+           if  ( STATUS_BAR_ITEMS [ item . id ] . rustText )  { 
115+             item . text  =  STATUS_BAR_ITEMS [ item . id ] . rustText ! ; 
116+           } 
117+           if  ( STATUS_BAR_ITEMS [ item . id ] . rustTooltip )  { 
118+             item . tooltip  =  STATUS_BAR_ITEMS [ item . id ] . rustTooltip ; 
119+           } 
105120        } 
106121        item . show ( ) ; 
107122      } ) ; 
@@ -160,11 +175,13 @@ export default class UI {
160175
161176  private  createStatusBarItem ( 
162177    key : string , 
178+     name : string , 
163179    text : string , 
164180    command : string , 
165181    tooltip : string 
166182  ) : StatusBarItem  { 
167183    const  item  =  window . createStatusBarItem ( key ,  StatusBarAlignment . Right ) ; 
184+     item . name  =  name ; 
168185    item . text  =  text ; 
169186    item . command  =  command ; 
170187    item . tooltip  =  tooltip ; 
0 commit comments