mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +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
|
@ -353,6 +353,7 @@ impl<'a> CompletionContext<'a> {
|
|||
position: FilePosition,
|
||||
config: &'a CompletionConfig,
|
||||
) -> Option<CompletionContext<'a>> {
|
||||
let _p = profile::span("CompletionContext::new");
|
||||
let sema = Semantics::new(db);
|
||||
|
||||
let original_file = sema.parse(position.file_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue