Visual Studio cannot open source file

Why do I always get this error and that’s nonsense
sometimes it works but i don’t know how or why

i use visual studio 2019 16.8.4

Hello! Is this error stable, or just worry from time to time? Check out your project Build.cs file and add smth like this

using UnrealBuildTool;
using System.IO;

public class YourModule : ModuleRules
{
	public FatesRoguery(ReadOnlyTargetRules Target) : base(Target)
	{
		PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;

		PublicIncludePaths.AddRange(new string[] { Path.Combine(ModuleDirectory, "") });

		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "NavigationSystem", "AIModule", "SlateCore", "Slate", "UMG", "ApplicationCore", "RenderCore" });
    }
}

Add using System.IO;… One more thing - just use it like it was

PublicIncludePaths.AddRange(new string[] { Path.Combine(ModuleDirectory, “”) });

thanks it worked