-
Notifications
You must be signed in to change notification settings - Fork 33
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
Feature Request: Wrapping Text Decorator #47
Comments
Same as #12 - There's simply no api to do that |
The upstream issue is probably this one microsoft/vscode#32856 |
@usernamehw Gentle reminder: microsoft/vscode#16221 (comment) is now closed, and the new VSCode inlay hints API are finalized, which might just be the necessary API to resolve this issue. |
@rami3l I don't think that those decorations can be wrapped. It also looks like that api needs to be implemented per language? And it's also seems like the api has a specific purpose of showing info of parameter hints (function parameter names & return types). |
@usernamehw Thanks for you timely reply! I'm no expert, but here's what I've found...
Update: Indeed there are some discussions around the "less hack-y" usage of inlay hints in microsoft/language-server-protocol#956 (comment). |
Do I read this correctly that "in theory" this feature request could now be implemented? |
Workaround: You can enable showing the error in the status bar, where you should be able to see it completely, as soon as you move your cursor into this line. And yes: a word-wrap would be nice (but this would most likely mean that your line 21 takes multiple lines in the editor, so line 22 would visually be at least one line of). |
That's helpful. I'll experiment with that! |
It would be great to wrap the text decoration somehow so scrolling isn't required to read a longer error.
The text was updated successfully, but these errors were encountered: