-
Notifications
You must be signed in to change notification settings - Fork 117
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
Settings do not apply if .editorconfig file is not in curently opened folder / workspace #178
Comments
Please clarify the atual behavior. Which vscode settings have been set? It looks like you have no workspace settings, so is it applying your user settings? Please be very specific. Also, are the settings applied different than running |
No workspace settings Actual behaviorinsert_final_newline = false
indent_size = 2 these are different from running can't reproduce it at home so will have to check again at work |
My issue is similar to that of @gardient (I also try the same fixes he did), but the editorconfig settings are still not applied: Expected Settings: root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_size = 4
indent_style = space
[{*.json,.vera}]
indent_size = 2 Tried: Got the actual settings: end_of_line=lf
insert_final_newline=true
charset=utf-8
indent_size=4
indent_style=space
tab_width=4 I don't know where |
i think this plugin does not support the |
@AKFourSeven You should use |
it's a legal syntax. |
If you don't have a comma inside the curly braces, the curly braces are treated as literals. |
Sorry there was something missing in my post, I just corrected it : I thought there was a typo with |
@AKFourSeven I guess you want |
I will change that, but it seems to work better now anyways !! |
It looks like the current state of this issue is that people cannot reproduce or it's now working better after some config tweaks, so I'm going to close until further notice. |
After creating the .editorconfig file, I had to close and re-open vscode for it to notice. |
Note for some people as me: for |
Please fill-in this template.
code --disable-extensions
and the issue did NOT present itself. (Does not apply as my problem is with the extensions functionality)Delete the following condition if it doesn't apply to your case:
If the extension is not picking up the expected configuration for a file:
npm install editorconfig -g
and raneditorconfig [file-in-question]
and the configuration was what I expected. If not, please file on theeditorconfig-core-js
issue tracker.Issue
1.17.2
0.11.1
Root
.editorconfig
FileAre there any other relevant
.editorconfig
files in your project? Noeditor.insertSpaces
true
true
____
editor.tabSize
4
2
_
editor.trimAutoWhitespace
true
true
____
files.autoSave
"off"
"off"
"___"
files.insertFinalNewline
false
false
_____
files.trimTrailingWhitespace
false
false
_____
File opened
relative to root .editorconfig:
./dir1/dir2/dir3/dir4/foo.sql
relative to folder opened in VS Code:
./dir4/foo.sql
Expected behavior
Actual behavior
VS Code settings
Additional comments or steps to reproduce
The .editorconfig file is 3 directories up from directory opened in VS Code
The text was updated successfully, but these errors were encountered: