Skip to content

Commit

Permalink
Merge pull request #3570 from continuedev/pe/jb-tooltip-disposal-bugfix
Browse files Browse the repository at this point in the history
bugfix(JB): handle disposed editor tooltips
  • Loading branch information
Patrick-Erichsen authored Dec 30, 2024
2 parents 74035c3 + 72d4ad0 commit 35cf0e1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class ContinuePluginSelectionListener(
private var lastActiveEditor: Editor? = null

override fun selectionChanged(e: SelectionEvent) {
if (e.editor.isDisposed || e.editor.project?.isDisposed == true) {
return
}

debouncer.debounce { handleSelection(e) }
}

Expand Down

0 comments on commit 35cf0e1

Please sign in to comment.