mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-10 03:59:43 +00:00
fix: code completion state when session contains remining completion
This commit is contained in:
parent
04713fe534
commit
478340fe11
1 changed files with 8 additions and 1 deletions
|
|
@ -101,7 +101,14 @@ class DebouncedCodeCompletionProvider : DebouncedInlineCompletionProvider() {
|
|||
null -> false
|
||||
}
|
||||
|
||||
return event is InlineCompletionEvent.DocumentChange && codeCompletionsEnabled
|
||||
if (!codeCompletionsEnabled) {
|
||||
return false
|
||||
}
|
||||
|
||||
val containsActiveCompletion =
|
||||
REMAINING_EDITOR_COMPLETION.get(event.toRequest()?.editor)?.isNotEmpty() ?: false
|
||||
|
||||
return event is InlineCompletionEvent.DocumentChange || containsActiveCompletion
|
||||
}
|
||||
|
||||
private fun ProducerScope<InlineCompletionElement>.getEventListener(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue