Browse Source

package.json files are no longer style formatted on save. These files are style formatted by for instance npm install, and additional style formatting would lead to unwanted commit changes

merge-requests/382/head
eidheim 8 years ago
parent
commit
f2c7a949f0
  1. 2
      src/source.cc

2
src/source.cc

@ -378,7 +378,7 @@ bool Source::View::save() {
if(Config::get().source.cleanup_whitespace_characters) if(Config::get().source.cleanup_whitespace_characters)
cleanup_whitespace_characters(); cleanup_whitespace_characters();
if(format_style) { if(format_style && file_path.filename()!="package.json") {
if(Config::get().source.format_style_on_save) if(Config::get().source.format_style_on_save)
format_style(true); format_style(true);
else if(Config::get().source.format_style_on_save_if_style_file_found) else if(Config::get().source.format_style_on_save_if_style_file_found)

Loading…
Cancel
Save