You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a region comment in VSCode and the corresponding end region comment:
// #region Some code regionfuncwhatever() {}
// #endregion
Notice that these regions aren't collapsible
What did you see happen?
I wasn't able to collapse the regions are collapsible.
What did you expect to see?
The ability to collapse the code between those comments into a single line, like it works with the TypeScript LSP. This makes code easier to structure when having long functions (yes, I know this is not good code, but eh).
Editor and settings
VSCode 1.89.0
Go 1.22.2
vscode-go v0.41.4
Logs
No response
The text was updated successfully, but these errors were encountered:
TheDevMinerTV
added
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
labels
May 15, 2024
There are folding provider extensions that support #region annotations and customization.
VS Code can merge folding ranges from multiple extensions. (as long as they don't collide)
Please give them a try. It's not Go style, so we think this is out of scope.
gopls version
golang.org/x/tools/gopls v0.15.3
go env
doesn't apply
What did you do?
What did you see happen?
I wasn't able to collapse the regions are collapsible.
What did you expect to see?
The ability to collapse the code between those comments into a single line, like it works with the TypeScript LSP. This makes code easier to structure when having long functions (yes, I know this is not good code, but eh).
Editor and settings
VSCode 1.89.0
Go 1.22.2
vscode-go v0.41.4
Logs
No response
The text was updated successfully, but these errors were encountered: