New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indention Indication Wrong On File Open #15
Comments
Could you give the following information?
Also, can you give specific repro steps and information on your configuration? I cannot reproduce the issue you're mentioning. |
Atom v1.0.9 I opened a .scss file and the indication was Tabs:2 - incorrect. I switched to another tab, switched back, and the indication was Tabs:3 - correct. Tabs:3 was set in the |
What is Atom configured to use for SCSS files? |
Tabs:2 |
So indentation-indicator is correct ... when the file is opened, it is set to Tabs:2. It is just that editorconfig changes it out from under indentation-indicator. |
I'll look to see if there are new events that indentation-indicator can hook into, but if there isn't ... this may be the best that can be done. |
Hmmm. So editorconfig doesn't set the indentation when the file is opened? The indention works as I intend right after opening the file. I hit a tab and get a 3-space tab. The indication continues to show Tabs:2 even though I just got a Tabs:3! |
Can indention-indicator check again a second or two after a window is opened to get what .editorconfig sets? |
editorconfig probably hooks into the same file-open observation event that indentation-indicator does. But if indentation-indicator gets notified first, then editorconfig hasn't changed anything yet.
No, I'm not going to special case the code just for editorconfig. |
Is not editorconfig a fairly common package? Or do people set their preferred indentation with Atom's settings and commit that file to Git so that a team all uses the same settings? But then they all have to be using Atom. |
What do either of these have to do with anything? |
They have to do with how many people use .editorconfig with Atom and how important it would be to them for indentation-indicator to accommodate their use case. That's all. |
I'm not going to work around editorconfig's bug. If it wants to integrate with the Atom API in a way that works the way everything else does, that would be great. |
When I first open a file, the indentation indication at the bottom of the window is wrong. Once I switch to another tab, and back, it corrects itself.
The text was updated successfully, but these errors were encountered: