@@ -85,6 +85,10 @@ export class Help extends Contribution {
85
85
Help . Commands . VISIT_ARDUINO ,
86
86
createOpenHandler ( 'https://www.arduino.cc/' )
87
87
) ;
88
+ registry . registerCommand (
89
+ Help . Commands . PRIVACY_POLICY ,
90
+ createOpenHandler ( 'https://www.arduino.cc/en/privacy-policy' )
91
+ ) ;
88
92
}
89
93
90
94
registerMenus ( registry : MenuModelRegistry ) : void {
@@ -122,9 +126,13 @@ export class Help extends Contribution {
122
126
order : '6' ,
123
127
} ) ;
124
128
registry . registerMenuAction ( ArduinoMenus . HELP__FIND_GROUP , {
125
- commandId : IDEUpdaterCommands . CHECK_FOR_UPDATES . id ,
129
+ commandId : Help . Commands . PRIVACY_POLICY . id ,
126
130
order : '7' ,
127
131
} ) ;
132
+ registry . registerMenuAction ( ArduinoMenus . HELP__FIND_GROUP , {
133
+ commandId : IDEUpdaterCommands . CHECK_FOR_UPDATES . id ,
134
+ order : '8' ,
135
+ } ) ;
128
136
}
129
137
130
138
registerKeybindings ( registry : KeybindingRegistry ) : void {
@@ -172,5 +180,10 @@ export namespace Help {
172
180
label : nls . localize ( 'arduino/help/visit' , 'Visit Arduino.cc' ) ,
173
181
category : 'Arduino' ,
174
182
} ;
183
+ export const PRIVACY_POLICY : Command = {
184
+ id : 'arduino-privacy-policy' ,
185
+ label : nls . localize ( 'arduino/help/privacyPolicy' , 'Privacy Policy' ) ,
186
+ category : 'Arduino' ,
187
+ } ;
175
188
}
176
189
}
0 commit comments