[NFC] Explicitly pass a VFS when creating DiagnosticsEngine (#115852)
Starting with 41e3919d DiagnosticsEngine creation might perform IO. It was implicitly defaulting to getRealFileSystem. This patch makes it explicit by pushing the decision making to callers. It uses ambient VFS if one is available, and keeps using `getRealFileSystem` if there aren't any VFS.
Loading
Please register or sign in to comment