mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
feat(lsp): provide registry details on hover if present (#13294)
Closes: #13272
This commit is contained in:
parent
2067820714
commit
57bfa87b2c
8 changed files with 111 additions and 6 deletions
|
@ -1119,6 +1119,12 @@ impl Inner {
|
|||
),
|
||||
(None, None, _) => unreachable!("{}", json!(params)),
|
||||
};
|
||||
let value =
|
||||
if let Some(docs) = self.module_registries.get_hover(&dep).await {
|
||||
format!("{}\n\n---\n\n{}", value, docs)
|
||||
} else {
|
||||
value
|
||||
};
|
||||
Some(Hover {
|
||||
contents: HoverContents::Markup(MarkupContent {
|
||||
kind: MarkupKind::Markdown,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue