Language servers publish errors for files they generate or read outside the project (sourcekit-lsp parse errors in its .swiftinterface). Library sources open read-only, so their diagnostics are dropped from the editor and the Problems view.
Closes#6943
Co-authored-by: wildcatDownstairs <[email protected]>