One day I got tired of dealing with the mess that is the Open Editors widget in vscode, so I decided to do something about
it. The result is this extension, which is really the same thing as Open Editors with the addition of sorted and grouped
files.
Known Issues
Vscode does not have any API's to retrieve open editors, instead this addon uses a hack which isn't always reliable
This hack requires that it cycles through all open files when you start vscode, which isn't very reliable either but it's better than not seeing any files
There is a refresh option (under the widget navbar) to manually refresh the list of open files. Otherwise just switching to a file will make it appear.
No "Opened Editor" or "Closed Editor" event (a text document is not an editor, they are constantly "opened" and "closed"
as you switch tab without actually closing the tab itself)
Workaround:
When switching tabs the onDidChangeActiveTextEditor event is called before onDidCloseTextDocument. When closing a
tab it's the inverse. Use this information to infer whether a tab was closed or just switched.