Skip to content

Commit

Permalink
Fixes after task name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
khbminus committed Jun 9, 2023
1 parent aae6c24 commit 42a26a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/.run/example [main].run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<option name="taskNames">
<list>
<option value="main" />
<option value="-Ppython.run.extraArgs=&quot;arg1 arg2 arg3&quot;" />
<option value="-PextraArgs=&quot;arg1 arg2 arg3&quot;" />
</list>
</option>
<option name="vmOptions" />
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
paddleVersion=0.5.1
paddleVersion=0.5.2
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class PaddleRunConfigurationProducer : AbstractExternalSystemRunConfigurationPro
val taskNames = configuration.settings.taskNames.takeIf { it.isNotEmpty() } ?: return false

return when (taskNames.first()) {
taskId, taskId -> true
"run${"$"}$taskId", "test${"$"}$taskId" -> true
"twine" -> context.location?.psiElement?.text?.startsWith("twine") ?: false
"install" -> context.location?.psiElement?.text?.startsWith("requirements") ?: false
else -> false
Expand Down

0 comments on commit 42a26a7

Please sign in to comment.