add setting

This commit is contained in:
Johannes Rieken
2016-09-22 15:25:08 +02:00
parent e71d1e8841
commit d0e7a52498
2 changed files with 6 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ class FormatOnSaveParticipant implements ISaveParticipant {
}
participate(editorModel: ITextFileEditorModel, env: { isAutoSaved: boolean }): TPromise<any> {
if (true || this._configurationService.lookup('files.formatOnSave').value) {
if (this._configurationService.lookup('files.formatOnSave').value) {
const model: IModel = editorModel.textEditorModel;
const editor = this._findEditor(model);
return formatDocument(model, editor);