(value: &mut SceneValue, project_root: &str)
| 3595 | } |
| 3596 | |
| 3597 | fn filtered_file_cache_key(state: &EditorState) -> String { |
| 3598 | format!( |
| 3599 | "{}\n{}\n{}\n{}\n{}", |
| 3600 | state.activity_mode, |
| 3601 | state.file_filter, |
| 3602 | state.file_scope, |
| 3603 | state.file_expanded_paths.join("\n"), |
| 3604 | state.file_paths.join("\n") |
| 3605 | ) |
| 3606 | } |
| 3607 | |
| 3608 | pub fn file_row_label(path: &str) -> String { |
| 3609 | let name = file_base_name(path); |
| 3610 | editor_view::short_path(&name, 30) |
| 3611 | } |
| 3612 | |
| 3613 | pub fn file_row_label_for_filter(path: &str, filtered: bool) -> String { |
| 3614 | if filtered { |
| 3615 | return editor_view::short_path(&editor_files::rel_label(path), 30); |
| 3616 | } |
| 3617 | file_row_label(path) |
no test coverage detected