From 4e5ee6fbb6490c06294e1b6bc2a46e13d52c9c50 Mon Sep 17 00:00:00 2001 From: vldf Date: Fri, 8 Aug 2025 11:40:49 +0300 Subject: [PATCH] fix: increase `debouncer`'s `interval` value to fix #6199 --- .../listeners/ContinuePluginSelectionListener.kt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt index adcc86f7f..71e73369f 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt @@ -1,29 +1,27 @@ package com.github.continuedev.continueintellijextension.listeners import ToolTipComponent -import com.github.continuedev.continueintellijextension.editor.EditorUtils import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings import com.github.continuedev.continueintellijextension.utils.Debouncer import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.components.service +import com.intellij.openapi.editor.Document import com.intellij.openapi.editor.Editor import com.intellij.openapi.editor.LogicalPosition import com.intellij.openapi.editor.SelectionModel import com.intellij.openapi.editor.event.SelectionEvent import com.intellij.openapi.editor.event.SelectionListener -import com.intellij.openapi.project.DumbAware -import com.intellij.openapi.util.TextRange -import kotlinx.coroutines.CoroutineScope -import com.intellij.openapi.editor.Document -import com.intellij.openapi.editor.ex.util.EditorUtil import com.intellij.openapi.fileEditor.FileDocumentManager import com.intellij.openapi.fileEditor.FileEditorManager import com.intellij.openapi.fileEditor.TextEditor +import com.intellij.openapi.project.DumbAware +import com.intellij.openapi.util.TextRange +import kotlinx.coroutines.CoroutineScope class ContinuePluginSelectionListener( coroutineScope: CoroutineScope, ) : SelectionListener, DumbAware { - private val debouncer = Debouncer(100, coroutineScope) + private val debouncer = Debouncer(200, coroutineScope) private var toolTipComponents: ArrayList = ArrayList() private var lastActiveEditor: Editor? = null @@ -228,5 +226,3 @@ class ContinuePluginSelectionListener( editor.contentComponent.repaint() } } - -