atom / whitespace

Atom whitespace package
MIT License
94 stars 67 forks source link

Cannot scope whitespace configuration to YAML files #193

Open maugusto-cit opened 4 years ago

maugusto-cit commented 4 years ago

Prerequisites

Description

I cannot scope whitespace configuration to YAML files as described here.

Steps to Reproduce

  1. Change config.cs to turn off removeTrailingWhitespace for YAML files (see attachment)
  2. Create a .yml file
  3. Add blank lines with trailing spaces (see attachment)
  4. Save the file

Expected behavior: The blank lines remain with the trailing spaces.

Actual behavior: The blank lines get the trailing spaces removed.

Reproduces how often: 100%

Versions

Atom : 1.48.0 Electron: 5.0.13 Chrome : 73.0.3683.121 Node : 12.0.0 MacOS : 10.15.5 (19F101) whitespace: 0.37.7 language-yaml: 0.32.0

Additional Information

If I change the general settings for whitespace to false it works. If I try to scope to YAML, it does not.

Attachments:

test.yml.txt config.cson.txt