Skip to content

x/tools/gopls: support region folding #74930

@firefart

Description

@firefart

Is your feature request related to a problem? Please describe.
Vscode can fold the code with region comments if supported by the language:

https://code.visualstudio.com/docs/editing/codebasics#_folding

It would be great to have this feature in golang too to be able to collapse whole regions in the code

Describe the solution you'd like
A solution where region comments like // #region for example are supported. If this needs to be defined in golang itself, I can raise a feature request there too

Describe alternatives you've considered
there are none

Additional context
https://code.visualstudio.com/docs/editing/codebasics#_folding

Metadata

Metadata

Assignees

No one assigned

    Labels

    ToolsThis label describes issues relating to any tools in the x/tools repository.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions