From a881a97797bdefd20aa71933b6f6a3c68dd27f50 Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Mon, 6 Feb 2017 09:42:31 -0800 Subject: [PATCH] Don't show message about projects having trouble loading when there are only warnings C# for VS Code is a little over-excited about showing the message that there were problems loading projects. Essentially, it will show it if there were warnings or errors. This changes that behavior to only show it if there are errors because it's perfectly reasonable for a project to contain warnings and not complain to the user every time they open it. --- src/features/status.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/features/status.ts b/src/features/status.ts index a28109a325..718a31dc22 100644 --- a/src/features/status.ts +++ b/src/features/status.ts @@ -241,7 +241,10 @@ export function reportServerStatus(server: OmniSharpServer): vscode.Disposable{ message.Errors.forEach(error => asErrorMessage); message.Warnings.forEach(warning => asWarningMessage); appendLine(); - showMessageSoon(); + + if (message.Errors.length > 0) { + showMessageSoon(); + } } });