Prevent analysing all files if a project is opened or deleted.