x/tools/gopls: add support for folding comment regions #51364
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
gopls version
golang.org/x/tools/gopls v0.7.5
What did you do?
Wrote a program with comment regions
What did you expect to see?
I expected to be able to collapse the regions
What did you see instead?
No folding support by the language server.
Editor and settings
To get the desired effect I was able to switch
editor.foldingStrategy = "indentation"
. This does not seem ideal though as I believe this bypasses any special folding that the language server provides.The text was updated successfully, but these errors were encountered: