File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed
arduino-ide-extension/src/browser Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,6 @@ export class AuthenticationClientService
8585 registry . registerCommand ( CloudUserCommands . LOGOUT , {
8686 execute : ( ) => this . service . logout ( ) ,
8787 } ) ;
88- registry . registerCommand ( CloudUserCommands . REGISTER , {
89- execute : ( ) =>
90- this . windowService . openNewWindow (
91- this . arduinoPreferences [ 'arduino.auth.registerUri' ] ,
92- { external : true }
93- ) ,
94- } ) ;
9588 }
9689
9790 notifySessionDidChange ( session : AuthenticationSession | undefined ) : void {
Original file line number Diff line number Diff line change @@ -11,11 +11,6 @@ export namespace CloudUserCommands {
1111 label : 'Sign Out' ,
1212 } ;
1313
14- export const REGISTER : Command = {
15- id : 'arduino-cloud--register' ,
16- label : 'Register' ,
17- } ;
18-
1914 export const OPEN_PROFILE_CONTEXT_MENU : Command = {
2015 id : 'arduino-cloud-sketchbook--open-profile-menu' ,
2116 label : 'Contextual menu' ,
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ import { CompositeTreeNode } from '@theia/core/lib/browser';
1212import { shell } from 'electron' ;
1313import { SketchbookTreeWidget } from '../sketchbook/sketchbook-tree-widget' ;
1414
15+ const LEARN_MORE_URL =
16+ 'https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-cloud-sketch-sync' ;
17+
1518@injectable ( )
1619export class CloudSketchbookTreeWidget extends SketchbookTreeWidget {
1720 @inject ( AuthenticationClientService )
@@ -129,9 +132,9 @@ export class CloudSketchbookTreeWidget extends SketchbookTreeWidget {
129132 < div
130133 className = "link sign-in-learnmore"
131134 onClick = { ( ) =>
132- this . commandRegistry . executeCommand (
133- CloudUserCommands . REGISTER . id
134- )
135+ this . windowService . openNewWindow ( LEARN_MORE_URL , {
136+ external : true ,
137+ } )
135138 }
136139 >
137140 Learn more
You can’t perform that action at this time.
0 commit comments