sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.27k stars 214 forks source link

VS Code: "Generate Unit Tests" is not working correctly for new files. #4602

Open jay-fibi opened 2 weeks ago

jay-fibi commented 2 weeks ago

Version

v1.23.1718550982

Describe the bug

Platform: macOS

Steps to reproduce:

  1. Have Cody plugin installed in your VS Code editor
  2. Login to Cody with Free/Pro user
  3. Create a new source code file
  4. Right click and choose "Cody > Generate Unit Tests"
  5. Verify that two test files will be created

Observed behavior:

Two test files will be created but the Cody is not generating any unit tests.

Expected behavior

Only one test file should be created and Cody should generate unit tests correctly.

Additional context

Video link:

https://drive.google.com/file/d/1i2s8yJfqigS9xnni3trbieeP4a9NP0lj/view?usp=drive_link