@@ -833,25 +833,6 @@ class RemoteAgentConnectionStatusListener extends Disposable implements IWorkben
833
833
}
834
834
switch ( e . type ) {
835
835
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
- = === ===
855
836
reconnectionToken = e . reconnectionToken ;
856
837
lastIncomingDataTime = Date . now ( ) - e . millisSinceLastIncomingData ;
857
838
reconnectionAttempts = 0 ;
@@ -883,19 +864,9 @@ class RemoteAgentConnectionStatusListener extends Disposable implements IWorkben
883
864
visibleProgress = showProgress ( null , [ reconnectButton , reloadButton ] ) ;
884
865
visibleProgress . startTimer ( Date . now ( ) + 1000 * e . durationSeconds ) ;
885
866
}
886
- > >>> >>> 89 b6e0164fa770333755b11504e19a4232b1a2d4
887
867
break ;
888
868
889
869
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
- = === ===
899
870
reconnectionToken = e . reconnectionToken ;
900
871
lastIncomingDataTime = Date . now ( ) - e . millisSinceLastIncomingData ;
901
872
reconnectionAttempts = e . attempt ;
@@ -922,7 +893,6 @@ class RemoteAgentConnectionStatusListener extends Disposable implements IWorkben
922
893
if ( visibleProgress || e . millisSinceLastIncomingData > DISCONNECT_PROMPT_TIME ) {
923
894
visibleProgress = showProgress ( null , [ reloadButton ] ) ;
924
895
visibleProgress . report ( nls . localize ( 'reconnectionRunning' , "Disconnected. Attempting to reconnect..." ) ) ;
925
- > >>> >>> 89 b6e0164fa770333755b11504e19a4232b1a2d4
926
896
927
897
// Register to listen for quick input is opened
928
898
disposableListener = quickInputService . onShow ( ( ) => {
0 commit comments