Open roflsunriz opened 3 years ago
Provide the settings you use: nothing
beautify JavaScript file
beautify with optional chaining expression and Nullish coalescing operator held
option.f2 ? option?.f2(videoid, apiData) : false
var cacheIds = json[videoid].preferred ?? json[videoid].cacheIds[json[videoid].cacheIds.length - 1]
optional chaining expression and Nullish coalescing operator broken (automatically adds spaces)
option.f2 ? option ? .f2(videoid, apiData) : false
var cacheIds = json[videoid].preferred ? ? json[videoid].cacheIds[json[videoid].cacheIds.length - 1]
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
Hi, I'm experience the same issue. any solution? any updates?
Update the bundled version of js-beautifer: #346 (then restart VScode)
Provide the settings you use: nothing
Action performed
beautify JavaScript file
Expected results
beautify with optional chaining expression and Nullish coalescing operator held
Actual results
optional chaining expression and Nullish coalescing operator broken (automatically adds spaces)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator