Skip to content

Commit 3ae1dac

Browse files
committed
Uses noprofile for powershell tests for correctness and faster start
1 parent 1b5cacf commit 3ae1dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/intellij/plugin/powershell/lang/lsp/languagehost/PSLanguageHostUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ object PSLanguageHostUtils {
5656
private suspend fun readPowerShellVersion(exePath: String): PSVersionInfo {
5757
var process: Process? = null
5858
val commandString = "(\$PSVersionTable.PSVersion, \$PSVersionTable.PSEdition) -join ' '"
59-
val commandLine = GeneralCommandLine(exePath, "-Command", commandString)
59+
val commandLine = GeneralCommandLine(exePath, "–NoProfile", "-Command", commandString)
6060
return coroutineScope {
6161
try {
6262
process = commandLine.createProcess()

0 commit comments

Comments
 (0)