@@ -84,6 +84,10 @@ export class Help extends Contribution {
8484 Help . Commands . VISIT_ARDUINO ,
8585 createOpenHandler ( 'https://www.arduino.cc/' )
8686 ) ;
87+ registry . registerCommand (
88+ Help . Commands . PRIVACY_POLICY ,
89+ createOpenHandler ( 'https://www.arduino.cc/en/privacy-policy' )
90+ ) ;
8791 }
8892
8993 registerMenus ( registry : MenuModelRegistry ) : void {
@@ -117,9 +121,13 @@ export class Help extends Contribution {
117121 order : '6' ,
118122 } ) ;
119123 registry . registerMenuAction ( ArduinoMenus . HELP__FIND_GROUP , {
120- commandId : IDEUpdaterCommands . CHECK_FOR_UPDATES . id ,
124+ commandId : Help . Commands . PRIVACY_POLICY . id ,
121125 order : '7' ,
122126 } ) ;
127+ registry . registerMenuAction ( ArduinoMenus . HELP__FIND_GROUP , {
128+ commandId : IDEUpdaterCommands . CHECK_FOR_UPDATES . id ,
129+ order : '8' ,
130+ } ) ;
123131 }
124132
125133 registerKeybindings ( registry : KeybindingRegistry ) : void {
@@ -167,5 +175,10 @@ export namespace Help {
167175 label : nls . localize ( 'arduino/help/visit' , 'Visit Arduino.cc' ) ,
168176 category : 'Arduino' ,
169177 } ;
178+ export const PRIVACY_POLICY : Command = {
179+ id : 'arduino-privacy-policy' ,
180+ label : nls . localize ( 'arduino/help/privacyPolicy' , 'Privacy Policy' ) ,
181+ category : 'Arduino' ,
182+ } ;
170183 }
171184}
0 commit comments