src/Tools/VSCode/src/dynamic_output.scala
changeset 81033 c25fed2d0e78
parent 81029 f4cb1e35c63e
child 81034 50082e028475
equal deleted inserted replaced
81032:de94fcfbc3ce 81033:c25fed2d0e78
    54           val separate = Pretty.separate(st1.output)
    54           val separate = Pretty.separate(st1.output)
    55           val formatted = Pretty.formatted(separate, margin = margin)
    55           val formatted = Pretty.formatted(separate, margin = margin)
    56           val html = node_context.make_html(elements, formatted)
    56           val html = node_context.make_html(elements, formatted)
    57           channel.write(LSP.Dynamic_Output(HTML.source(html).toString))
    57           channel.write(LSP.Dynamic_Output(HTML.source(html).toString))
    58         } else {
    58         } else {
    59           channel.write(LSP.Dynamic_Output(resources.output_pretty(st1.output, margin = margin)))
    59           val output = resources.output_pretty(Pretty.separate(st1.output), margin = margin)
       
    60           channel.write(LSP.Dynamic_Output(output))
    60         }
    61         }
    61       }
    62       }
    62       st1
    63       st1
    63     }
    64     }
    64   }
    65   }