File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
arduino-ide-extension/src/browser/contributions Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -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 {
@@ -120,6 +124,10 @@ export class Help extends Contribution {
120124 commandId : IDEUpdaterCommands . CHECK_FOR_UPDATES . id ,
121125 order : '7' ,
122126 } ) ;
127+ registry . registerMenuAction ( ArduinoMenus . HELP__FIND_GROUP , {
128+ commandId : Help . Commands . PRIVACY_POLICY . 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}
Original file line number Diff line number Diff line change 238238 "reference" : " Reference" ,
239239 "findInReference" : " Find in Reference" ,
240240 "faq" : " Frequently Asked Questions" ,
241- "visit" : " Visit Arduino.cc"
241+ "visit" : " Visit Arduino.cc" ,
242+ "privacyPolicy" : " Privacy Policy"
242243 },
243244 "certificate" : {
244245 "uploadRootCertificates" : " Upload SSL Root Certificates" ,
You can’t perform that action at this time.
0 commit comments