mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
reveal only when tree is visible
This commit is contained in:
parent
a3081a6774
commit
fe7874af90
3 changed files with 29 additions and 12 deletions
|
@ -15,7 +15,6 @@ import {
|
|||
isRustEditor,
|
||||
RustEditor,
|
||||
RustDocument,
|
||||
closeDocument,
|
||||
} from "./util";
|
||||
import { startDebugSession, makeDebugConfig } from "./debug";
|
||||
import { LanguageClient } from "vscode-languageclient/node";
|
||||
|
@ -324,7 +323,6 @@ async function revealParentChain(document: RustDocument, ctx: CtxInit) {
|
|||
if (parentChain.length >= maxDepth) {
|
||||
// this is an odd case that can happen when we change a crate version but we'd still have
|
||||
// a open file referencing the old version
|
||||
await closeDocument(document);
|
||||
return;
|
||||
}
|
||||
} while (!ctx.dependencies?.contains(documentPath));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue