@@ -65,7 +65,7 @@ export class BoardsServiceProvider implements FrontendApplicationContribution {
65
65
protected _availablePorts : Port [ ] = [ ] ;
66
66
protected _availableBoards : AvailableBoard [ ] = [ ] ;
67
67
68
- private uploadInProgress = false ;
68
+ private uploadAttemptInProgress = false ;
69
69
70
70
private lastItemRemovedForUpload : { board : Board ; port : Port } | undefined ;
71
71
// "lastPersistingUploadPort", is a port created during an upload, that persisted after
@@ -87,8 +87,8 @@ export class BoardsServiceProvider implements FrontendApplicationContribution {
87
87
private readonly _reconciled = new Deferred < void > ( ) ;
88
88
89
89
onStart ( ) : void {
90
- this . notificationCenter . onUploadInProgress (
91
- this . onUploadNotificationReceived . bind ( this )
90
+ this . notificationCenter . onUploadAttemptInProgress (
91
+ this . onUploadAttemptEventReceived . bind ( this )
92
92
) ;
93
93
this . notificationCenter . onAttachedBoardsDidChange (
94
94
this . notifyAttachedBoardsChanged . bind ( this )
@@ -121,8 +121,8 @@ export class BoardsServiceProvider implements FrontendApplicationContribution {
121
121
return this . _reconciled . promise ;
122
122
}
123
123
124
- private onUploadNotificationReceived ( uploadInProgress : boolean ) : void {
125
- this . uploadInProgress = uploadInProgress ;
124
+ private onUploadAttemptEventReceived ( uploadAttemptInProgress : boolean ) : void {
125
+ this . uploadAttemptInProgress = uploadAttemptInProgress ;
126
126
}
127
127
128
128
private checkForItemRemoved ( event : AttachedBoardsChangeEvent ) : void {
@@ -192,7 +192,7 @@ export class BoardsServiceProvider implements FrontendApplicationContribution {
192
192
this . logger . info ( '------------------------------------------' ) ;
193
193
}
194
194
195
- if ( this . uploadInProgress ) {
195
+ if ( this . uploadAttemptInProgress ) {
196
196
this . checkForItemRemoved ( event ) ;
197
197
} else {
198
198
this . checkForPersistingPort ( event ) ;
@@ -202,7 +202,7 @@ export class BoardsServiceProvider implements FrontendApplicationContribution {
202
202
this . _availablePorts = event . newState . ports ;
203
203
this . onAvailablePortsChangedEmitter . fire ( this . _availablePorts ) ;
204
204
this . reconcileAvailableBoards ( ) . then ( ( ) => {
205
- if ( ! this . uploadInProgress ) {
205
+ if ( ! this . uploadAttemptInProgress ) {
206
206
this . tryReconnect ( ) ;
207
207
}
208
208
} ) ;
0 commit comments