@@ -833,25 +833,6 @@ class RemoteAgentConnectionStatusListener extends Disposable implements IWorkben
833833 }
834834 switch ( e . type ) {
835835 case PersistentConnectionEventType . ConnectionLost :
836- < < < << << HEAD
837- break ;
838- case PersistentConnectionEventType . ReconnectionWait :
839- const BACKGROUND_RECONNECT_THRESHOLD = 2 ;
840- // If the first reconnect fails, we show the popup.
841- // This corresponds to about 5s wait.
842- if ( e . connectionAttempt < BACKGROUND_RECONNECT_THRESHOLD ) {
843- break ;
844- }
845-
846- if ( ! visibleProgress ) {
847- visibleProgress = showProgress ( ProgressLocation . Dialog , [ reconnectButton , reloadButton ] ) ;
848- }
849- visibleProgress . report ( nls . localize ( 'connectionLost' , "Connection Lost" ) ) ;
850-
851- reconnectWaitEvent = e ;
852- visibleProgress = showProgress ( lastLocation || ProgressLocation . Notification , [ reconnectButton , reloadButton ] ) ;
853- visibleProgress . startTimer ( Date . now ( ) + 1000 * e . durationSeconds ) ;
854- = === ===
855836 reconnectionToken = e . reconnectionToken ;
856837 lastIncomingDataTime = Date . now ( ) - e . millisSinceLastIncomingData ;
857838 reconnectionAttempts = 0 ;
@@ -883,19 +864,9 @@ class RemoteAgentConnectionStatusListener extends Disposable implements IWorkben
883864 visibleProgress = showProgress ( null , [ reconnectButton , reloadButton ] ) ;
884865 visibleProgress . startTimer ( Date . now ( ) + 1000 * e . durationSeconds ) ;
885866 }
886- > >>> >>> 89 b6e0164fa770333755b11504e19a4232b1a2d4
887867 break ;
888868
889869 case PersistentConnectionEventType . ReconnectionRunning :
890- < < < << << HEAD
891- if ( ! visibleProgress ) {
892- // Our background reconnection threshold hasn't been hit yet.
893- break ;
894- }
895-
896- visibleProgress = showProgress ( lastLocation || ProgressLocation . Notification , [ reloadButton ] ) ;
897- visibleProgress . report ( nls . localize ( 'reconnectionRunning' , "Attempting to reconnect..." ) ) ;
898- = === ===
899870 reconnectionToken = e . reconnectionToken ;
900871 lastIncomingDataTime = Date . now ( ) - e . millisSinceLastIncomingData ;
901872 reconnectionAttempts = e . attempt ;
@@ -922,7 +893,6 @@ class RemoteAgentConnectionStatusListener extends Disposable implements IWorkben
922893 if ( visibleProgress || e . millisSinceLastIncomingData > DISCONNECT_PROMPT_TIME ) {
923894 visibleProgress = showProgress ( null , [ reloadButton ] ) ;
924895 visibleProgress . report ( nls . localize ( 'reconnectionRunning' , "Disconnected. Attempting to reconnect..." ) ) ;
925- > >>> >>> 89 b6e0164fa770333755b11504e19a4232b1a2d4
926896
927897 // Register to listen for quick input is opened
928898 disposableListener = quickInputService . onShow ( ( ) => {
0 commit comments