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.
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?
vscode-docs-view/src/docsView.ts
Lines 225 to 230 in dc69f7e
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.