-
Notifications
You must be signed in to change notification settings - Fork 121
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
0.6.5 does not honor tab size settings #135
Comments
Moreover, for new files it does not honor neither Standalone editorconfig shows valid configuration:
|
I also feel pain about this. root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false Every file starts with 4 spaces ... (it's really annoying to be honest) |
Same problem ! I now have 4 spaces instead of 2 |
Having issues reproducing. If someone can tell me the following:
|
@zgoda by "new files" do you mean untitled documents? EditorConfig works off of the full file path, including extension, so that would make some kind of sense. That said, I just published v0.7.0 to assume untitled documents live at the workspace root. That should help at least get the default EditorConfig settings in there. |
|
@guzart, v0.7.0 only added a feature to apply EditorConfig to new/untitled documents. There were no specific fixes to this issue, so I'm a bit confused how that would be true. |
My config wasn't working on vs code 1.11.1 and editorconfig for vs code 0.7. I've downgraded to vs code 1.10.2 and editorconfig for vs code 0.6.2 and everything is working again. # Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false user settings: {
"typescript.check.tscVersion": false,
"stylelint.enable": true,
"scss.validate": false,
"files.associations": {
"*.vue": "vue"
},
"workbench.iconTheme": "vs-seti",
"css.validate": false,
"keyboard.dispatch": "keyCode"
} EDIT: I'm using ubuntu 16 |
@jedmao I mistakenly thought it fixed the issue but it doesn't, apologize for any confusion |
I'm also experiencing the same issue as @marcincichocki. My tab setting in new and existing is not being honored. Problem started after a recent update to VSCode. I've tried removing and reinstalling the extension. I've also made sure the corresponding extension folder was removed. |
Is anyone experiencing this issue who is NOT on Linux? |
Still cannot reproduce on Windows 10. Here's my root = true
[*]
indent_style = space
indent_size = 4
[*.ts]
indent_style = tab
indent_size = 2 And here's what I see printed in the EditorConfig output window when I switch to
I really want to fix this ASAP, guys, but I can't repro. Nobody can provide better repro steps? Please refer to the new Also, @zgoda, you realize you can set |
Hi, @jedmao. In my case, there is no any output (no EditorConfig option in the output window). I think the extension fails to start.
|
I can reproduce this error with empty project. |
@ianlini thank you! I know exactly what's going on now. I must have done a rename on that particular file at some point and because I already had |
I believe it's fixed in #142, published as v0.9.1. Please, let me know if that fixes it or if y'all continue to experience issues. Such a weird bug today! Be happy to reopen the issue if it's not solved. |
Thank you @jedmao! v0.9.1 fixed my problem. |
@jedmao Case-sensitivity is a bitch when developing on Windows and targeting Unix-style OS. Maybe you should add |
Works fine, thank you. |
@JimiC that wouldn't solve the problem. It's a bit hard to explain, but a long time ago in Windows history I used to have this scenario in which I would have a file, say, named |
@jedmao I always use a |
I do too, on most projects. I've never had this specific problem before though. |
@JimiC I just created a TypeScript issue at microsoft/TypeScript#15129 that might better illustrate what's going on. |
I don't know that this is related but EditorConfig stopped working for me altogether. I believe it is when I updated to vs code 1.11.1 but am not positive. My .editorconfig file is in the git root of the project. root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{js, vue, scss}]
indent_size = 2 There is not another .editorconfig file in that file hierarchy. I'm running on Linux and it seems as if the .editorconfig file is being ignored altogether. Is there some way to check if it is found? |
@bmacnaughton please file a separate issue w/ the new issue template filled in. I think that'll help the most. I need to know what extension version you have too. Really need to be thorough to fix issues like this one. If the extension loads at all, you should be able to see changes in the EditorConfig output window. In vscode, select |
editorconfig-vscode version: 0.6.5
Expected behavior
Tab size settings applied to editor in workspace
Actual behavior
Invalid tab size in editor
Steps to reproduce the behavior
indent_style
istab
but I still seeindent_size = 4
in editor:The text was updated successfully, but these errors were encountered: