diff options
author | Aleksey Kladov <[email protected]> | 2021-05-17 16:37:06 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-05-17 16:37:06 +0100 |
commit | 41510f437e87e013f2015bed1a964163c6d3f1ff (patch) | |
tree | ead7add1ada64dfad8e819a32a5ea4ffa8c0cd60 /crates/rust-analyzer/src/to_proto.rs | |
parent | f9d4a9eaee6f86d9bd60cf6d18ec744b56696135 (diff) |
minor: adjust config name
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 6dc9f82ab..9dec46c78 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -381,7 +381,7 @@ pub(crate) fn semantic_tokens( | |||
381 | text: &str, | 381 | text: &str, |
382 | line_index: &LineIndex, | 382 | line_index: &LineIndex, |
383 | highlights: Vec<HlRange>, | 383 | highlights: Vec<HlRange>, |
384 | include_strings: bool, | 384 | highlight_strings: bool, |
385 | ) -> lsp_types::SemanticTokens { | 385 | ) -> lsp_types::SemanticTokens { |
386 | let id = TOKEN_RESULT_COUNTER.fetch_add(1, Ordering::SeqCst).to_string(); | 386 | let id = TOKEN_RESULT_COUNTER.fetch_add(1, Ordering::SeqCst).to_string(); |
387 | let mut builder = semantic_tokens::SemanticTokensBuilder::new(id); | 387 | let mut builder = semantic_tokens::SemanticTokensBuilder::new(id); |
@@ -390,11 +390,11 @@ pub(crate) fn semantic_tokens( | |||
390 | if highlight_range.highlight.is_empty() { | 390 | if highlight_range.highlight.is_empty() { |
391 | continue; | 391 | continue; |
392 | } | 392 | } |
393 | let (typ, mods) = semantic_token_type_and_modifiers(highlight_range.highlight); | 393 | let (ty, mods) = semantic_token_type_and_modifiers(highlight_range.highlight); |
394 | if !include_strings && typ == lsp_types::SemanticTokenType::STRING { | 394 | if !highlight_strings && ty == lsp_types::SemanticTokenType::STRING { |
395 | continue; | 395 | continue; |
396 | } | 396 | } |
397 | let token_index = semantic_tokens::type_index(typ); | 397 | let token_index = semantic_tokens::type_index(ty); |
398 | let modifier_bitset = mods.0; | 398 | let modifier_bitset = mods.0; |
399 | 399 | ||
400 | for mut text_range in line_index.index.lines(highlight_range.range) { | 400 | for mut text_range in line_index.index.lines(highlight_range.range) { |