mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
This could happen when you had multiple language services, and they were sharing some files. If a file got edited in one LS, it could get corrupted in the other. Now, the DocumentRegistry serves as the canonical source of 'good' source files. Language services always go to it to get the correct source file instead of trying to manually update their own source files when they are notified about changes from the host.