continue icon indicating copy to clipboard operation
continue copied to clipboard

Git Diff ("@diff" ) could not get the diff context

Open bsx1990 opened this issue 1 year ago • 0 comments

Before submitting your bug report

Relevant environment info

- OS: macOS 14.4.1
- Continue: 0.0.45
- IDE: IntelliJ IDEA 2024.1 (241.14494.240)

Description

When I'm trying to use the @diff to try to add the git diff context, it alway return empty. Here is the request received from the LLM service:

[2024-04-29 17:09:50.666] [INFO] Received POST request to /v1/chat/completions with body: { "messages": [ { "role": "user", "content": "git diff\n\n\n\nGit Diff test" } ], "model": "deepseek-7b", "max_tokens": 8192, "stream": true }

To reproduce

  1. Open a code repo with IntelliJ IDEA
  2. Make some change of the code
  3. Open Continue and input @diff test

Log output

No Log output

bsx1990 avatar Apr 29 '24 09:04 bsx1990