EditorConfig Extension insert_final_newline doesn't work on Cursor

Repro:

With latest Cursor and VS Code:

Install popular EditorConfig VS Code Extension

In a new folder, add file .editorconfig:

root = true

[*]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

Save it

Then edit this file (or another file in this folder): change EOL to crlf, add some spaces to the end of any line, remove the newline at the end of file if it exists

Then save the file. As soon as the file is saved:

In VS Code: trailing whitespace (of each line) trimed, crlf converted to lf, and a newline inserted at the end of the file

In Cursor: trailing whitespace (of each line) trimed, crlf converted to lf, but newline not inserted at the end of the file

and EditorConfig extension’s output is normal:

.editorconfig: setEndOfLine(LF)
.editorconfig: editor.action.trimTrailingWhitespace
.editorconfig: editor.action.insertFinalNewLine
.editorconfig file saved.

Cursor 0.47.5
Windows 11

OK I guess it may be because Cursor v0.47.5, based on VS Code v1.96.2 (2024-12-19), doesn’t include this modification feat(commands): add `insertFinalNewLine` by SunsetTechuila · Pull Request #241126 · microsoft/vscode · GitHub in February

Same issue on 0.48.7

Yeah because 0.48.7 and 0.48.8 now are still based on VS Code 1.96.2. They didn’t upgrade

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.