mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
Calling `setCurrentWorkingDirectory` on `getRealFileSystem` sets the working directory for the process itself. This is unsafe for clients such as SourceKit which can process multiple concurrent requests, and may be used as an in-process library in e.g sourcekit-lsp. Switch to `createPhysicalFileSystem` instead, where setting the working directory is done locally on the FileSystem itself.