File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,24 +62,13 @@ const plugin: JupyterFrontEndPlugin<void> = {
6262 async function loadSettings (
6363 allSettings : ISettingRegistry . ISettings
6464 ) : Promise < void > {
65-
66- //Debug
67- await checkForRepoUpdates ( settings . get ( 'repos' ) . composite as any as IRepository [ ] ) ;
68- console . log ( "Brungle3" )
6965 const reloadWidget = allSettings . get ( 'reloadWidget' )
7066 . composite as boolean ;
7167
72- //Debug
73- await checkForRepoUpdates ( settings . get ( 'repos' ) . composite as any as IRepository [ ] ) ;
74- console . log ( `Brungle4 ${ reloadWidget } ` )
7568 if ( reloadWidget ) {
76- console . log ( `Brungle5` ) ;
7769 await nbgitpullerUpdateButton ( app , allSettings ) ;
78- console . log ( `Brungle6` ) ;
7970 await repoUpdateProbe ( allSettings ) ;
80- console . log ( `Brungle7` ) ;
8171 await allSettings . set ( 'reloadWidget' , false ) ;
82- console . log ( `Brungle8` ) ;
8372 }
8473 }
8574
Original file line number Diff line number Diff line change @@ -99,18 +99,21 @@ export async function makeNbgitpullerRequest(
9999export async function repoUpdateProbe (
100100 allSettings : ISettingRegistry . ISettings
101101) : Promise < void > {
102- console . log ( "Grooble2 " ) ;
102+ console . log ( "Flim1 " ) ;
103103 const repositories = allSettings . get ( 'repos' )
104104 . composite as any as IRepository [ ] ;
105105 const probeInterval = allSettings . get ( 'probeInterval' ) . composite as number ;
106106
107+ console . log ( "Flim2" ) ;
107108 // Stop previous interval (if settings were changed)
108109 clearInterval ( intervalID ) ;
109110
111+ console . log ( "Flim3" ) ;
110112 // Create interval
111113 intervalID = setInterval ( async ( ) => {
112114 checkForUpdatesAndSetDisplay ( repositories ) ;
113115 } , probeInterval ) ;
116+ console . log ( "Flim4" ) ;
114117}
115118
116119export async function checkForRepoUpdates (
@@ -175,6 +178,7 @@ export async function checkForRepoUpdates(
175178export async function checkForUpdatesAndSetDisplay (
176179 repositories : IRepository [ ]
177180) {
181+ console . log ( "UPDATEDISP1" )
178182 // Check for updates
179183 const repoUpdates = await checkForRepoUpdates ( repositories ) ;
180184 // Update display
You can’t perform that action at this time.
0 commit comments