scalameta / metals-sublime

Sublime Text package for Metals, a language server for Scala
https://packagecontrol.io/packages/LSP-metals
Apache License 2.0
16 stars 10 forks source link

Sublime Text editor crashes when evaluating large verbose output on worksheet #105

Open prassee opened 1 year ago

prassee commented 1 year ago

Sublime text editor crashes when evaluating large output for e.g the below code snippet when evaluated would crash the editor

import scala.collection.mutable.ListBuffer
import java.util.{ArrayList => jal}

val lb = ListBuffer[String]()
lb += "a"
lb += "b"

val jl = new jal[String]()
jl.add("a")
jl.add("b")

val x = 90
x + 1

val b = (1 to 5000).toList.foreach(x => (1 to x).foreach(println))