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

Fix multiple silent kit scans in a multi-root workspace #1303

Merged
merged 3 commits into from
Jun 11, 2020

Conversation

andreeis
Copy link
Contributor

@andreeis andreeis commented Jun 11, 2020

Since the silent kits scanning is called at the end of opening a folder, a multi-root project will trigger unnecessarily more than one kits scanning.
The fix in this PR is to check if there is already a scan in progress but that was not enough because for a multi root project, the multiple scans are first triggered but the boolean gets set later and we still have more than one scanning processes, depending on various timings.
In addition to check for scans in progress, the call to silent scan is made only for the first folder.
Another alternative would be to move the silent scan earlier in the extension activation (or outside the scope of a folder) since this operation has nothing to do with a folder specifically. I remembered the issues with the first approach and thought that checking first folder only is not that bad.

#1302

src/extension.ts Outdated Show resolved Hide resolved
@bobbrow
Copy link
Member

bobbrow commented Jun 11, 2020

#1302

@bobbrow bobbrow merged commit 5fbf561 into develop Jun 11, 2020
@bobbrow bobbrow deleted the dev/andris/cmake_tools/FixMultipleSilentKitsScans branch June 11, 2020 23:44
@github-actions github-actions bot locked and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants