Commit d62b94d
CodeFix: Remove relative path prefix from types loading (#12026)
## 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](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/12026)
---------
Co-authored-by: Ariel Silverman <[email protected]>1 parent 3b5f245 commit d62b94d
File tree
2 files changed
+5
-6
lines changed- .vscode
- src/Bicep.Core/TypeSystem/Az
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments