Atom saving file tsconfig.json with wrong tab length


#1

My tsconfig.json uses spaces instead of tabs, with two spaces equaling a tab.

My checked settings:
Show Indent Guide
Show Invisibles
Soft Tabs
Tab Length: 2

When I save this file, the format changes to 4 spaces per tab. If I select all the text and do Edit > Lines > Auto Indent, it goes back to 2 spaces per tab. But if I save the file again, it gets converted back to 4 spaces per tab. I have four community packages:

atom-typescript
linter
linter-jscs
linter-tslint

I haven’t been able to figure out why this is happening.


#2

Have you followed the suggestions in the Debugging document? Also, could you give the following information?

  • Which version of Atom are you using?
  • What OS and version are you running?
  • Do you have Emmet installed?
  • Can you reproduce the issue after completely exiting Atom and restarting using atom --safe?

#3

I couldn’t post the link…something about new users can only post min of 2 links…but its a known issue in atom-typescript

So not an atom problem. Seemed like the obvious cause once I found the ticket -_-