-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Show squigglies on collapsed regions containing errors or warnings (#120989) #190682
base: main
Are you sure you want to change the base?
Conversation
@aeschli is folding your domain? |
Thanks @gjsjohnmurray, Having the squigglies on the line number seems strange to me. What about annotating the @hediet @daviddossett Any ideas? |
Cool idea! I tend to agree. Either a decoration the chevron icon (i.e. |
Thanks for the feedback. Drawbacks I see to putting the decoration under the I'm willing to give it a try, but I assume I've missed the cutoff for 1.82. |
I had a go at simulating the appearance of a 'chevron-dot' by using 'debug-coverage' I think it's too cryptic. Nor would it differentiate between folds containing errors and those containing only warnings, unless we come up with two decorations. I tried unsuccessfully to put the squiggles under the I experimented with additional text after the |
Any more thoughts about this? |
@hbons is UX your area? If so I would appreciate your input on this. |
Apologies, I've been on paternity leave until recently and this fell off my radar. Looking at it with fresh eyes, I wonder if we could just put the squiggles on whatever characters are visible when a region is collapsed. Once expanded, the squiggles are removed from the parent and show on the specific lines with errors. I worry about changing the collapse iconography with similar logic. Once opened, we would suddenly change the icon with the error indicator to some nested level, and so on as more regions are expanded. That seems easier to reason about with squiggles, less so with icons. |
@daviddossett congratulations! Re icons, I don't like that idea either. But I think squiggling the whole of the text in the folded line would be confusing, implying that this line itself was entirely in error. Plus, if part of the line genuinely did deserve squiggles we would lose sight of that until we expanded it. I still favour squiggles in the gutter. |
It will soon be the first anniversary of this PR of mine |
This PR closes #120989