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