There is a discrepancy with our behaviour and that of vscode when registering an
editor as recently opened.
In vscode as soon as an editor is opened (preview or not) it is immediately listed as recently opened.
In theia it takes much more effort and isn't as reliable.
@vince-fugnitto, nice, I was unable to reproduce the defect consistently, I am glad you experienced the same oddity.
I want to hijack this thread for a moment and add a tiny remark: I do not like that the "diff-editors" show up among the recently opened items just because we register an editor history entry for them.

Does it worth a separate issue? Can we change it or it's only me who finds this behavior strange. As a workaround, I can use Clear Editor History to get rid of the diff editors from time to time.
Update:
Does it worth a separate issue?
Follow-up: https://github.com/theia-ide/theia/issues/4404
@kittaakos I also noticed the issue regarding the diff-editors registering in our recently opened.
Personally I don't like it being there, also vscode does not display it so it's even more reason to
fix the issue :)
Most helpful comment
@vince-fugnitto, nice, I was unable to reproduce the defect consistently, I am glad you experienced the same oddity.
I want to hijack this thread for a moment and add a tiny remark: I do not like that the "diff-editors" show up among the recently opened items just because we register an editor history entry for them.
Does it worth a separate issue? Can we change it or it's only me who finds this behavior strange. As a workaround, I can use
Clear Editor Historyto get rid of the diff editors from time to time.Update: