-
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
Wrong behaviour with insert_final_newline = true
and "files.autoSave": "afterDelay"
#330
Comments
I also have this issue - It is quite annoying |
+1 In fact this behaviour is not consistent with |
I also have this issue. I found out vscode used to have it also and they fixed, hopefully won't be hard for editorconfig-vscode to replicate the fix. |
This is a major annoying issue for years. Also reported on StackOverflow (turn feature off, problem solved! LOL). Does the related fix in VSCode inspire someone to work on this issue? |
Please fill-in this template.
code --disable-extensions
and the issue did NOT present itself.Issue
1.63.2
v0.16.4
Root
.editorconfig
FileAre there any other relevant
.editorconfig
files in your project? Noeditor.insertSpaces
true
____
____
editor.tabSize
4
_
_
editor.trimAutoWhitespace
true
____
____
files.autoSave
"off"
"afterDelay"
"___"
files.insertFinalNewline
false
_____
_____
files.trimTrailingWhitespace
false
_____
_____
File opened
./file.ts
Expected behavior
When typing on last line in file and when (on auto save) added new
insert_final_newline = true
text cursor will stay where I stop typing.Actual behavior
When typing something on last line of file and stop typing after auto save (after delay) will be added new empty line (due config
insert_final_newline = true
) and text cursor will be moved on that new empty line so need manually back to previous line to continue typing.The text was updated successfully, but these errors were encountered: