sindresorhus / atom-editorconfig

Helps developers maintain consistent coding styles between different editors
https://atom.io/packages/editorconfig
MIT License
811 stars 80 forks source link

Rules are not being applied for a particular situation (See the comment for more details) #196

Closed KSXGitHub closed 1 year ago

KSXGitHub commented 7 years ago

Reproduction steps

Type 1

  1. In Atom, open some files that are ruled by editorconfig (e.g. indent_size). In order to make issue appear obvious, rules in .editorconfig should contradict with atom's own editor settings (e.g. indent_size = 2 vs Atom's Tab size = 4)
  2. Reload Atom (leave editor tabs open). i.e. Window: Reload in Command Palette or Ctrl-Shift-F5
  3. Select tab of file that is ruled by editorconfig

Type 2

  1. In Atom, open some files that are ruled by editorconfig (e.g. indent_size). In order to make issue appear obvious, rules in .editorconfig should contradict with atom's own editor settings (e.g. indent_size = 2 vs Atom's Tab size = 4)
  2. Restart Atom (leave editor tabs open). i.e. Close Atom window then re-launch it
  3. Select tab of file that is ruled by editorconfig

Expected behaviour

After step 2 of each type, editorconfig still has effect these editor tabs (e.g. tab makes 2 spaces)

Actual behaviour

After step 2, editorconfig has no effects on opened tabs, only Atom's own editor settings applies (e.g. tab makes 4 spaces)

Workaround

Closed opened tabs, re-open their files

florianb commented 7 years ago

Hi @KSXGitHub - thanks for your investigation. Your issue (at least "Type 1") is related to #176.

I would like to change this behavior, but i haven't had the time to dig into it.

p-boiko commented 5 years ago

Another temp workaround: disable and enable the package

sindresorhus commented 1 year ago

Closing as Atom is abandoned.