Skip to content

Commit

Permalink
docs: Fix selection highlight default value (#25134)
Browse files Browse the repository at this point in the history
Changed default debounce value in docs to match default settings.

Release Notes:

- N/A
  • Loading branch information
0xtimsb authored and osiewicz committed Feb 19, 2025
1 parent 1a79a56 commit 4a73bbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions crates/editor/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4835,10 +4835,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) in
buffer.range_to_buffer_ranges(range)
{
Expand Down
2 changes: 1 addition & 1 deletion docs/src/configuring-zed.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4a73bbb

Please sign in to comment.