mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Add some completion profile spans
This commit is contained in:
parent
c5c11b87cc
commit
ab657af5b7
6 changed files with 10 additions and 6 deletions
|
@ -16,7 +16,7 @@ use ide_db::{
|
|||
helpers::{item_name, SnippetCap},
|
||||
RootDatabase, SymbolKind,
|
||||
};
|
||||
use syntax::{SyntaxKind, TextRange};
|
||||
use syntax::{SmolStr, SyntaxKind, TextRange};
|
||||
|
||||
use crate::{
|
||||
context::{PathCompletionContext, PathKind},
|
||||
|
@ -243,7 +243,7 @@ fn render_resolution_(
|
|||
if has_non_default_type_params {
|
||||
cov_mark::hit!(inserts_angle_brackets_for_generics);
|
||||
item.lookup_by(local_name.clone())
|
||||
.label(format!("{}<…>", local_name))
|
||||
.label(SmolStr::from_iter([&local_name, "<…>"]))
|
||||
.insert_snippet(cap, format!("{}<$0>", local_name));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue