mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 22:13:39 +00:00
fix: incorrect formatting of hover actions
This commit is contained in:
parent
af488c971f
commit
4a4b13cbda
2 changed files with 2 additions and 2 deletions
|
@ -375,8 +375,8 @@ pub(crate) fn hover_for_definition(
|
||||||
HoverResult {
|
HoverResult {
|
||||||
markup: render::process_markup(sema.db, def, &markup, config),
|
markup: render::process_markup(sema.db, def, &markup, config),
|
||||||
actions: [
|
actions: [
|
||||||
show_implementations_action(sema.db, def),
|
|
||||||
show_fn_references_action(sema.db, def),
|
show_fn_references_action(sema.db, def),
|
||||||
|
show_implementations_action(sema.db, def),
|
||||||
runnable_action(sema, def, file_id),
|
runnable_action(sema, def, file_id),
|
||||||
goto_type_action_for_def(sema.db, def, ¬able_traits),
|
goto_type_action_for_def(sema.db, def, ¬able_traits),
|
||||||
]
|
]
|
||||||
|
|
|
@ -63,7 +63,7 @@ function renderHoverActions(actions: ra.CommandLinkGroup[]): vscode.MarkdownStri
|
||||||
(group.title ? group.title + " " : "") +
|
(group.title ? group.title + " " : "") +
|
||||||
group.commands.map(renderCommand).join(" | "),
|
group.commands.map(renderCommand).join(" | "),
|
||||||
)
|
)
|
||||||
.join("___");
|
.join(" | ");
|
||||||
|
|
||||||
const result = new vscode.MarkdownString(text);
|
const result = new vscode.MarkdownString(text);
|
||||||
result.isTrusted = true;
|
result.isTrusted = true;
|
||||||
|
|
Loading…
Reference in a new issue