Skip to content

For the rust language, not all hovers are displayed. #54

Description

@Krysl

I checked the code and I don’t know why this API didn’t get all the hovers. Maybe it’s a bug of VSCode?

private getHoversAtCurrentPositionInEditor(editor: vscode.TextEditor) {
return vscode.commands.executeCommand<vscode.Hover[]>(
'vscode.executeHoverProvider',
editor.document.uri,
editor.selection.active);
}

I made a fork, and using vscode.languages.getDiagnostics(document.uri); to get Diagnostics and show it.

The current code is a bit messy and may not be suitable as a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions