Skip to content

Show “Preparing targets” as index status if we only have preparation tasks and no index tasks #1400

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

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 2, 2024

I was wondering for a while why we were showing “Indexing 0 / 0” as the index progress. I think it’s if we only have a preparation task but no index tasks running. I’m not entirely sure how this happens because preparation should only happen for two reasons:

  • We are preparing a target so we can index a files -> We should have an active index task
  • We are preparing a file for editor functionality of the current file -> we should have a inProgressPrepareForEditorTask

Maybe I’ll understand it once we have this change in. It seems like a worthwhile change in any way.

…tasks and no index tasks

I was wondering for a while why we were showing “Indexing 0 / 0” as the index progress. I think it’s if we only have a preparation task but no index tasks running. I’m not entirely sure how this happens because preparation should only happen for two reasons:
- We are preparing a target so we can index a files -> We should have an active index task
- We are preparing a file for editor functionality of the current file -> we should have a `inProgressPrepareForEditorTask`

Maybe I’ll understand it once we have this change in. It seems like a worthwhile change in any way.
@ahoppen ahoppen requested review from bnbarham and hamishknight June 2, 2024 05:41
@ahoppen ahoppen requested a review from benlangmuir as a code owner June 2, 2024 05:41
@ahoppen
Copy link
Member Author

ahoppen commented Jun 2, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit 9bddc7f into swiftlang:main Jun 3, 2024
3 checks passed
@ahoppen ahoppen deleted the preparing-targets-index-status branch June 3, 2024 05:24
Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

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

LGTM

ahoppen added a commit that referenced this pull request Jun 3, 2024
…gress

Remove `showActivePreparationTasksInProgress` experimental feature 🚥 #1400
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.

3 participants