Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit f0a94f5

Browse files
fix: use project base path if it exists, if not then use workingdir
The default value of workingdir is STK_HOME Signed-off-by: Matheus Ferreira <matheus.ferreira@zup.com.br>
1 parent 290077a commit f0a94f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/stackspot/intellij/ui/StackSpotTerminalRunner.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class StackSpotTerminalRunner(private val project: Project) : CommandRunner {
102102
window.show()
103103
val contentManager = window.contentManager
104104
val stackSpotTab = contentManager.contents.firstOrNull { Constants.MODULE_TYPE_NAME == it.tabName }
105-
val resolvedWorkingDir = workingDir ?: project.basePath
105+
val resolvedWorkingDir = project.basePath ?: workingDir
106106
val terminalView = TerminalView.getInstance(project)
107107
if (stackSpotTab != null) {
108108
terminalView.closeTab(stackSpotTab)

0 commit comments

Comments
 (0)