Skip to content

Commit 4100f88

Browse files
authored
Merge pull request #5364 from dotty-staging/fix-5359
Fix #5339: Use normal characters as delimiter for REPL output
2 parents ce0acf1 + b0c066e commit 4100f88

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

language-server/src/dotty/tools/languageserver/worksheet/InputStreamConsumer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ class InputStreamConsumer(in: InputStream) {
2121
}
2222

2323
object InputStreamConsumer {
24-
def delimiter = "\uE000" // withing private use area
24+
def delimiter = "##!!##"
2525
}

language-server/src/dotty/tools/languageserver/worksheet/ReplProcess.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ object ReplProcess {
1111
while (true) {
1212
val code = in.next() // blocking
1313
state = driver.run(code)(state)
14-
print(InputStreamConsumer.delimiter) // needed to mark the end of REPL output
14+
Console.print(InputStreamConsumer.delimiter) // needed to mark the end of REPL output
15+
Console.flush()
1516
}
1617
}
1718
}

0 commit comments

Comments
 (0)