Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lsp-server] Add support for custom regions via comments #3791

Open
wesharper opened this issue Sep 24, 2024 · 0 comments
Open

[lsp-server] Add support for custom regions via comments #3791

wesharper opened this issue Sep 24, 2024 · 0 comments
Labels
enhancement lsp-server graphql-language-service-server

Comments

@wesharper
Copy link

Current Behavior (if applicable)

query {
  foo {
    bar
    baz
    # region
    zim
    zam
    zop
    # endregion
  }
}

The region/endregion comments do not activate custom code folding regions.

Desired Behavior

# region and # endregion or some variant like # :region and # :endregion should allow for custom code folding regions. This is especially useful for large queries within one resolver.

This specific syntax is an existing feature for other languages in VS Code and there are other mechanisms for other editors. Regardless of the actual implementation, first-party support for some sort of custom folding would be greatly appreciated!

@wesharper wesharper added enhancement lsp-server graphql-language-service-server labels Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement lsp-server graphql-language-service-server
Projects
None yet
Development

No branches or pull requests

1 participant