aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/to_proto.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-01-09 11:48:15 +0000
committerAleksey Kladov <[email protected]>2021-01-09 11:48:15 +0000
commit3dfa2768acdd6bbf0e6999cdc4eb5cf0718b95a4 (patch)
treea0be5b3bb51063df06eb8502c9412836db4260ad /crates/rust-analyzer/src/to_proto.rs
parentc6150a370616ebb918620623bae24855a6d8cb65 (diff)
Shorten names
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r--crates/rust-analyzer/src/to_proto.rs8
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 0c31a9fed..d6bf60cde 100644
--- a/crates/rust-analyzer/src/to_proto.rs
+++ b/crates/rust-analyzer/src/to_proto.rs
@@ -6,9 +6,9 @@ use std::{
6 6
7use ide::{ 7use ide::{
8 Assist, AssistKind, CallInfo, CompletionItem, CompletionItemKind, Documentation, FileId, 8 Assist, AssistKind, CallInfo, CompletionItem, CompletionItemKind, Documentation, FileId,
9 FileRange, FileSystemEdit, Fold, FoldKind, Highlight, HighlightedRange, HlMod, HlTag, Indel, 9 FileRange, FileSystemEdit, Fold, FoldKind, Highlight, HlMod, HlRange, HlTag, Indel, InlayHint,
10 InlayHint, InlayKind, InsertTextFormat, LineIndex, Markup, NavigationTarget, ReferenceAccess, 10 InlayKind, InsertTextFormat, LineIndex, Markup, NavigationTarget, ReferenceAccess, Runnable,
11 Runnable, Severity, SourceChange, SourceFileEdit, SymbolKind, TextEdit, TextRange, TextSize, 11 Severity, SourceChange, SourceFileEdit, SymbolKind, TextEdit, TextRange, TextSize,
12}; 12};
13use itertools::Itertools; 13use itertools::Itertools;
14 14
@@ -336,7 +336,7 @@ static TOKEN_RESULT_COUNTER: AtomicU32 = AtomicU32::new(1);
336pub(crate) fn semantic_tokens( 336pub(crate) fn semantic_tokens(
337 text: &str, 337 text: &str,
338 line_index: &LineIndex, 338 line_index: &LineIndex,
339 highlights: Vec<HighlightedRange>, 339 highlights: Vec<HlRange>,
340) -> lsp_types::SemanticTokens { 340) -> lsp_types::SemanticTokens {
341 let id = TOKEN_RESULT_COUNTER.fetch_add(1, Ordering::SeqCst).to_string(); 341 let id = TOKEN_RESULT_COUNTER.fetch_add(1, Ordering::SeqCst).to_string();
342 let mut builder = semantic_tokens::SemanticTokensBuilder::new(id); 342 let mut builder = semantic_tokens::SemanticTokensBuilder::new(id);