sourcegraph / cody

AI that knows your entire codebase
https://cody.dev
Apache License 2.0
2.24k stars 213 forks source link

Edit Inline DIff: Test case for JetBrains issue #4645

Closed umpox closed 1 week ago

umpox commented 1 week ago

Description

Branched from https://github.com/sourcegraph/cody/pull/4525

Trying to figure out what is going wrong here...

Steps:

  1. Add code to an empty file

    function log(message: string): void {
    console.log(message)
    }
  2. Select all the code just pasted

  3. Add instruction "Add a JSDoc"

  4. Observe results

VS Code

image

Agent

image

JetBrains

JetBrains seems to add it backwards 🤔

image

Test plan

N/A - Tests already

umpox commented 1 week ago

Resolved via https://github.com/sourcegraph/cody/pull/4525/commits/0454351af0afa7a97745fcefa3161a543da7ee99