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

Add onSelectedConfigurationChanged api #3671

Conversation

OrkunTokdemir
Copy link
Contributor

@OrkunTokdemir OrkunTokdemir commented Mar 27, 2024

I added a new event api for the select kit change. It is needed for our extension to detect it. I guess I should also prepare a pull request for https://github.com/microsoft/vscode-cmake-tools-api.

@OrkunTokdemir
Copy link
Contributor Author

@microsoft-github-policy-service agree

@OrkunTokdemir OrkunTokdemir force-pushed the orkun_on_selected_kit_changed_27_03_2024 branch 2 times, most recently from d36bd52 to 4ad0b5c Compare March 27, 2024 17:25
@OrkunTokdemir OrkunTokdemir force-pushed the orkun_on_selected_kit_changed_27_03_2024 branch from 4ad0b5c to 8089435 Compare March 27, 2024 17:27
@OrkunTokdemir
Copy link
Contributor Author

@gcampbell-msft Can you please take a look when you're available?

@gcampbell-msft
Copy link
Collaborator

@OrkunTokdemir We'd be happy to take this change, but we'd like to have the respective change in the vscode-cmake-tool-api if possible. Could you make this change as well? We're happy to help with this if needed!

OrkunTokdemir added a commit to OrkunTokdemir/vscode-cmake-tools-api that referenced this pull request Apr 10, 2024
OrkunTokdemir added a commit to OrkunTokdemir/vscode-cmake-tools-api that referenced this pull request Apr 10, 2024
OrkunTokdemir added a commit to OrkunTokdemir/vscode-cmake-tools-api that referenced this pull request Apr 10, 2024
@OrkunTokdemir
Copy link
Contributor Author

@OrkunTokdemir We'd be happy to take this change, but we'd like to have the respective change in the vscode-cmake-tool-api if possible. Could you make this change as well? We're happy to help with this if needed!

@gcampbell-msft Thank you. I created a PR in that repo.
microsoft/vscode-cmake-tools-api#8

OrkunTokdemir added a commit to OrkunTokdemir/vscode-cmake-tools-api that referenced this pull request Apr 11, 2024
@gcampbell-msft
Copy link
Collaborator

@OrkunTokdemir Could you test with the most recent commit? This should update the package.json dependency from the vscode-cmake-tools npm package, and should be fully functional. Thanks!

When `notifyOnSelectedConfigurationChanged()` is executed before
`setFolderActiveKit()`, `cmake.buildKit` returns the previous selected
kit. That's why `notifyOnSelectedConfigurationChanged()` should run
after `setFolderActiveKit()`.
@OrkunTokdemir
Copy link
Contributor Author

@OrkunTokdemir Could you test with the most recent commit? This should update the package.json dependency from the vscode-cmake-tools npm package, and should be fully functional. Thanks!

@gcampbell-msft Thank you for updating the dependencies. I tested some more detailed cases. All of them look fine. Found a little problem and fixed it with 28ef5b5

LGTM 🚀

@gcampbell-msft gcampbell-msft changed the title Add onSelectedKitChanged api Add onSelectedConfigurationChanged api Apr 19, 2024
@gcampbell-msft gcampbell-msft enabled auto-merge (squash) April 19, 2024 14:03
@gcampbell-msft gcampbell-msft merged commit 1ed22b7 into microsoft:main Apr 19, 2024
4 checks passed
qtprojectorg pushed a commit to qt-labs/vscodeext that referenced this pull request May 30, 2024
Since microsoft/vscode-cmake-tools#3671 is
merged, we can use CMake api to update the Qt extension internals.

* Add CMake api infrastructure
* Remove the workaround for the case when the kit change is not
detectable.

Change-Id: I382fd1586893da32057de43ce173feace921d0a8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
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