mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
goto super places cursor on mod
This commit is contained in:
parent
b5cb53ea93
commit
bb2331b98e
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ export function activate(context: vscode.ExtensionContext) {
|
|||
|
||||
let doc = await vscode.workspace.openTextDocument(uri)
|
||||
let e = await vscode.window.showTextDocument(doc)
|
||||
e.selection = new vscode.Selection(range.start, range.start)
|
||||
e.revealRange(range, vscode.TextEditorRevealType.InCenter)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue