ZIm/crates/language/src
Piotr Osiewicz e28681c27e
outline: Match on full item path in Outline::find_most_similar (#16206)
Previously, we were only looking at a simple syntax node name at a time
and not the full path to an item. E.g. in a rust-toolchain.toml file:
```rs
[toolchain]
targets = [ "x86_64-apple-darwin", "aarch64-apple-darwin", "x86_64-unknown-linux-gnu", "wasm32-wasi" ]
```
When matching against a query "toolchain targets" from the Assistant,
we'd try to match it against "toolchain" and "targets" and not against
"toolchain targets" - we only look at the name of the innermost node and
not it's full path.
I'd expect it to significantly improve precision of outline item
matching.

Release Notes:

- N/A

Co-authored-by: Bennet Bo <bennet@zed.dev>
2024-08-14 14:03:28 +02:00
..
syntax_map Bump tree-sitter and related core language parser libraries (#14986) 2024-07-24 23:38:21 +03:00
buffer.rs Open workflow step editors as preview tabs (#15928) 2024-08-07 19:33:58 -06:00
buffer_tests.rs Open workflow step editors as preview tabs (#15928) 2024-08-07 19:33:58 -06:00
diagnostic_set.rs lsp: Pass back diagnostic .data when querying code actions for it (#14962) 2024-07-22 17:49:11 +02:00
highlight_map.rs Docs for indent_size_for_line and co 2024-01-09 20:50:34 +01:00
language.rs Improve slash commands (#16195) 2024-08-13 23:06:07 -07:00
language_registry.rs Remove primary/secondary distinction for CachedLspAdapter (#15634) 2024-08-01 13:51:34 -04:00
language_settings.rs Fix more instances of JSON schema getting clobbered when attaching references (#15339) 2024-07-27 11:44:40 -04:00
markdown.rs Fix Markdown code rendering in tooltips ignoring languages (#10607) 2024-04-16 12:49:35 +02:00
outline.rs outline: Match on full item path in Outline::find_most_similar (#16206) 2024-08-14 14:03:28 +02:00
proto.rs lsp: Pass back diagnostic .data when querying code actions for it (#14962) 2024-07-22 17:49:11 +02:00
syntax_map.rs chore: Fix clippy violations from Cargo.toml (#15216) 2024-07-25 20:22:01 +02:00
task_context.rs tasks: Add experimental support for user-defined task variables (#13699) 2024-07-01 15:59:19 +02:00