Skip to content

Commit

Permalink
fix(intellij): fix changing trigger mode does not take effect immedia…
Browse files Browse the repository at this point in the history
…tely. (#3460)
  • Loading branch information
icycodes authored Nov 24, 2024
1 parent 93507b2 commit 65e9369
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class InlineCompletionService(private val project: Project) : Disposable {
messageBusConnection.subscribe(SettingsService.Listener.TOPIC, object : SettingsService.Listener {
override fun settingsChanged(settings: SettingsService.Settings) {
logger.debug("TriggerMode updated: ${settings.completionTriggerMode}")
shouldAutoTrigger = triggerMode == SettingsState.TriggerMode.AUTOMATIC
shouldAutoTrigger = settings.completionTriggerMode == SettingsState.TriggerMode.AUTOMATIC
}
})
messageBusConnection.subscribe(DocumentListener.TOPIC, object : DocumentListener {
Expand Down Expand Up @@ -431,6 +431,10 @@ class InlineCompletionService(private val project: Project) : Disposable {
messageBusConnection.dispose()
}

/**
* @deprecated
* This is not used anymore and should be removed.
*/
interface Listener {
fun loadingStateChanged(loading: Boolean) {}

Expand Down

0 comments on commit 65e9369

Please sign in to comment.