Hovering does not show basic info, this is separate from Alt+F12 (Ctrl+Shift+F10 on Linux) "Peek Definition"
Peak definition as shown in the image should also work with basic mouse hover
Try whether you can "go to definition" by clicking F12.
if can, work of this plugin is OK, there should be some problem with your vscode on Linux cause you can't get reference peeking, or you get wrong key settings of reference peeking (for my vscode, it's Ctrl+MouseOver).
if can't, there must be a issue with this plugin.
This plugin has just provided a single definition service, can't distinguish different types of definition operations.
go to definition or Ctrl+mouseover work fine. i am talking about enabling a hover provider which is not implemented as you see here:
// server/src/server.ts
return {
capabilities: {
textDocumentSync: {
openClose: true,
change: TextDocumentSyncKind.Full
},
completionProvider: configuration.enableIdAndClassNameCompletion ? {
resolveProvider: false
} : undefined,
definitionProvider: configuration.enableGoToDefinition,
referencesProvider: configuration.enableFindAllReferences,
workspaceSymbolProvider: configuration.enableWorkspaceSymbols
}
}
to implement this set capabilities and implement registerHoverProvider:
{
"capabilities": {
"hoverProvider": true
}
}
Thanks, I didn't know about the "hoverProvider" API, I will check it soon.
Will do this soon
Hi, sduzair, new version v2.0.0 has released, and this feature has been provided.
There is a new option maxHoverStylePropertyCount to control maximum style lines to show, default value is 4.
Thanks for your suggestion, and glad to see more of your suggestions.