I don't know how this works for vscode, but for GoLand you can write your own syntax-aware custom folding plugin, see this plugin as an example of how to do it: https://plugins.jetbrains.com/plugin/9320-advanced-java-folding
This doesn't mean we are not open to new ideas on how to improve the error handling display to all users by default and we are happy to listen on your opinions/needs. On Friday, July 19, 2019 at 5:58:19 AM UTC+3, kez....@gmail.com wrote: > > Thanks! I haven't heard of GoLand before. > > Looks like the One Line Returns feature is like an 80% solution, I would > toggle that on all the time. > > I'm not sold on completely hiding the error line like you want, but I'll > definitely start a thread with that GoLand dev about how hard it would be > to make the folding slightly more generic. > > On Friday, 19 July 2019 10:18:52 UTC+10, Mike Schinkel wrote: >> >> Are there any editors that support some kind of customisable collapsing >>> behaviour? Where the above code could be collapsed to something like: >>> >> >> Might be worth reading, commenting on and/or possibly upvoting this >> feature proposal for GoLand? >> >> https://youtrack.jetbrains.com/issue/GO-7747 >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9d86c422-a591-48ca-8f22-0b38e67bc36c%40googlegroups.com.