-
Notifications
You must be signed in to change notification settings - Fork 91
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
Is formatFull()
exposed in JSON-RPC?
#1478
Comments
formatFull()
exposed in JSON-RPC?
Glad you like it!
If I understand correctly your need, you would like to have an endoint like If it that we could expose it with a new command like https://github.com/eclipse/lemminx/tree/main/org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/extensions/contentmodel/commands Are you intersted to contribute with this new command? If yes, don't hesitate to ask us if you need more help. |
I like the formatting provided by this extension and I want to use it in a script (no editor) to automatically clean up the formatting for a bunch of repos and possibly in a CI check.
I used https://github.com/yeger00/pylspclient and hit the the
textDocument/formatting
endpoint but as the specification notes this returns TextEdit[]` and I don't want to mess around with them.In reading the codebase I noticed that these edits are applied in the formatFull method
lemminx/org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/services/XMLLanguageService.java
Line 121 in 5cf4a9c
I think this full formatting isn't part of the official spec but I was wondering if was exposed in another way or if I should just write an extension to access it?
The text was updated successfully, but these errors were encountered: