-
Notifications
You must be signed in to change notification settings - Fork 12
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
YEdit Format command removes YAML comments: fix or disable auto-format #99
Comments
@tedepstein , can you please clarify what is expected from the fix? If I manually call formatting the the comments are removed as noted in the issue. |
I meant manually invoked formatting. We should remove the shortcut key binding (normally ctrl+shift+f on Windows), and the context menu item. If you find other UI entries, you should probably remove those too. |
The good news is that it's always "Ctrl+Shift+F", even on Mac where it should be "CMD+shift-F". |
@tfesenko , we fixed this in API Studio. Can the same fix be applied here? |
@tedepstein asked:
We fixed in by overriding preferences in our RCP application so the key binding is disabled. We can't apply the same fix as is, but we can think of variations, e.g. create a SwagEdit perspective and change preferences when the user switches to our perspective. Another approach is to contact YEdit and see if we can ask them to disable the action by default (I don't know if they will be thrilled to do it though). The users can manually disable the binding too. We can add this issue and a step-by-step solution to our documentation. |
I think that's the best approach for now. If you can please write up a short paragraph or two in the Readme, I'll review. |
@tedepstein , I added a description how to disable the key binding to https://github.com/RepreZen/SwagEdit/blob/master/README.md#troubleshooting |
@tfesenko , your screenshot and additions to the README look good. I think this is "fixed", to the extent we're able to address the issue in the SwagEdit context. Not much more we can do now, therefore closing. Please reopen if you think I've missed anything. |
As reported here, auto-format in YEdit removes all YAML comments from the source file, without warning:
oyse/yedit#15
IMO, YAML comments are important, and we should disable auto-format until we can fix this bug.
The text was updated successfully, but these errors were encountered: