equal
deleted
inserted
replaced
11 import isabelle._ |
11 import isabelle._ |
12 |
12 |
13 object VSCode_Rendering |
13 object VSCode_Rendering |
14 { |
14 { |
15 private val hyperlink_elements = |
15 private val hyperlink_elements = |
16 Markup.Elements(Markup.ENTITY, Markup.PATH, Markup.POSITION, Markup.URL) |
16 Markup.Elements(Markup.ENTITY, Markup.PATH, Markup.POSITION) |
17 } |
17 } |
18 |
18 |
19 class VSCode_Rendering( |
19 class VSCode_Rendering( |
20 val model: Document_Model, |
20 val model: Document_Model, |
21 snapshot: Document.Snapshot, |
21 snapshot: Document.Snapshot, |
38 { |
38 { |
39 case (links, Text.Info(_, XML.Elem(Markup.Path(name), _))) => |
39 case (links, Text.Info(_, XML.Elem(Markup.Path(name), _))) => |
40 Some(Line.Node_Range(resolve_file_url(name)) :: links) |
40 Some(Line.Node_Range(resolve_file_url(name)) :: links) |
41 |
41 |
42 /* FIXME |
42 /* FIXME |
43 case (links, Text.Info(_, XML.Elem(Markup.Url(name), _))) => |
|
44 Some(PIDE.editor.hyperlink_url(name) :: links) |
|
45 |
|
46 case (links, Text.Info(info_range, XML.Elem(Markup(Markup.ENTITY, props), _))) |
43 case (links, Text.Info(info_range, XML.Elem(Markup(Markup.ENTITY, props), _))) |
47 if !props.exists( |
44 if !props.exists( |
48 { case (Markup.KIND, Markup.ML_OPEN) => true |
45 { case (Markup.KIND, Markup.ML_OPEN) => true |
49 case (Markup.KIND, Markup.ML_STRUCTURE) => true |
46 case (Markup.KIND, Markup.ML_STRUCTURE) => true |
50 case _ => false }) => |
47 case _ => false }) => |