src/Tools/VSCode/src/dynamic_output.scala
changeset 76765 c654103e9c9d
parent 75979 29d813c431bb
child 81025 d4eb94b46e83
equal deleted inserted replaced
76764:10f155d5f34b 76765:c654103e9c9d
    19     ): State = {
    19     ): State = {
    20       val st1 =
    20       val st1 =
    21         resources.get_caret() match {
    21         resources.get_caret() match {
    22           case None => copy(output = Nil)
    22           case None => copy(output = Nil)
    23           case Some(caret) =>
    23           case Some(caret) =>
    24             val snapshot = caret.model.snapshot()
    24             val snapshot = resources.snapshot(caret.model)
    25             if (do_update && !snapshot.is_outdated) {
    25             if (do_update && !snapshot.is_outdated) {
    26               snapshot.current_command(caret.node_name, caret.offset) match {
    26               snapshot.current_command(caret.node_name, caret.offset) match {
    27                 case None => copy(output = Nil)
    27                 case None => copy(output = Nil)
    28                 case Some(command) =>
    28                 case Some(command) =>
    29                   copy(output =
    29                   copy(output =