Remove unnecessary openFile command

This commit is contained in:
Lukas Wirth 2022-07-17 17:45:43 +02:00 committed by Bruno Ortiz
parent 76432d39cb
commit 16cba19ff3
4 changed files with 2 additions and 17 deletions

View file

@ -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;