Skip to content

Commit 552d5b0

Browse files
committed
fix(devins-lang): add newline to "Done!" message #101
Add a newline character to the "Done!" message in DevInsRunConfigurationProfileState.kt to improve readability and separation of output. Also, remove the private function `lookupDevInsFile` and declare it as a top-level function to improve usability.
1 parent 0a07efc commit 552d5b0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/run/DevInsRunConfigurationProfileState.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,14 @@ open class DevInsRunConfigurationProfileState(
8888
}
8989
}
9090

91-
console.print("Done!", ConsoleViewContentType.SYSTEM_OUTPUT)
91+
console.print("\nDone!", ConsoleViewContentType.SYSTEM_OUTPUT)
9292
processHandler.detachProcess()
9393
}
9494
}
9595

9696
return DefaultExecutionResult(console, processHandler)
9797
}
9898

99-
private fun lookupDevInsFile(project: Project, script: String) = VirtualFileManager.getInstance()
100-
.findFileByUrl("file://$script")
101-
?.let {
102-
PsiManager.getInstance(project).findFile(it)
103-
} as? DevInFile
104-
10599
@Throws(ExecutionException::class)
106100
private fun createProcessHandler(myExecutionName: String): ProcessHandler {
107101
return object : BuildProcessHandler() {
@@ -119,3 +113,9 @@ open class DevInsRunConfigurationProfileState(
119113
}
120114
}
121115
}
116+
117+
fun lookupDevInsFile(project: Project, path: String) = VirtualFileManager.getInstance()
118+
.findFileByUrl("file://$path")
119+
?.let {
120+
PsiManager.getInstance(project).findFile(it)
121+
} as? DevInFile

0 commit comments

Comments
 (0)