in rider/src/main/kotlin/com/jetbrains/aspire/rider/orchestration/BaseOrchestrationHandler.kt [64:77]
protected open suspend fun findExistingServiceDefaults(project: Project): Path? {
val dotnetProjects = project.serviceAsync<WorkspaceModel>().findProjects()
for (dotnetProject in dotnetProjects) {
if (dotnetProject.isAspireSharedProject()) {
val projectFile = dotnetProject.url?.virtualFile?.toNioPath()
if (projectFile == null) {
LOG.warn("Unable to find a virtual file for the Aspire ServiceDefaults")
continue
}
return projectFile
}
}
return null
}