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 command: enable whole document formatting #2

Closed
a-h opened this issue May 9, 2021 · 0 comments
Closed

LSP command: enable whole document formatting #2

a-h opened this issue May 9, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@a-h
Copy link
Owner

a-h commented May 9, 2021

As per https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_formatting

I think all that's required is to ensure that *.templ file requests are intercepted by the lsp command. The lsp fmt command demonstrates how to format multiple files - by parsing the template and using the template files Write method to output a formatted version.

@a-h a-h added good first issue Good for newcomers enhancement New feature or request labels May 9, 2021
@a-h a-h closed this as completed in 8905c85 May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant