mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 07:37:30 +00:00
Reveal the newly added source change in the editor.
This commit is contained in:
parent
e8e82ce032
commit
cd21f0eade
1 changed files with 1 additions and 0 deletions
|
@ -46,5 +46,6 @@ export async function handle(change: SourceChange) {
|
|||
return;
|
||||
}
|
||||
editor.selection = new vscode.Selection(position, position);
|
||||
editor.revealRange(new vscode.Range(position, position), vscode.TextEditorRevealType.Default);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue