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:
Sergei Vorobyov
2024-09-11 18:38:25 +02:00
committed by intellij-monorepo-bot
parent 8015d49ada
commit 1760e006dc

View File

@@ -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