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 have a special JSON syntax allowing interpolations using ${env} notation. Without the directive, beautify would split the interpolation apart across several lines. To mitigate this I add ignore directives around the interpolations before beautification. Unfortunately it still does not provide the expected result.
This correct behavior in the current design. The ignore expects to start on it's own line. The ignore annotation is not designed to handle the level of fine-grained control.
PRs to change this are welcome, but will require a broad set of tests to ensure they behave well.
Instead of trying to ignore parts of a line, perhaps try ignoring the whole line:
Description
I have a special JSON syntax allowing interpolations using
${env}
notation. Without the directive, beautify would split the interpolation apart across several lines. To mitigate this I add ignore directives around the interpolations before beautification. Unfortunately it still does not provide the expected result.Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
Steps to Reproduce
Settings
all default settings
The text was updated successfully, but these errors were encountered: