@@ -85,6 +85,10 @@ export class Help extends Contribution {
8585 Help . Commands . VISIT_ARDUINO ,
8686 createOpenHandler ( 'https://www.arduino.cc/' )
8787 ) ;
88+ registry . registerCommand (
89+ Help . Commands . PRIVACY_POLICY ,
90+ createOpenHandler ( 'https://www.arduino.cc/en/privacy-policy' )
91+ ) ;
8892 }
8993
9094 registerMenus ( registry : MenuModelRegistry ) : void {
@@ -122,9 +126,13 @@ export class Help extends Contribution {
122126 order : '6' ,
123127 } ) ;
124128 registry . registerMenuAction ( ArduinoMenus . HELP__FIND_GROUP , {
125- commandId : IDEUpdaterCommands . CHECK_FOR_UPDATES . id ,
129+ commandId : Help . Commands . PRIVACY_POLICY . id ,
126130 order : '7' ,
127131 } ) ;
132+ registry . registerMenuAction ( ArduinoMenus . HELP__FIND_GROUP , {
133+ commandId : IDEUpdaterCommands . CHECK_FOR_UPDATES . id ,
134+ order : '8' ,
135+ } ) ;
128136 }
129137
130138 registerKeybindings ( registry : KeybindingRegistry ) : void {
@@ -172,5 +180,10 @@ export namespace Help {
172180 label : nls . localize ( 'arduino/help/visit' , 'Visit Arduino.cc' ) ,
173181 category : 'Arduino' ,
174182 } ;
183+ export const PRIVACY_POLICY : Command = {
184+ id : 'arduino-privacy-policy' ,
185+ label : nls . localize ( 'arduino/help/privacyPolicy' , 'Privacy Policy' ) ,
186+ category : 'Arduino' ,
187+ } ;
175188 }
176189}
0 commit comments