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 tests with workspaceContains:.git activation event #3086

Merged
merged 3 commits into from
Nov 24, 2023

Conversation

koesie10
Copy link
Member

@koesie10 koesie10 commented Nov 23, 2023

It seems like changes to the CLI path setting are not picked up by the extension when it is already activated. This is probably because the workspace.onDidChangeConfiguration event is not fired when the update is made programmatically.

This fixes it by manually firing the event so that all listeners (CLI server, query server, IDE server) can pick up the change.

Some other small changes to the tests were necessary to make everything work (mostly with retries), but this should now work properly.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@koesie10 koesie10 force-pushed the koesie10/fix-cli-tests branch 4 times, most recently from 27bd419 to 0751582 Compare November 24, 2023 09:32
It seems like changes to the CLI path setting are not picked up by the
extension when it is already activated. This is probably because the
`workspace.onDidChangeConfiguration` event is not fired when the update
is made programmatically.

This fixes it by manually firing the event so that all listeners (CLI
server, query server, IDE server) can pick up the change.
@koesie10 koesie10 force-pushed the koesie10/fix-cli-tests branch from 0751582 to 54be065 Compare November 24, 2023 10:16
@koesie10 koesie10 marked this pull request as ready for review November 24, 2023 13:11
@koesie10 koesie10 requested review from a team as code owners November 24, 2023 13:11
Copy link
Contributor

@charisk charisk left a comment

Choose a reason for hiding this comment

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

Thanks for fixing, some questions from me.

Copy link
Contributor

@charisk charisk left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@koesie10 koesie10 merged commit d5e7e54 into main Nov 24, 2023
28 checks passed
@koesie10 koesie10 deleted the koesie10/fix-cli-tests branch November 24, 2023 14:57
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.

2 participants