Files
UnrealEngineUWP/Engine/Source/Developer/SourceCodeAccess/Private/DefaultSourceCodeAccessor.cpp
Jamie Dale a3928adc10 Fixed VS_OPEN logspam caused by a deferred command being constantly requested until VS had finished opening
TTP# 331398 - EDITOR: Logspam when opening Visual Studio

Deferring a VS file open request used to use a deferred command to wait until VS had finished opening before opening the requested files, however, this command was essentially simulating a Tick, as if the command was not yet ready to be processed it was simply deferred again, leading to spammed output.

Rather than do this, I've added a Tick function which will attempt to open the entire list of pending files as a single call, rather than try each file individually like the command would.

ReviewedBy Thomas.Sarkanen, Chris.Wood, Max.Preussner

[CL 2058815 by Jamie Dale in Main branch]
2014-04-29 11:36:21 -04:00

52 lines
1.1 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "SourceCodeAccessPrivatePCH.h"
#include "DefaultSourceCodeAccessor.h"
#define LOCTEXT_NAMESPACE "DefaultSourceCodeAccessor"
bool FDefaultSourceCodeAccessor::CanAccessSourceCode() const
{
return false;
}
FName FDefaultSourceCodeAccessor::GetFName() const
{
return FName("None");
}
FText FDefaultSourceCodeAccessor::GetNameText() const
{
return LOCTEXT("DefaultDisplayName", "None");
}
FText FDefaultSourceCodeAccessor::GetDescriptionText() const
{
return LOCTEXT("DefaultDisplayDesc", "Do not open source code files.");
}
bool FDefaultSourceCodeAccessor::OpenSolution()
{
return false;
}
bool FDefaultSourceCodeAccessor::OpenFileAtLine(const FString& FullPath, int32 LineNumber, int32 ColumnNumber)
{
return false;
}
bool FDefaultSourceCodeAccessor::OpenSourceFiles(const TArray<FString>& AbsoluteSourcePaths)
{
return false;
}
bool FDefaultSourceCodeAccessor::SaveAllOpenDocuments() const
{
return false;
}
void FDefaultSourceCodeAccessor::Tick(const float DeltaTime)
{
}
#undef LOCTEXT_NAMESPACE