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,
})