Skip to content

Commit

Permalink
Merge pull request #841 from JoeRobich/fix-workspace-warnings
Browse files Browse the repository at this point in the history
Log there were warnings loading the workspace if diagnostics are reported
  • Loading branch information
JoeRobich committed Oct 19, 2020
2 parents f5af1de + 2499041 commit 03a8fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Workspaces/MSBuildWorkspaceLoader.cs
Expand Up @@ -67,7 +67,7 @@ static void LogWorkspaceDiagnostics(ILogger logger, bool logWorkspaceWarnings, I
{
if (!logWorkspaceWarnings)
{
if (diagnostics.IsEmpty)
if (!diagnostics.IsEmpty)
{
logger.LogWarning(Resources.Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings);
}
Expand Down

0 comments on commit 03a8fc0

Please sign in to comment.