File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/main/kotlin/com/intellij/plugin/powershell/lang/lsp/languagehost Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package com.intellij.plugin.powershell.lang.lsp.languagehost
3
3
import com.intellij.execution.configurations.GeneralCommandLine
4
4
import com.intellij.openapi.application.PathManager
5
5
import com.intellij.openapi.diagnostic.Logger
6
- import com.intellij.openapi.util.SystemInfo
7
6
import com.intellij.plugin.powershell.ide.PluginAppRoot
8
7
import com.intellij.plugin.powershell.ide.run.checkExists
9
8
import com.intellij.plugin.powershell.ide.run.getModuleVersion
@@ -56,8 +55,7 @@ object PSLanguageHostUtils {
56
55
57
56
private suspend fun readPowerShellVersion (exePath : String ): PSVersionInfo {
58
57
var process: Process ? = null
59
- val qInner = if (SystemInfo .isWindows) ' \' ' else ' "'
60
- val commandString = " (\$ PSVersionTable.PSVersion, \$ PSVersionTable.PSEdition) -join $qInner $qInner "
58
+ val commandString = " (\$ PSVersionTable.PSVersion, \$ PSVersionTable.PSEdition) -join ' '"
61
59
val commandLine = GeneralCommandLine (exePath, " -command" , commandString)
62
60
return coroutineScope {
63
61
try {
You can’t perform that action at this time.
0 commit comments