Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

labels: fix caching of unintended formatters #157313

Merged
merged 3 commits into from Aug 5, 2022

Conversation

connor4312
Copy link
Member

this.formatters was the same list instance stored in the memo, so we
could cache things we didn't want to. I believe this caused #156135,
since things we intend to cache from the extension host are parsed
from JSON and cannot be circular.

Fixes #156135
Fixes #155844

`this.formatters` was the same list instance stored in the memo, so we
could cache things we didn't want to. I believe this caused #156135,
since things we _intend_ to cache from the extension host are parsed
from JSON and cannot be circular.

Fixes #156135
@connor4312 connor4312 enabled auto-merge (squash) August 5, 2022 19:17
@connor4312 connor4312 self-assigned this Aug 5, 2022
@VSCodeTriageBot VSCodeTriageBot added this to the August 2022 milestone Aug 5, 2022
lramos15
lramos15 previously approved these changes Aug 5, 2022
@connor4312 connor4312 merged commit 24547bc into main Aug 5, 2022
@connor4312 connor4312 deleted the connor4312/fix-circular-formatters branch August 5, 2022 20:13
@wzhudev
Copy link
Contributor

wzhudev commented Aug 6, 2022

This fixes #157056 as well.

@wzhudev
Copy link
Contributor

wzhudev commented Aug 6, 2022

Will this be shipped in a recovery release? Thx.

joyceerhl pushed a commit that referenced this pull request Aug 10, 2022
* labels: fix caching of unintended formatters

`this.formatters` was the same list instance stored in the memo, so we
could cache things we didn't want to. I believe this caused #156135,
since things we _intend_ to cache from the extension host are parsed
from JSON and cannot be circular.

Fixes #156135

* labels: rev label storage to avoid previous bugs

Fixes #155844

* fixup! tets
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.