Changesets · Branches · Tags · Compare
| Changeset | 4e2b94c629760243a38b5520f2ebca8c8e144d25ff4e9a65dccb927950c2b308 |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-08-08 11:04 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-08-08 11:04 -07:00 |
| Parents | 5b94d28b3419, 11d1a69a431c |
1 file changed
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt +5 −9
| @@ -1,29 +1,27 @@ | ||
| 1 | 1 | package com.github.continuedev.continueintellijextension.listeners |
| 2 | 2 | |
| 3 | 3 | import ToolTipComponent |
| 4 | -import com.github.continuedev.continueintellijextension.editor.EditorUtils | |
| 5 | 4 | import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings |
| 6 | 5 | import com.github.continuedev.continueintellijextension.utils.Debouncer |
| 7 | 6 | import com.intellij.openapi.application.ApplicationManager |
| 8 | 7 | import com.intellij.openapi.components.service |
| 8 | +import com.intellij.openapi.editor.Document | |
| 9 | 9 | import com.intellij.openapi.editor.Editor |
| 10 | 10 | import com.intellij.openapi.editor.LogicalPosition |
| 11 | 11 | import com.intellij.openapi.editor.SelectionModel |
| 12 | 12 | import com.intellij.openapi.editor.event.SelectionEvent |
| 13 | 13 | import com.intellij.openapi.editor.event.SelectionListener |
| 14 | -import com.intellij.openapi.project.DumbAware | |
| 15 | -import com.intellij.openapi.util.TextRange | |
| 16 | -import kotlinx.coroutines.CoroutineScope | |
| 17 | -import com.intellij.openapi.editor.Document | |
| 18 | -import com.intellij.openapi.editor.ex.util.EditorUtil | |
| 19 | 14 | import com.intellij.openapi.fileEditor.FileDocumentManager |
| 20 | 15 | import com.intellij.openapi.fileEditor.FileEditorManager |
| 21 | 16 | import com.intellij.openapi.fileEditor.TextEditor |
| 17 | +import com.intellij.openapi.project.DumbAware | |
| 18 | +import com.intellij.openapi.util.TextRange | |
| 19 | +import kotlinx.coroutines.CoroutineScope | |
| 22 | 20 | |
| 23 | 21 | class ContinuePluginSelectionListener( |
| 24 | 22 | coroutineScope: CoroutineScope, |
| 25 | 23 | ) : SelectionListener, DumbAware { |
| 26 | - private val debouncer = Debouncer(100, coroutineScope) | |
| 24 | + private val debouncer = Debouncer(200, coroutineScope) | |
| 27 | 25 | private var toolTipComponents: ArrayList<ToolTipComponent> = ArrayList() |
| 28 | 26 | private var lastActiveEditor: Editor? = null |
| 29 | 27 | |
| @@ -228,5 +226,3 @@ | ||
| 228 | 226 | editor.contentComponent.repaint() |
| 229 | 227 | } |
| 230 | 228 | } |
| 231 | - | |
| 232 | - |