Skip to content

x/tools/gopls: Inlay Hint: show name of a long function at its final brace #80465

Description

@spcxtesla

gopls is excellent. Thank you. It would be even better if it could add another feature.

func foo() {
} // foo

An example is shown above where we could add "// foo" to the end of function definition. This is helpful to identify the end of a long function. Also, the idea applies to struct/if/for definition as well

refer to:
Propose a new inlay hint that marks the declared name of a definition
[clangd] Add BlockEnd comments for control flow statements

Metadata

Metadata

Assignees

No one assigned

    Labels

    ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.help wanted

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions