You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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:
jcrben
changed the title
Is formatFull exposed in JSON-RPC?
Is formatFull() exposed in JSON-RPC?
Feb 10, 2023
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?
If I understand correctly your need, you would like to have an endoint like xml/formatting endoint which will consumes the formatFull which will return a String?
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: