usernamehw / vscode-error-lens

VSCode extension that enhances display of errors and warnings.
https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens
MIT License
601 stars 32 forks source link

Disable tooltip on hover #189

Closed RunDevelopment closed 1 year ago

RunDevelopment commented 1 year ago

Hello! I love the extension, but I would like to disable VSCode's tooltip showing up when hovering Error lens' message. This is very annoying, because it causes the tooltip to be open constantly when there are many error or errors with long messages (e.g. type errors). It would be nice to have an option to turn off the hover effect.

Example: in the following image, the mouse is hovering nowhere near the source code with the error, but VSCode's tooltip still shows up because of Error lens.

image

Unfortunately, the "Error Lens: Editor Hover Parts Enabled" setting does not change this. image

usernamehw commented 1 year ago

Does it work with?:

"errorLens.scrollbarHackEnabled": true,
RunDevelopment commented 1 year ago

Yes, that works! Thank you!

Should I close the issue? It's still a bug, but there is a fix/workaround in the settings.

usernamehw commented 1 year ago

Yeah, to prevent hover in this case - decoration needs this hack: pointer-events:none;, but this hack doesn't work without another hack like this position:absolute; and position:absolute makes message misaligned, so it needs somthing like this top:50%;transform:translateY(-50%); and that abomination already exists as a "errorLens.scrollbarHackEnabled" setting.

I'll add a description that it also disables hover.