Closed RickyMarou closed 7 years ago
Sorry, after more research it appears that this is an issue with jsbeautify itself and that they are close to fixing it : https://github.com/beautify-web/js-beautify/issues/657
It looks like beautify-web/js-beautify#657 was finally fixed back in August 2018, and arrived in js-beautify versoin 1.8.0.
@mike7515 could you upgrade this extension to use the latest version of js-beautify so we can get this feature?
here is what i have in my settings :
No new lines are being added inside my nested rules, for an exemple after running the beautifier i get this :
instead of :
After briefly looking at the source this might be a possible source of the problem.
const options = vscode.workspace.getConfiguration('beautify').get<number>("options");
should probably be
const options = vscode.workspace.getConfiguration('beautify').get<object>("options");
but considering that the
indent_size
works correctly I have that this is the problem.Cheers and thanks for this extension anyways :)