Merge pull request #3570 from continuedev/pe/jb-tooltip-disposal-bugfix

bugfix(JB): handle disposed editor tooltips
This commit is contained in:
Patrick Erichsen 2024-12-30 12:25:00 -06:00 • committed by GitHub
commit 35cf0e1245
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) }
}