feat: Extend the server with the hover_range capability

This commit is contained in:
Alexander Gonzalez 2021-07-22 22:08:28 -04:00
parent 6a2a0b7abb
commit 20c64cc0e6
4 changed files with 44 additions and 6 deletions

View file

@ -241,6 +241,13 @@ fn try_hover_for_lint(attr: &ast::Attr, token: &SyntaxToken) -> Option<RangeInfo
))
}
pub(crate) fn hover_range(
db: &RootDatabase,
range: FileRange,
config: &HoverConfig,
) -> Option<RangeInfo<HoverResult>> {
}
fn show_implementations_action(db: &RootDatabase, def: Definition) -> Option<HoverAction> {
fn to_action(nav_target: NavigationTarget) -> HoverAction {
HoverAction::Implementation(FilePosition {