From c7520c35503bfd2951124e9c816d93ca9353030d Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:43:10 +0000 Subject: [PATCH] refactor: rename variable --- helix-term/src/commands/lsp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs index d19f021b..e5b05ea1 100644 --- a/helix-term/src/commands/lsp.rs +++ b/helix-term/src/commands/lsp.rs @@ -1254,7 +1254,7 @@ pub fn compute_inlay_hints_for_all_views(editor: &mut Editor, jobs: &mut crate:: } } -fn lsp_annotations_area(view: &View, doc: &Document) -> (usize, usize) { +fn lsp_annotations_line_range(view: &View, doc: &Document) -> (usize, usize) { // Compute ~3 times the current view heigh, that way some scrolling // will not show half the view with annoations half without while still being faster // than computing all the hints for the full file @@ -1284,7 +1284,7 @@ fn compute_inlay_hints_for_view( .language_servers_with_feature(LanguageServerFeature::InlayHints) .next()?; - let (first_line, last_line) = lsp_annotations_area(view, doc); + let (first_line, last_line) = lsp_annotations_line_range(view, doc); let new_doc_inlay_hints_id = DocumentInlayHintsId { first_line, @@ -1433,7 +1433,7 @@ fn compute_color_swatches_for_view( .language_servers_with_feature(LanguageServerFeature::ColorProvider) .next()?; - let (first_line, last_line) = lsp_annotations_area(view, doc); + let (first_line, last_line) = lsp_annotations_line_range(view, doc); let new_doc_color_swatches_id = ColorSwatchesId { first_line,