equal
deleted
inserted
replaced
346 val path = Path.explode(text) |
346 val path = Path.explode(text) |
347 val (dir, base_name) = |
347 val (dir, base_name) = |
348 if (text == "" || text.endsWith("/")) (path, "") |
348 if (text == "" || text.endsWith("/")) (path, "") |
349 else (path.dir, path.file_name) |
349 else (path.dir, path.file_name) |
350 |
350 |
351 val directory = new JFile(session.resources.append(snapshot.node_name, dir)) |
351 val directory = new JFile(session.resources.append(snapshot.node_name.master_dir, dir)) |
352 val files = directory.listFiles |
352 val files = directory.listFiles |
353 if (files == null) Nil |
353 if (files == null) Nil |
354 else { |
354 else { |
355 val ignore = |
355 val ignore = |
356 space_explode(':', options.string("completion_path_ignore")). |
356 space_explode(':', options.string("completion_path_ignore")). |
614 tree1 <- timing_info(tree) |
614 tree1 <- timing_info(tree) |
615 } yield tree1 |
615 } yield tree1 |
616 } |
616 } |
617 |
617 |
618 def perhaps_append_file(node_name: Document.Node.Name, name: String): String = |
618 def perhaps_append_file(node_name: Document.Node.Name, name: String): String = |
619 if (Path.is_valid(name)) session.resources.append(node_name, Path.explode(name)) else name |
619 if (Path.is_valid(name)) session.resources.append(node_name.master_dir, Path.explode(name)) |
|
620 else name |
620 |
621 |
621 def tooltips(elements: Markup.Elements, range: Text.Range): Option[Text.Info[List[XML.Tree]]] = { |
622 def tooltips(elements: Markup.Elements, range: Text.Range): Option[Text.Info[List[XML.Tree]]] = { |
622 val results = |
623 val results = |
623 snapshot.cumulate[Tooltip_Info](range, Tooltip_Info(range), elements, command_states => |
624 snapshot.cumulate[Tooltip_Info](range, Tooltip_Info(range), elements, command_states => |
624 { |
625 { |