Commit 7a03d6a
authored
fix: automatically invalidate moved/deleted entries from the ResourceForUriCache (#1235)
If a resource is moved or deleted, it's possible that the resource
stored for its URI in the ResourceForUriCache stops being `accessible`.
This commit changes `ResourceForUriCache.get(URI)` so that, if a
resource is present in the cache but is no longer accessible, the
corresponding cache entry is invalidated. In this case, `.get(URI)` then
tries to determine the up-to-date IResource again.
Fixes a regression introduced in
#1208. Specifically, this
commit
addresses the concern raised in
#1208 (comment)1 parent 61b3da3 commit 7a03d6a
1 file changed
Lines changed: 6 additions & 3 deletions
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
0 commit comments