files.insertFinalNewline: is now an overridable setting

This commit is contained in:
Benjamin Pasero
2017-01-19 16:11:30 +01:00
parent 269d8b4046
commit a5744684f0
2 changed files with 3 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ export class FinalNewLineParticipant implements INamedSaveParticpant {
}
public participate(model: ITextFileEditorModel, env: { reason: SaveReason }): any {
if (this.configurationService.lookup('files.insertFinalNewline').value) {
if (this.configurationService.lookup('files.insertFinalNewline', model.textEditorModel.getLanguageIdentifier().language).value) {
this.doInsertFinalNewLine(model.textEditorModel);
}
}