If the file name changes, in the same buffer, every key press triggers an error until you reset neovim.
[Copilot.lua] RPC[Error] code_name = InvalidParams, message = "Document for URI could not be found:
file:///redacted/file.txt"
This can happen when:
- a new file got saved and hence gets a new name
- user run
:file new-name.txt
If the file name changes, in the same buffer, every key press triggers an error until you reset neovim.
This can happen when:
:file new-name.txt