Skip to content

Commit

Permalink
use guess
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinVaadin committed Oct 2, 2024
1 parent a7d4c09 commit 5c18071
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/kotlin/com/vaadin/plugin/VaadinProjectDetector.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil
import com.intellij.openapi.module.Module
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.guessProjectDir
import com.intellij.openapi.roots.ModuleRootEvent
import com.intellij.openapi.roots.ModuleRootListener
import com.intellij.openapi.startup.ProjectActivity
Expand Down Expand Up @@ -70,7 +71,8 @@ class VaadinProjectDetector : ModuleRootListener, ProjectActivity {
return externalRootPath
}

LOG.info("Project base path: ${project.basePath}")
return project.basePath
val guessedPath = project.guessProjectDir()?.path
LOG.info("Project guessed path: $guessedPath")
return guessedPath
}
}

0 comments on commit 5c18071

Please sign in to comment.