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

improve observables usage #206

Merged
merged 2 commits into from
Sep 20, 2024
Merged

improve observables usage #206

merged 2 commits into from
Sep 20, 2024

Conversation

sqs
Copy link
Member

@sqs sqs commented Sep 20, 2024

  • use custom isEqualJSON instead of JSON.stringify (for which key order matters)
  • use switchMap instead of mergeMap to stop unwanted emissions

@sqs sqs enabled auto-merge (squash) September 20, 2024 06:04
@sqs sqs merged commit d6c2c62 into main Sep 20, 2024
11 of 12 checks passed
@sqs sqs deleted the sqs/observables branch September 20, 2024 06:04
sqs added a commit to sourcegraph/cody that referenced this pull request Sep 20, 2024
sqs added a commit to sourcegraph/cody that referenced this pull request Sep 20, 2024
sqs added a commit to sourcegraph/cody that referenced this pull request Sep 20, 2024
Incorporates sourcegraph/openctx#207 and
sourcegraph/openctx#206.

Fixes
https://linear.app/sourcegraph/issue/CODY-3799/quieter-openctx-provider-ui-notifs-in-vs-code-and-better-error-logging.

## Test plan

Open VS Code with an OpenCtx provider that throws an error. Ensure that
no VS Code error notification is shown in the UI, and that it's logged
to the `OpenCtx` output channel with the provider URI mentioned.
bevzzz pushed a commit to bevzzz/openctx that referenced this pull request Dec 12, 2024
- use custom isEqualJSON instead of JSON.stringify (for which key order
matters)
- use switchMap instead of mergeMap to stop unwanted emissions
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.

1 participant