CodeFix: Remove relative path prefix from types loading #12026
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The current implementation makes the wrong assumption that the key names indexed in the types cache have a prefix
./
. This was the case when I was using a dev artifact since the publishing logic wasn't ready.Now that we have a publishing logic for the types package we can fix the code so that it doesn't assume the
./
prefix is found in the files as proven by https://github.com/Azure/bicep-types-az/actions/runs/6398352791/job/17368317634.This PR should be merged before Azure/bicep-types-az#1553, and Azure/bicep-types-az#1553 should be updated to download the latest build from the
main
branch.Microsoft Reviewers: Open in CodeFlow