From 8b63cb89329a4a47af0a34af83b55b058a8fe811 Mon Sep 17 00:00:00 2001 From: Kirill Starkov Date: Mon, 13 Jan 2025 14:03:29 +0800 Subject: [PATCH] fix https://github.com/smallcloudai/refact-intellij/issues/209; also remove rudement code --- .../kotlin/com/smallcloud/refactai/lsp/LSPProcessHolder.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/kotlin/com/smallcloud/refactai/lsp/LSPProcessHolder.kt b/src/main/kotlin/com/smallcloud/refactai/lsp/LSPProcessHolder.kt index 3b0ed00a..9a751371 100644 --- a/src/main/kotlin/com/smallcloud/refactai/lsp/LSPProcessHolder.kt +++ b/src/main/kotlin/com/smallcloud/refactai/lsp/LSPProcessHolder.kt @@ -60,9 +60,6 @@ class LSPProcessHolder(val project: Project) : Disposable { "SMCLSPLoggerScheduler", 1 ) private var loggerTask: Future<*>? = null - private val schedulerCaps = AppExecutorUtil.createBoundedScheduledExecutorService( - "SMCLSPCapsRequesterScheduler", 1 - ) private val messageBus: MessageBus = ApplicationManager.getApplication().messageBus private var isWorking_ = false private val healthCheckerScheduler = AppExecutorUtil.createBoundedScheduledExecutorService( @@ -298,9 +295,8 @@ class LSPProcessHolder(val project: Project) : Disposable { override fun dispose() { terminate() - loggerScheduler.shutdown() - schedulerCaps.shutdown() healthCheckerScheduler.shutdown() + loggerScheduler.shutdown() Runtime.getRuntime().removeShutdownHook(exitThread) }