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
Interesting... Can you elaborate a bit on what you would like regarding formatting? As in would you want there to be a "style guide" of sorts, or would you want stuff like warnings on redundant commands? Some use cases might be helpful in fleshing this out.
If I remember correctly, the Format SPL command you already have works fine for the actual formatting of the SPL. This request was just to bake it into vscode's built-in formatting functionality, which lets you format the document by using global keyboard shortcuts or by right-clicking in the Editor and choosing Format Document, instead of needing to trigger an Extension-specific Command. This Python extension is a good example: https://code.visualstudio.com/docs/python/editing#_formatting I'm sure there are other benefits/features, but this was the one that made me think to submit this request.
I took a look at this and it looks like it requires more than just a simple function hook, it requires actually porting all the code to the VSCode Formatter API, so this will be on hold for a while
I know it's not a quick change, but supporting the built-in formatting functionality would be a nice addition.
Links for reference, to clarify what I'm requesting:
https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_code-formatting
https://code.visualstudio.com/api/language-extensions/programmatic-language-features#format-source-code-in-an-editor
https://code.visualstudio.com/api/language-extensions/language-server-extension-guide
The text was updated successfully, but these errors were encountered: