mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DocumentationAutoPopup - use simpleConnect
GitOrigin-RevId: aff23aa404a473abeb798a98816ca7eacedbbfca
This commit is contained in:
committed by
intellij-monorepo-bot
parent
adaea4e8fb
commit
4cf5e42649
+4
-5
@@ -1,16 +1,15 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.lang.documentation.ide.impl
|
||||
|
||||
import com.intellij.codeInsight.lookup.Lookup
|
||||
import com.intellij.codeInsight.lookup.LookupEx
|
||||
import com.intellij.codeInsight.lookup.LookupManagerListener
|
||||
import com.intellij.openapi.progress.blockingContext
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.startup.ProjectActivity
|
||||
|
||||
internal class DocumentationAutoPopup : ProjectActivity {
|
||||
override suspend fun execute(project: Project) : Unit = blockingContext {
|
||||
project.messageBus.connect().subscribe(LookupManagerListener.TOPIC, DocumentationAutoPopupListener())
|
||||
private class DocumentationAutoPopup : ProjectActivity {
|
||||
override suspend fun execute(project: Project) {
|
||||
project.messageBus.simpleConnect().subscribe(LookupManagerListener.TOPIC, DocumentationAutoPopupListener())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user