mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Treat BlockExpr as a potential module origin
This commit is contained in:
parent
7d5ed18c42
commit
82146737ac
8 changed files with 44 additions and 7 deletions
|
@ -321,6 +321,7 @@ fn hover_for_definition(db: &RootDatabase, def: Definition) -> Option<Markup> {
|
|||
match it.definition_source(db).value {
|
||||
ModuleSource::Module(it) => it.short_label(),
|
||||
ModuleSource::SourceFile(it) => it.short_label(),
|
||||
ModuleSource::BlockExpr(it) => it.short_label(),
|
||||
},
|
||||
mod_path,
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue