Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hover on non-function symbol in other document should show definition and documentation #343

Closed
renkun-ken opened this issue Sep 23, 2020 · 0 comments · Fixed by #344
Closed

Comments

@renkun-ken
Copy link
Member

Currently, hover on non-function symbol in a document other than where it is defined does not show its definition nor documentation as it does in the document where it is defined.

For example, in languageserver code, hover on Response does not show anything while Go To Definition goes to protocol.R and hover on Response in this document the documentation is shown.

if (is.null(contents)) {
    Response$new(id)
} else {
    Response$new(
        id,
        result = list(
            contents = contents,
            range = range(
                start = document$to_lsp_position(row = range$start$row, col = range$start$col),
                end = document$to_lsp_position(row = range$end$row, col = range$end$col)
            )
        )
    )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant