diff options
author | Aleksey Kladov <[email protected]> | 2021-01-09 11:48:15 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-01-09 11:48:15 +0000 |
commit | 3dfa2768acdd6bbf0e6999cdc4eb5cf0718b95a4 (patch) | |
tree | a0be5b3bb51063df06eb8502c9412836db4260ad /crates/rust-analyzer/src/to_proto.rs | |
parent | c6150a370616ebb918620623bae24855a6d8cb65 (diff) |
Shorten names
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 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 | ||
7 | use ide::{ | 7 | use 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 | }; |
13 | use itertools::Itertools; | 13 | use itertools::Itertools; |
14 | 14 | ||
@@ -336,7 +336,7 @@ static TOKEN_RESULT_COUNTER: AtomicU32 = AtomicU32::new(1); | |||
336 | pub(crate) fn semantic_tokens( | 336 | pub(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); |