Skip to content

Commit

Permalink
fix StartUpToDateCheck with VSUTDCF_DTEEONLY option, return build not…
Browse files Browse the repository at this point in the history
… up-to-date
  • Loading branch information
enricosada committed May 28, 2015
1 parent 0cb505c commit 46d0821
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1877,9 +1877,21 @@ public virtual int StartClean(IVsOutputWindowPane pane, uint options)
return VSConstants.S_OK;
}

[Flags]
enum VsUpToDateCheckFlags : uint
{
VSUTDCF_DTEEONLY = 0x1
}

public virtual int StartUpToDateCheck(IVsOutputWindowPane pane, uint options)
{
CCITracing.TraceCall();

var optionsFlags = (VsUpToDateCheckFlags) options;
if ((optionsFlags & (VsUpToDateCheckFlags.VSUTDCF_DTEEONLY)) == VsUpToDateCheckFlags.VSUTDCF_DTEEONLY)
{
return VSConstants.E_FAIL;
}

return config.IsUpToDate(OutputWindowLogger.CreateUpToDateCheckLogger(pane), false) ? VSConstants.S_OK : VSConstants.E_FAIL;
}
Expand Down

0 comments on commit 46d0821

Please sign in to comment.