mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
add setting
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user