File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -437,9 +437,6 @@ export class ExtensionHost extends EventEmitter implements ExtensionHostInterfac
437437 this . sendToExtension ( { type : "newTask" , text : prompt } )
438438
439439 return new Promise ( ( resolve , reject ) => {
440- let timeoutId : NodeJS . Timeout | null = null
441- const timeoutMs : number = 110_000
442-
443440 const completeHandler = ( ) => {
444441 cleanup ( )
445442 resolve ( )
@@ -451,23 +448,10 @@ export class ExtensionHost extends EventEmitter implements ExtensionHostInterfac
451448 }
452449
453450 const cleanup = ( ) => {
454- if ( timeoutId ) {
455- clearTimeout ( timeoutId )
456- timeoutId = null
457- }
458-
459451 this . client . off ( "taskCompleted" , completeHandler )
460452 this . client . off ( "error" , errorHandler )
461453 }
462454
463- // Set timeout to prevent indefinite hanging.
464- timeoutId = setTimeout ( ( ) => {
465- cleanup ( )
466- reject (
467- new Error ( `Task completion timeout after ${ timeoutMs } ms - no completion or error event received` ) ,
468- )
469- } , timeoutMs )
470-
471455 this . client . once ( "taskCompleted" , completeHandler )
472456 this . client . once ( "error" , errorHandler )
473457 } )
You can’t perform that action at this time.
0 commit comments