[VersionControl] More Immutable TextDocument usage.