Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/commands/syntax.rs')
| -rw-r--r-- | helix-term/src/commands/syntax.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/src/commands/syntax.rs b/helix-term/src/commands/syntax.rs index 1fed4754..31551130 100644 --- a/helix-term/src/commands/syntax.rs +++ b/helix-term/src/commands/syntax.rs @@ -324,11 +324,13 @@ pub fn syntax_workspace_symbol_picker(cx: &mut Context) { let pattern = Arc::new(pattern); let injector = injector.clone(); let loader = editor.syn_loader.load(); + let documents: HashSet<_> = editor .documents() .filter_map(Document::path) - .cloned() + .map(ToOwned::to_owned) .collect(); + async move { let searcher = state.searcher_builder.build(); state.walk_builder.build_parallel().run(|| { |