Merge pull request #18757 from roife/fix-17812

feat: support updating snapshot tests with codelens/hovering/runnables
This commit is contained in:
Lukas Wirth 2025-01-01 12:44:55 +00:00 committed by GitHub
commit a612fc9a16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 540 additions and 97 deletions

View file

@ -5933,6 +5933,12 @@ impl HasCrate for Adt {
}
}
impl HasCrate for Impl {
fn krate(&self, db: &dyn HirDatabase) -> Crate {
self.module(db).krate()
}
}
impl HasCrate for Module {
fn krate(&self, _: &dyn HirDatabase) -> Crate {
Module::krate(*self)