Skip to content

Commit

Permalink
QueryStartUpToDateCheck not supported with VSUTDCF_DTEEONLY
Browse files Browse the repository at this point in the history
StartUpToDateCheck return VSConstants.E_NOTIMPL
  • Loading branch information
enricosada committed May 28, 2015
1 parent 46d0821 commit 67b5654
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,12 @@ public virtual int QueryStartUpToDateCheck(uint options, int[] supported, int[]

int utdSupported = config.IsFastUpToDateCheckEnabled() ? 1 : 0;

var optionsFlags = (VsUpToDateCheckFlags)options;
if ((optionsFlags & (VsUpToDateCheckFlags.VSUTDCF_DTEEONLY)) == VsUpToDateCheckFlags.VSUTDCF_DTEEONLY)
{
utdSupported = 0;
}

if (supported != null && supported.Length > 0)
supported[0] = utdSupported;
if (ready != null && ready.Length > 0)
Expand Down Expand Up @@ -1890,7 +1896,7 @@ public virtual int StartUpToDateCheck(IVsOutputWindowPane pane, uint options)
var optionsFlags = (VsUpToDateCheckFlags) options;
if ((optionsFlags & (VsUpToDateCheckFlags.VSUTDCF_DTEEONLY)) == VsUpToDateCheckFlags.VSUTDCF_DTEEONLY)
{
return VSConstants.E_FAIL;
return VSConstants.E_NOTIMPL;
}

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

0 comments on commit 67b5654

Please sign in to comment.