I'm operating on the PSI and while running automated tests memory and disk popup appears

Hi,

I’m working on a private MCP server that does things similar to the official one from JetBrains. I am using vitest to connect to it and run tests and quite often I get a dialog that says:

Changes have been made to ‘/Users/foo/bar/baz.z` in memory and on disk.

It then wants to know whether to keep memory, show difference or load file system changes.

Inside each vitest file, at the top I restore the fake project that the test IDE has open via unzip of a backup.

Am I doing something wrong in my source, or is this to be expected due to restoring the backup between tests or?

Hi, does anyone have any ideas?

It is rather hard to say if there is no way to reproduce it, a sample code / plugin project would help people to at least observe the problem