mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
files.trimTrailingWhitespace: is now an overridable setting
This commit is contained in:
@@ -41,7 +41,7 @@ class TrimWhitespaceParticipant implements INamedSaveParticpant {
|
||||
}
|
||||
|
||||
public participate(model: ITextFileEditorModel, env: { reason: SaveReason }): any {
|
||||
if (this.configurationService.lookup('files.trimTrailingWhitespace').value) {
|
||||
if (this.configurationService.lookup('files.trimTrailingWhitespace', model.textEditorModel.getLanguageIdentifier().language).value) {
|
||||
this.doTrimTrailingWhitespace(model.textEditorModel, env.reason === SaveReason.AUTO);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user