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

Silent scan for kits to avoid breaking changes in kits definition #1211

Merged
merged 11 commits into from
May 13, 2020

Conversation

andreeis
Copy link
Contributor

@andreeis andreeis commented May 1, 2020

This PR fixes the issue #1195.
Silently scan for kits to ensure the users do not encounter kits breaking changes (that are solvable with scanning).
If this causes any inconvenience for the users, there is the setting cmake.scanForKitsOnOpen (defaulting to true) which can be set to false.
Many places available for hooking this. I chose at the end of workspace open and before configuring.
This happens also before the silent scan triggered by missing or empty kits json. That change will be in effect less than before this PR (for opening, never) but it can still happen when kits get deleted or corrupted between opening a workspace and any operations that triggers configuration.

@bobbrow bobbrow added this to the 1.4.0 milestone May 1, 2020
@andreeis andreeis marked this pull request as ready for review May 1, 2020 18:14
package.json Outdated Show resolved Hide resolved
src/extension.ts Outdated Show resolved Hide resolved
src/extension.ts Outdated Show resolved Hide resolved
src/extension.ts Outdated Show resolved Hide resolved
@andreeis andreeis merged commit 0502bd7 into develop May 13, 2020
@andreeis andreeis deleted the dev/andris/cmake_tools/github1195 branch May 13, 2020 21:31
src/kit.ts Show resolved Hide resolved
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 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