mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
scip: Populate SymbolInformation::signature_documentation
This commit is contained in:
parent
b24914970f
commit
566bb77f91
2 changed files with 10 additions and 1 deletions
|
@ -48,6 +48,7 @@ pub struct TokenStaticData {
|
|||
pub moniker: Option<MonikerResult>,
|
||||
pub display_name: Option<String>,
|
||||
pub enclosing_moniker: Option<MonikerResult>,
|
||||
pub signature: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
|
@ -178,6 +179,7 @@ impl StaticIndex<'_> {
|
|||
enclosing_moniker: current_crate
|
||||
.zip(def.enclosing_definition(self.db))
|
||||
.and_then(|(cc, enclosing_def)| def_to_moniker(self.db, enclosing_def, cc)),
|
||||
signature: def.label(self.db),
|
||||
});
|
||||
self.def_map.insert(def, it);
|
||||
it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue