src/Tools/VSCode/src/pretty_text_panel.scala
changeset 82192 7dc4aa407899
parent 82186 207f2120cc92
equal deleted inserted replaced
82191:3c88bec13e60 82192:7dc4aa407899
    49           new Browser_Info.Node_Context {
    49           new Browser_Info.Node_Context {
    50             override def make_ref(props: Properties.T, body: XML.Body): Option[XML.Elem] =
    50             override def make_ref(props: Properties.T, body: XML.Body): Option[XML.Elem] =
    51               for {
    51               for {
    52                 thy_file <- Position.Def_File.unapply(props)
    52                 thy_file <- Position.Def_File.unapply(props)
    53                 def_line <- Position.Def_Line.unapply(props)
    53                 def_line <- Position.Def_Line.unapply(props)
    54                 source <- resources.source_file(thy_file)
    54                 platform_path <- resources.source_file(thy_file)
    55                 uri = File.uri(Path.explode(source).absolute_file)
    55                 uri = File.uri(Path.explode(File.standard_path(platform_path)).absolute_file)
    56               } yield HTML.link(uri.toString + "#" + def_line, body)
    56               } yield HTML.link(uri.toString + "#" + def_line, body)
    57           }
    57           }
    58         val elements = Browser_Info.extra_elements.copy(entity = Markup.Elements.full)
    58         val elements = Browser_Info.extra_elements.copy(entity = Markup.Elements.full)
    59         val html = node_context.make_html(elements, formatted)
    59         val html = node_context.make_html(elements, formatted)
    60         val message = output_json(HTML.source(html).toString, None)
    60         val message = output_json(HTML.source(html).toString, None)