[fidl][lsp] Skip libraries that cannot be imported
The referenced bug is caused by two things in "find all references":
* We return an error when one library fails to import, rather than
continuing to search other libraries
* We incorrectly call getLibraryWithFile instead of getLibrary
This CL also changes a `Fatalf` log on failure to parse
fidl_project.json into a `Printf` log, so that the server doesn't
crash.
Fixed: 54918
Test: go test -p 1 ./...
Change-Id: I19b9a1c82dd15d61ad794b0568f50764aca0b8a1
Reviewed-on: https://fuchsia-review.googlesource.com/c/fidl-misc/+/401833
Reviewed-by: Benjamin Prosnitz <bprosnitz@google.com>
2 files changed