x/tools/gopls: provide foldingRange for the case sections within a select #40146
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.
Milestone
Filing this report per @stamblerre's feedback on Gopher Slack #vscode channel
What version of Go, VS Code & VS Code Go extension are you using?
Run
go version
to get version of Gogo version go1.14.4 windows/amd64
Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders1.47.0 d5e9aa0227e057a60c82568bf31c04730dc15dcd x64
gopls
versionv0.15.1
go env
to get the go development environment detailsShare the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
I can expand
case
blocks within aswitch
statement, but cannot expandcase
blocks within aselect
statement.Example of collapsing a
case
within aswitch
statement:Example of where this isn't enabled for a
case
within aselect
statement:Note: I can collapse the entire
select
statement, but that's not always the desired behavior.While I cannot recall if this ever worked, this seems like odd behavior.
The text was updated successfully, but these errors were encountered: