[ty] Fix state synchronization bug with nested workspaces and changed files
This fixes an issue where when we removed a workspace folder, it was
possible for the state of an open file to become stale. We try to fix
this here by forcing the file to be re-synchronized with disk.