File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ import { BaseDebugServer } from './DebugServers/BaseDebugServer';
2626import { initializeIoc } from './serviceRegistry' ;
2727import { IDebugStreamProvider , IProtocolLogger , IProtocolMessageWriter , IProtocolParser } from './types' ;
2828
29- const DEBUGGER_CONNECT_TIMEOUT = 10000 ;
30- const MIN_DEBUGGER_CONNECT_TIMEOUT = DEBUGGER_CONNECT_TIMEOUT / 2 ;
29+ const DEBUGGER_CONNECT_TIMEOUT = 20000 ;
30+ const MIN_DEBUGGER_CONNECT_TIMEOUT = 5000 ;
3131
3232export class PythonDebugger extends DebugSession {
3333 public debugServer ?: BaseDebugServer ;
@@ -123,7 +123,7 @@ export class PythonDebugger extends DebugSession {
123123 private getConnectionTimeout ( args : LaunchRequestArguments ) {
124124 // The timeout can be overridden, but won't be documented unless we see the need for it.
125125 // This is just a fail safe mechanism, if the current timeout isn't enough (let study the current behaviour before exposing this setting).
126- const connectionTimeout = typeof ( args as any ) . connectionTimeout === 'number' ? ( args as any ) . connectionTimeout as number : DEBUGGER_CONNECT_TIMEOUT ;
126+ const connectionTimeout = typeof ( args as any ) . timeout === 'number' ? ( args as any ) . timeout as number : DEBUGGER_CONNECT_TIMEOUT ;
127127 return Math . max ( connectionTimeout , MIN_DEBUGGER_CONNECT_TIMEOUT ) ;
128128 }
129129 private getErrorUserFriendlyMessage ( launchArgs : LaunchRequestArguments , error : any ) : string | undefined {
You can’t perform that action at this time.
0 commit comments