@@ -84,6 +84,10 @@ export class Help extends Contribution {
84
84
Help . Commands . VISIT_ARDUINO ,
85
85
createOpenHandler ( 'https://www.arduino.cc/' )
86
86
) ;
87
+ registry . registerCommand (
88
+ Help . Commands . PRIVACY_POLICY ,
89
+ createOpenHandler ( 'https://www.arduino.cc/en/privacy-policy' )
90
+ ) ;
87
91
}
88
92
89
93
registerMenus ( registry : MenuModelRegistry ) : void {
@@ -117,9 +121,13 @@ export class Help extends Contribution {
117
121
order : '6' ,
118
122
} ) ;
119
123
registry . registerMenuAction ( ArduinoMenus . HELP__FIND_GROUP , {
120
- commandId : IDEUpdaterCommands . CHECK_FOR_UPDATES . id ,
124
+ commandId : Help . Commands . PRIVACY_POLICY . id ,
121
125
order : '7' ,
122
126
} ) ;
127
+ registry . registerMenuAction ( ArduinoMenus . HELP__FIND_GROUP , {
128
+ commandId : IDEUpdaterCommands . CHECK_FOR_UPDATES . id ,
129
+ order : '8' ,
130
+ } ) ;
123
131
}
124
132
125
133
registerKeybindings ( registry : KeybindingRegistry ) : void {
@@ -167,5 +175,10 @@ export namespace Help {
167
175
label : nls . localize ( 'arduino/help/visit' , 'Visit Arduino.cc' ) ,
168
176
category : 'Arduino' ,
169
177
} ;
178
+ export const PRIVACY_POLICY : Command = {
179
+ id : 'arduino-privacy-policy' ,
180
+ label : nls . localize ( 'arduino/help/privacyPolicy' , 'Privacy Policy' ) ,
181
+ category : 'Arduino' ,
182
+ } ;
170
183
}
171
184
}
0 commit comments