[Ide] Fixed a type system update bug when switching branches.
A part of the problem was the pathed document text editor extension
which didn't handle reloading cleanly.