We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0ab493 commit ba9f6bcCopy full SHA for ba9f6bc
src/main/kotlin/com/intellij/plugin/powershell/lang/lsp/languagehost/PSLanguageHostUtils.kt
@@ -56,7 +56,7 @@ object PSLanguageHostUtils {
56
private suspend fun readPowerShellVersion(exePath: String): PSVersionInfo {
57
var process: Process? = null
58
val commandString = "(\$PSVersionTable.PSVersion, \$PSVersionTable.PSEdition) -join ' '"
59
- val commandLine = GeneralCommandLine(exePath, "-command", commandString)
+ val commandLine = GeneralCommandLine(exePath, "-Command", commandString)
60
return coroutineScope {
61
try {
62
process = commandLine.createProcess()
0 commit comments