mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
IDEA-353465 [Auto-Link] Don't show the Build Script Found notification for the just unlinked project
GitOrigin-RevId: 6b7538ff9dca5ca5914b4bc3c6c7ab51f356904a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8015d49ada
commit
1760e006dc
@@ -142,21 +142,11 @@ class UnlinkedProjectStartupActivity : ProjectActivity {
|
||||
val coroutineScope = CoroutineScopeService.getCoroutineScope(project)
|
||||
EP_NAME.withEachExtensionSafeAsync(project) { extension, extensionDisposable ->
|
||||
extension.subscribe(project, object : ExternalSystemProjectLinkListener {
|
||||
|
||||
override fun onProjectLinked(externalProjectPath: String) {
|
||||
coroutineScope.launch(extensionDisposable) {
|
||||
projectRoots.removeProjectRoot(externalProjectPath)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onProjectUnlinked(externalProjectPath: String) {
|
||||
coroutineScope.launch(extensionDisposable) {
|
||||
if (!hasLinkedProject(project, externalProjectPath)) {
|
||||
projectRoots.addProjectRoot(externalProjectPath)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}, extensionDisposable)
|
||||
}
|
||||
return projectRoots
|
||||
|
||||
Reference in New Issue
Block a user