-
Notifications
You must be signed in to change notification settings - Fork 181
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
Optional-chaining / null coalescing #368
Comments
I see beautifier/js-beautify#1779 and beautifier/js-beautify#1794 both have been merged, and released in js-beautify 1.11.0 Does it mean this extension need to upgrade its dependency and do a release? |
Has the problem been solved? |
I see that this is closed but 'm still dealing with this issue. When I run the beautify command on a file all of my optional chaining expressesions add a space before and after the ? question mark causing syntax errors |
I am also having this problem using Beautify 1.5.0 in VSCode... How can I fix this other than disabling Beautify? |
what i had to do was navigate to the folder where the extension is and run |
The fix to this is just HookyQR updating the beautify-js dependency to a newer version that fixed this issue .... it takes less then 30 seconds |
I appreciate the suggestion, but it's too much trouble. I just bailed on Beautify and switched to Prettier. Seems like maybe Beautify doesn't have it's stuff together. Idk. |
I'm still heaving this issue. I run the |
@moscoso 's solution worked perfectly. I did have to reload vscode for it to work though. |
Yep, just drop into |
@jasonkneen Hey man, thank you, Great Solution! |
VS Code settings:
Expected results
When there is chaining or nullish coalescing involved, do not put spaces inbetween '?'
Actual results
Space is added inbetween the '?' causing syntax error.
Similar issue : beautifier/js-beautify#1530
Thanks.
The text was updated successfully, but these errors were encountered: