Jira: Seeing a 1-2 second delay when opening File Menu in editor

Use FUProjectDictionary singleton to eliminate needless Refresh() inside DoesSolutionExist()/GetSolutionPath() queries.

The code accessors want to discover the active game project solution/project, which should exist at editor launch time. We don't need the more recent refreshes from the temporary stack instances of FUProjectDictionary.

#jira UE-96246

[CL 14283901 by geoff evans in ue5-main branch]
This commit is contained in:
geoff evans
2020-09-09 16:34:38 -04:00
parent 76c0d46d3c
commit b658d442a1
6 changed files with 6 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ FString FVisualStudioCodeSourceCodeAccessor::GetSolutionPath() const
{
CachedSolutionPath = FPaths::ProjectDir();
if (!FUProjectDictionary(FPaths::RootDir()).IsForeignProject(CachedSolutionPath))
if (!FUProjectDictionary::GetDefault().IsForeignProject(CachedSolutionPath))
{
CachedSolutionPath = FPaths::Combine(FPaths::RootDir(), FString("UE4") + GVSCodeWorkspaceExtension);
}