robocorp / robotframework-lsp

Robocorp extensions for VS Code: Robocorp Code and RFW LSP
https://robocorp.com/docs/developer-tools/visual-studio-code
Apache License 2.0
201 stars 91 forks source link

Use a different Robot Framework Formatter #900

Open robertomoraisSngular opened 1 year ago

robertomoraisSngular commented 1 year ago

Is your feature request related to a problem? Please describe. The current options that the extensions has for formatters aren't ideal for what we need, We tried to install different ones but can't seem to get them working with Robot Framework Language Server. We are using Visual Studio Code.

Describe the solution you'd like It would be great if it would let us use a different formatter with this extension. There is already a section to choose which one to use.

Describe alternatives you've considered Another option is perhaps thinking of adding more customisable features to the formatter or just generally improving it?

xylix commented 1 year ago

Which formatter do you want to use?

robertomoraisSngular commented 1 year ago

Which formatter do you want to use?

https://marketplace.visualstudio.com/items?itemName=tumit.vscode-rf-formatter&ssr=false#overview

This is the one we used before.

bhirsz commented 1 year ago

It looks the project is archived. Can you describe what you expect from the formatter? There is high chance existing formatter (like Robotidy) can achieve it if you configure it - you can disable all transformers in the Robotidy, ie if you just want to normalize spacing or perform simple formatting. If you have list of such requirements I can check and see if it can be done and what configuration is needed in Robotidy for it.

noubar commented 1 month ago

Maybe at least an option to disable autoformatting It is really a problem if someone works with a legacy code and the save action in vscode automatically reformats all the file as a result i cannot commit only the needed changes but the whole file instead.