mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-23 03:44:23 +00:00
Remove unnecessary openFile command
This commit is contained in:
parent
76432d39cb
commit
16cba19ff3
4 changed files with 2 additions and 17 deletions
|
@ -267,16 +267,6 @@ export function openCargoToml(ctx: CtxInit): Cmd {
|
|||
};
|
||||
}
|
||||
|
||||
export function openFile(_ctx: CtxInit): Cmd {
|
||||
return async (uri: vscode.Uri) => {
|
||||
try {
|
||||
await vscode.window.showTextDocument(uri);
|
||||
} catch (err) {
|
||||
await vscode.window.showErrorMessage(err.message);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export function revealDependency(ctx: CtxInit): Cmd {
|
||||
return async (editor: RustEditor) => {
|
||||
const rootPath = vscode.workspace.workspaceFolders![0].uri.fsPath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue