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 ce04cc8 commit e6b3abdCopy full SHA for e6b3abd
language-server/src/dotty/tools/languageserver/worksheet/Evaluator.scala
@@ -9,9 +9,8 @@ import org.eclipse.lsp4j.jsonrpc.CancelChecker
9
private object Evaluator {
10
11
private val javaExec: Option[String] = {
12
- val isWindows = sys.props("os.name").toLowerCase().indexOf("win") >= 0
13
val bin = new File(sys.props("java.home"), "bin")
14
- val java = new File(bin, if (isWindows) "java.exe" else "java")
+ val java = new File(bin, if (scala.util.Properties.isWin) "java.exe" else "java")
15
16
if (java.exists()) Some(java.getAbsolutePath())
17
else None
0 commit comments