-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend BaselPackageUriResolver to handle files outside of
lib
.
Generated files can exist outside of `lib`. In a Bazel workspace these are referred to using `file:` URIs that point to the generated code directory. We need to be able to resolve references both from the generated code to non-generated code and vice versa. This is blocking the use of the migration tool in Bazel workspaces, since the migration tool doesn't have the same level of error recovery as the rest of the analyzer, so it needs to be able to resolve all files including generated ones. But it should also improve the user experience for using the analysis server in general in Bazel workspaces, by reducing the number of nuisance "URI not resolved" errors. Change-Id: I38dababd29f4490746cc6e1eeede9f438526a815 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153520 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Paul Berry <[email protected]>
- Loading branch information
1 parent
36e89f8
commit 464641f
Showing
2 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters