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

Improve CratesLocalIndexService internals #6898

Merged
merged 2 commits into from Mar 1, 2021

Conversation

avrong
Copy link
Member

@avrong avrong commented Feb 27, 2021

Based on the comments in #6390.

  1. Made CratesLocalIndexState's field immutable
  2. Clarified isReady by a doc comment, not sure what's the better name for it can be

@avrong avrong added the internal Pull requests about internal improvements/fixes that don't affect users directly label Feb 27, 2021
@Undin Undin removed the internal Pull requests about internal improvements/fixes that don't affect users directly label Feb 28, 2021
@avrong avrong force-pushed the avrong/crates-local-index-fixes branch from b4e02d2 to 57e6529 Compare March 1, 2021 12:14
@Undin Undin self-assigned this Mar 1, 2021
Copy link
Member

@Undin Undin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@Undin
Copy link
Member

Undin commented Mar 1, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 1, 2021

Build succeeded:

@bors bors bot merged commit 02c1017 into master Mar 1, 2021
@bors bors bot deleted the avrong/crates-local-index-fixes branch March 1, 2021 22:43
@github-actions github-actions bot added this to the v143 milestone Mar 1, 2021
bors bot added a commit that referenced this pull request Apr 3, 2021
7031: Fix crates local index state updates r=Undin a=avrong

Bug introduced by changes in #6898. Using `val` for a state field doesn't make it possible to serialize and save it, so it was being ignored.

changelog: Fix unnecessary reload of crates local index after IDE restart.


Co-authored-by: Aleksei Trifonov <avrong@avrong.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants