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

Fold legal/license header by default #884

Open
mickaelistria opened this issue Dec 15, 2023 · 1 comment
Open

Fold legal/license header by default #884

mickaelistria opened this issue Dec 15, 2023 · 1 comment

Comments

@mickaelistria
Copy link
Contributor

The language server can return folding ranges. Some of those ranges can be "license header" that we may prefer to collapse by default. As the language server doesn't know if a range is a legal header or not, the client (LSP4E) could check it.
For example, we could assume that if a collapse range is the 1st range in the file, has a Copyright notice and a SPDX license descriptor, it can be fold by default.

@mickaelistria
Copy link
Contributor Author

This comes from redhat-developer/eclipseide-jdtls#89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant