Skip to content

Commit a881a97

Browse files
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.
1 parent 9c10778 commit a881a97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/features/status.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@ export function reportServerStatus(server: OmniSharpServer): vscode.Disposable{
241241
message.Errors.forEach(error => asErrorMessage);
242242
message.Warnings.forEach(warning => asWarningMessage);
243243
appendLine();
244-
showMessageSoon();
244+
245+
if (message.Errors.length > 0) {
246+
showMessageSoon();
247+
}
245248
}
246249
});
247250

0 commit comments

Comments
 (0)