Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Cody: add support for neovim, cody-cli, eclipse, and visualstudio clients#63851

Merged
olafurpg merged 1 commit into
mainfrom
olafurpg-cody-2884-fix-http-406-error
Jul 16, 2024
Merged

Cody: add support for neovim, cody-cli, eclipse, and visualstudio clients#63851
olafurpg merged 1 commit into
mainfrom
olafurpg-cody-2884-fix-http-406-error

Conversation

@olafurpg

Copy link
Copy Markdown
Contributor

Fixes CODY-2884

Previously, the server could respond with a 406 error when encountering clients with the following names: cody-cli, eclipse, and visualstudio. This error seems to only happen for enterprise clients. This PR fixes the problem by adding special cases for these clients like we already have for jetbrains and cody web.

Test plan

See updated test case.

Changelog

  • Fix HTTP 406 error when using the Neovim Cody plugin with Enterprise instances

…ents

Fixes CODY-2884

Previously, the server could respond with a 406 error when encountering
clients with the following names: cody-cli, eclipse, and visualstudio.
This error seems to only happen for enterprise clients.  This PR fixes
the problem by adding special cases for these clients like we already
have for jetbrains and cody web.
@olafurpg olafurpg requested a review from taras-yemets July 16, 2024 11:07
@cla-bot cla-bot Bot added the cla-signed label Jul 16, 2024
@olafurpg olafurpg requested a review from a team July 16, 2024 11:07
@olafurpg olafurpg enabled auto-merge (squash) July 16, 2024 11:07
@olafurpg olafurpg merged commit 00d812c into main Jul 16, 2024
@olafurpg olafurpg deleted the olafurpg-cody-2884-fix-http-406-error branch July 16, 2024 12:36
olafurpg added a commit that referenced this pull request Jul 16, 2024
…ents (#63851)

Fixes CODY-2884

Previously, the server could respond with a 406 error when encountering
clients with the following names: cody-cli, eclipse, and visualstudio.
This error seems to only happen for enterprise clients. This PR fixes
the problem by adding special cases for these clients like we already
have for jetbrains and cody web.

<!-- PR description tips:
https://www.notion.so/sourcegraph/Write-a-good-pull-request-description-610a7fd3e613496eb76f450db5a49b6e
-->

## Test plan

See updated test case.
<!-- REQUIRED; info at
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles
-->

## Changelog

- Fix HTTP 406 error when using the Neovim Cody plugin with Enterprise
instances
<!-- OPTIONAL; info at
https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c
-->
olafurpg added a commit that referenced this pull request Jul 16, 2024
…udio clients (#63851)"

This reverts commit 00d812c.

The motivation to revert this commit is because it wasn't a good fix and
I want to have an easy-to-cherry-pick commit with a good fix (which I
have ready in another branch).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants