The last empty line isn't numbered, why would anyone want this behavior, I don't get it.
was asked before here https://github.com/Microsoft/vscode/issues/69129
Duplicate of #70126.
Well, this is debatable, I've asked a question which wasn't answered by the other opened issues. The UX part isn't addressed, which makes absolutely no sense (and the non-UX part isn't making any sense either in the context of an editor).
The UX part isn't addressed ...
Issue #1027 explains the reason for this change. The way that it was released (as a breaking change without notifying users), is a bit unfortunate though.
I saw this discussion, but I don't get why the change has been approved: the UX part hasn't been addressed (there was some mentions, but they have all been ignored). The arguments were about how a newline is represented OS-wise and in comparison to other editors but with the same argument about what a newline is, which has nothing to do with how you expect to see it in a editor. When I enter a newline, I expect to see a newline regardless of if there is content after or not and the number shows its presence, otherwise you need to put the cursor there to see it.
What do you think about some kind of character/symbol to indicate that the last line ends with a \n?
Something like this:

I mentioned this here as well (with some alternatives).
In that way, you know that the last line is terminated, and where to place your cursor, without erroneously numbering that as a line.
I think that's a pretty good idea. I actually really didn't care about the number, but more about the fact that there is no indication that the last newline exists.
@glen-84 That's a great idea. Otherwise we can't tell the difference if a file ends with a new line or if it doesn't. We want all files to end with a newline so if it doesn't then that difference should be apparent.
Its to show that the code ends over there and if that have been numbered that would also have been compiled. All the lines which are number are compiled.
@Sshirsha, having expectation about how the editor behave and how your code (or compiler) behave are two different things. Regardless, the editor doesn't show anything: that's the issue.
Was about to create an issue but this one popped, it's very annoying to open the file and we don't know if there is an empty line or no at the end. I have to manually click to see it...very confusing.

Closing this issue, the current release has the new setting:
"editor.renderFinalNewline": true,
Most helpful comment
What do you think about some kind of character/symbol to indicate that the last line ends with a
\n?Something like this:
I mentioned this here as well (with some alternatives).
In that way, you know that the last line is terminated, and where to place your cursor, without erroneously numbering that as a line.