Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EnvironmentSetupUtils: fix the process cannot access the file because…
… it is being used by another process error on Windows (references #449) Fixed by using synchronous file APIs isntead of asynchronous. Determined that even after Event.CLOSE is dispatched by the FileStream, the file may still be considered in use. If opened synchronously instead, file appears to be completely closed immediately after calling close(). Even with the 1 second delay between calls, the being used by another process error could still appear. This started happening more frequently when calling java -version before starting language servers, if Moonshine opened with multiple projects.
- Loading branch information