Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
project: Fix semantic tokens coloring deleted diff hunks (#51386)
Lukas Wirth9ddf672d57a4
diff --git a/crates/project/src/lsp_store/semantic_tokens.rs b/crates/project/src/lsp_store/semantic_tokens.rsindex cfcd74ad7de..2927e5c0af7 100644--- a/crates/project/src/lsp_store/semantic_tokens.rs+++ b/crates/project/src/lsp_store/semantic_tokens.rs@@ -585,8 +585,7 @@ async fn raw_to_buffer_semantic_tokens(}Some(BufferSemanticToken {- range: buffer_snapshot.anchor_before(start)- ..buffer_snapshot.anchor_after(end),+ range: buffer_snapshot.anchor_range_around(start..end),token_type: token.token_type,token_modifiers: token.token_modifiers,})