-
-
Notifications
You must be signed in to change notification settings - Fork 431
Make editor hover less intrusive #21
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
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Would be nice to be able to set the delay time prior to pop-up, it's now in my opinion way too short... Mac 11.1 |
the IDE is currently unusable as the pop ups just get in the way if you edit with the mouse. |
See here: arduino/arduino-language-server#68 |
Regarding these:
Some time back, Akos kindly helped me to understand this situation better. I forgot to post an update to the issue after that though so I will do that now: The formatting for the hover text is provided by the clangd C++ language server used by the Arduino Language Server. For the example used here, it looks like this: {
"id": 11,
"jsonrpc": "2.0",
"result": {
"contents": {
"kind": "markdown",
"value": "### function `pinMode` \n\n---\n→ `void` \nParameters: \n- `uint8_t pin`\n- `uint8_t mode`\n\n---\n```cpp\nvoid pinMode(uint8_t pin, uint8_t mode)\n```"
},
"range": {
"end": { "character": 9, "line": 34 },
"start": { "character": 2, "line": 34 }
}
}
} So the large font size of the first line of the hover results from the rendering of the H3 heading (as specified by the Markdown markup VS Code with the clangd extension produces an identical intrusive hover for C++ code: |
I have no problem with the popup on hover, it takes for me too much time to display it. |
Is your feature request related to a problem? Please describe.
The editor hover seems unnecessarily large. It covers up a lot of the code, which is especially annoying/distracting when it is triggered inadvertently.
Describe the solution you'd like
Environment
OS: Windows 10
Version: 2.0.0-beta.2-snapshot.298cc11
Date: 2021-02-15T14:16:52.603Z
CLI Version: 0.16.0 alpha [c977a238]
Additional context
I also notice there are some strange horizontal rules in the hover that don't have any alignment with the text.
Related: #51
The text was updated successfully, but these errors were encountered: