equal
deleted
inserted
replaced
817 |
817 |
818 Build.read_theory(session_context.theory(thy), unicode_symbols = unicode_symbols) match { |
818 Build.read_theory(session_context.theory(thy), unicode_symbols = unicode_symbols) match { |
819 case None => progress.echo(thy_heading + " MISSING") |
819 case None => progress.echo(thy_heading + " MISSING") |
820 case Some(snapshot) => |
820 case Some(snapshot) => |
821 val messages = |
821 val messages = |
822 Rendering.text_messages(snapshot) |
822 Rendering.text_messages(snapshot, |
823 .filter(message => progress.verbose || Protocol.is_exported(message.info)) |
823 filter = msg => progress.verbose || Protocol.is_exported(msg)) |
824 if (messages.nonEmpty) { |
824 if (messages.nonEmpty) { |
825 val line_document = Line.Document(snapshot.node.source) |
825 val line_document = Line.Document(snapshot.node.source) |
826 val buffer = new mutable.ListBuffer[String] |
826 val buffer = new mutable.ListBuffer[String] |
827 for (Text.Info(range, elem) <- messages) { |
827 for (Text.Info(range, elem) <- messages) { |
828 val line = line_document.position(range.start).line1 |
828 val line = line_document.position(range.start).line1 |