From 7612581a555e5c8201c52f81e5905d59a2d51a1d Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Thu, 22 Feb 2024 01:21:10 +0100 Subject: [PATCH] (#151) PowerShellCompletionTests: increase the language server waiting timeout --- .../lsp/languagehost/EditorServicesLanguageHostStarter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/intellij/plugin/powershell/lang/lsp/languagehost/EditorServicesLanguageHostStarter.kt b/src/main/kotlin/com/intellij/plugin/powershell/lang/lsp/languagehost/EditorServicesLanguageHostStarter.kt index 438465ed..5dcee643 100644 --- a/src/main/kotlin/com/intellij/plugin/powershell/lang/lsp/languagehost/EditorServicesLanguageHostStarter.kt +++ b/src/main/kotlin/com/intellij/plugin/powershell/lang/lsp/languagehost/EditorServicesLanguageHostStarter.kt @@ -378,8 +378,8 @@ open class EditorServicesLanguageHostStarter(protected val myProject: Project) : } private suspend fun waitForSessionFile(fileWithSessionInfo: File): Boolean { - var tries = 25 - val waitTimeoutMillis = 500L + var tries = 120 + val waitTimeoutMillis = 500L // the total timeout is about 1 minute try { while (!fileWithSessionInfo.exists() && tries > 0) { tries--