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