mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-11 13:10:50 +00:00
fix: enable code completion for DocumentEvent only
This commit is contained in:
parent
2ad1e4e917
commit
99b5f94dad
1 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ class CodeGPTInlineCompletionProvider : InlineCompletionProvider {
|
|||
}
|
||||
|
||||
override fun isEnabled(event: InlineCompletionEvent): Boolean {
|
||||
return ConfigurationSettings.getCurrentState().isCodeCompletionsEnabled
|
||||
return event is InlineCompletionEvent.DocumentChange
|
||||
&& ConfigurationSettings.getCurrentState().isCodeCompletionsEnabled
|
||||
}
|
||||
|
||||
private fun ProducerScope<InlineCompletionElement>.getCodeCompletionEventListener(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue