-
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
VSCode will insert an empty line to .editorconfig in spite of insert_final_newline = false #209
Comments
This issue is pretty much the same thing as #153 |
I know it. I posted this issue because I'd like to say |
The only strategy I can think of is to save the file contents, let vscode do it's trimming and then manually untrim it after the fact, but I refuse to do anything that hacky. |
I read the implementation of |
Good point. That feature didn't exist at the time of implementation. |
I got it. Code does support all of them now but I wonder if it allows us to enforce / suppress them by extensions. |
You're right that we just need to let Code do what Code does and not get in its way. I'll look into this more when I have some time and of course PRs welcome. |
Thank you for your understanding. |
Please fill-in this template.
code --disable-extensions
and the issue did NOT present itself.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.30.1
0.12.5
Root
.editorconfig
FileAre there any other relevant
.editorconfig
files in your project? Yes / Noeditor.insertSpaces
true
true
____
editor.tabSize
4
4
_
editor.trimAutoWhitespace
true
true
____
files.autoSave
"off"
"off"
"___"
files.insertFinalNewline
false
true
_____
files.trimTrailingWhitespace
false
true
_____
File opened
./.editorconfig
Expected behavior
insert_final_newline = false
Actual behavior
insert_final_newline = true
Additional comments or steps to reproduce
.editorconfig
in the rootRelated: #153
The text was updated successfully, but these errors were encountered: