From 40c3f6842a01a0fa3875685a6487371e012dcd54 Mon Sep 17 00:00:00 2001 From: Robert Holt Date: Wed, 15 Aug 2018 15:13:08 -0700 Subject: [PATCH 1/2] Increase connection timeout --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 660320807f..3d28d30087 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -85,8 +85,8 @@ export function waitForSessionFile(sessionFilePath: string, callback: IWaitForSe } } - // Try once per second for 60 seconds, one full minute - innerTryFunc(60, 1000); + // Try once every 2 seconds for 120 seconds, two full minutes + innerTryFunc(120, 2000); } export function readSessionFile(sessionFilePath: string): IEditorServicesSessionDetails { From e65f7e40a19943f83dcfe47ded172b1adc1af90a Mon Sep 17 00:00:00 2001 From: Robert Holt Date: Wed, 15 Aug 2018 15:51:19 -0700 Subject: [PATCH 2/2] Fix silliness --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 3d28d30087..8604c26deb 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -85,8 +85,8 @@ export function waitForSessionFile(sessionFilePath: string, callback: IWaitForSe } } - // Try once every 2 seconds for 120 seconds, two full minutes - innerTryFunc(120, 2000); + // Try once every 2 seconds, 60 times - making two full minutes + innerTryFunc(60, 2000); } export function readSessionFile(sessionFilePath: string): IEditorServicesSessionDetails {