Make beautify options persistent. Fixes #630
This commit is contained in:
parent
3ea6e94e83
commit
0c8e69fb9d
|
@ -13,7 +13,7 @@ function beautify(scope) {
|
|||
|
||||
function doBeautify() {
|
||||
const tabs = prefs.get('editor.indentWithTabs');
|
||||
const options = prefs.get('editor.beautify');
|
||||
const options = Object.assign({}, prefs.get('editor.beautify'));
|
||||
for (const k of Object.keys(prefs.defaults['editor.beautify'])) {
|
||||
if (!(k in options)) options[k] = prefs.defaults['editor.beautify'][k];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user