Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/commands.ts')
| -rw-r--r-- | editors/code/src/commands.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index 81d3b8da7f..98ccd50dc0 100644 --- a/editors/code/src/commands.ts +++ b/editors/code/src/commands.ts @@ -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) { |