Files
UnrealEngineUWP/Engine/Source/Developer/SourceCodeAccess/Private/DefaultSourceCodeAccessor.h
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

20 lines
752 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ISourceCodeAccessor.h"
class FDefaultSourceCodeAccessor : public ISourceCodeAccessor
{
public:
/** ISourceCodeAccessor implementation */
virtual bool CanAccessSourceCode() const OVERRIDE;
virtual FName GetFName() const OVERRIDE;
virtual FText GetNameText() const OVERRIDE;
virtual FText GetDescriptionText() const OVERRIDE;
virtual bool OpenSolution() OVERRIDE;
virtual bool OpenFileAtLine(const FString& FullPath, int32 LineNumber, int32 ColumnNumber = 0) OVERRIDE;
virtual bool OpenSourceFiles(const TArray<FString>& AbsoluteSourcePaths) OVERRIDE;
virtual bool SaveAllOpenDocuments() const OVERRIDE;
virtual void Tick(const float DeltaTime) OVERRIDE;
};