Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
docs: Fix selection highlight default value (#25134)
smit1fa105eaa570
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 4dac286f8a3..dc4ded40dbe 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -4801,10 +4801,8 @@ impl Editor {let buffer = editor.buffer().read(cx).snapshot(cx);Some(cx.background_spawn(async move {let mut ranges = Vec::new();- let buffer_ranges =- vec![buffer.anchor_before(0)..buffer.anchor_after(buffer.len())];let query = buffer.text_for_range(selection.range()).collect::<String>();- for range in buffer_ranges {+ for range in [buffer.anchor_before(0)..buffer.anchor_after(buffer.len())] {for (search_buffer, search_range, excerpt_id) inbuffer.range_to_buffer_ranges(range){diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.mdindex f729dd3db06..b863425b942 100644--- a/docs/src/configuring-zed.md+++ b/docs/src/configuring-zed.md@@ -483,7 +483,7 @@ List of `string` values- Description: The debounce delay before querying highlights based on the selected text.- Setting: `selection_highlight_debounce`-- Default: `75`+- Default: `50`## LSP Highlight Debounce