This patch makes a few changes to the Text Editor to make it fit in with Blender 2.8 more.
The sidebar is moved to the right, which is more consistent, and also doesn't get in the way of the line numbers, and also doesn't make the text jump when you open/close it.
Before:
After:
The sidebar uses the new layout system here.
Note: The sidebar needs a Do Version update to be complete.
The context menu is more fleshed out and useful:
Before:
After:
View toggles are in the View menu, similar to other editors such as the Dopesheet:
Before:
After:

















