Skip to content
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

Bug: errorLens.alignMessage doesn't work with inlay hints #185

Closed
Jonas1312 opened this issue Oct 3, 2023 · 1 comment
Closed

Bug: errorLens.alignMessage doesn't work with inlay hints #185

Jonas1312 opened this issue Oct 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Jonas1312
Copy link

Hi,

Thanks for the feature!

However, it doesn't work well with python.analysis.inlayHints settings

Video.mp4
usernamehw added a commit that referenced this issue Oct 20, 2023
align multiline message in the future #181
@usernamehw usernamehw added the bug Something isn't working label Oct 22, 2023
@usernamehw
Copy link
Owner

usernamehw commented Oct 22, 2023

There's no official api for alignment, so it's a hack already.

I've added a boolean property "useFixedPosition" to "errorLens.alignMessage" setting that uses a different hack. It removes stuttering on active line (when typing) and ignores things like inlayHints.

The drawback is that it will conflict with other extension decorations and if inlayHint is long it will also overlap with line text. So, only useful if you align messages far away from the code. This feature is unlikely to receive anything better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants