Version:
CopilotChat: Commit 16d897f
Neovim: 0.11.1
Steps to reproduce:
- Create an empty directory
- Create a
src subdirectory within it
- Create a
main.rs inside the subdirectory created in step 2.
- Add something to the file (I could not get CopilotChat to add anything to an empty file)
- Open neovim in the empty directory from step 1. Tell CopilotChat (using sonnet 3.7 thinking in this case) to add something to
src/main.rs
- It should create a correct diff, something along the lines of [1] below
- Accepting the diff with
C-y inserts the diff into a new buffer named main.rs
Expected behavior:
I would expect the diff to be inserted into the main.rs file under src/
Debugging:
It seems like the changes added in commit 81754ea, addressing issue #1095, led to this behavior. Reverting the commit fixed the issue for me. Since I don't quite understand why normalization was initially added, I'm hesitant to create a pull request dealing with the issue.
[1]
[file:src/main.rs](src/main.rs) line:1-1
```rust
fn main() {
println!("Hello, world! 🙂");
}
```
Version:
CopilotChat: Commit 16d897f
Neovim: 0.11.1
Steps to reproduce:
srcsubdirectory within itmain.rsinside the subdirectory created in step 2.src/main.rsC-yinserts the diff into a new buffer namedmain.rsExpected behavior:
I would expect the diff to be inserted into the
main.rsfile undersrc/Debugging:
It seems like the changes added in commit 81754ea, addressing issue #1095, led to this behavior. Reverting the commit fixed the issue for me. Since I don't quite understand why normalization was initially added, I'm hesitant to create a pull request dealing with the issue.
[1]