Accepting review suggestions

This commit is contained in:
Bruno Ortiz 2023-04-27 16:13:05 -03:00
parent 800b3b6323
commit bcb21311ea
5 changed files with 40 additions and 28 deletions

View file

@ -276,6 +276,9 @@ export function openCargoToml(ctx: CtxInit): Cmd {
export function revealDependency(ctx: CtxInit): Cmd {
return async (editor: RustEditor) => {
if (!ctx.dependencies?.isInitialized()) {
return;
}
const documentPath = editor.document.uri.fsPath;
const dep = ctx.dependencies?.getDependency(documentPath);
if (dep) {