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

Commit 5748fcc

Browse files
fix: command working dir for create app should be parent and to apply plugin should be project path
Signed-off-by: Matheus Ferreira <matheus.ferreira@zup.com.br>
1 parent d130c7e commit 5748fcc

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
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 = project.basePath ?: workingDir
105+
val resolvedWorkingDir = workingDir ?: project.basePath
106106
val terminalView = TerminalView.getInstance(project)
107107
if (stackSpotTab != null) {
108108
terminalView.closeTab(stackSpotTab)

src/main/kotlin/com/stackspot/intellij/ui/toolwindow/StackSpotCellRenderer.kt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,17 @@ class StackSpotCellRenderer(val tree: AbstractStackSpotTree) : DefaultTreeCellRe
129129
val inputValueAsFlags = extractVarsToCmd(pluginInputPanel.variablesMap)
130130
val applyPluginCmd =
131131
ApplyPlugin(stackSpotNode.stack, stackSpotNode.plugin, project, inputValueAsFlags)
132-
applyPluginCmd.run(NotifyStackSpotToolWindow(tree))
132+
applyPluginCmd.run(NotifyStackSpotToolWindow(tree), project.basePath)
133133
}
134134
} else {
135-
ApplyPlugin(stackSpotNode.stack, stackSpotNode.plugin, project).run(NotifyStackSpotToolWindow(tree))
135+
ApplyPlugin(
136+
stackSpotNode.stack,
137+
stackSpotNode.plugin,
138+
project
139+
).run(
140+
NotifyStackSpotToolWindow(tree),
141+
project.basePath
142+
)
136143
}
137144
}
138145
}

0 commit comments

Comments
 (0)