LSP textDocument/copilotInlineEdit (Copilot NES - Next Edit Suggestion)
Summary
GitHub Copilot supports something similar to Zed Edit Predictions Copilot Next Edit Suggestions.
Description
Zed recently switch from using copilot.vim to copilot-language-server:
- https://github.com/zed-industries/zed/pull/27401
It does not appear to be documented, but I believe this is implemented via the textDocument/copilotInlineEdit LSP message to copilot-language-server.
There is unofficial support for Copilot NES in NeoVim via copilotlsp-nvim/copilot-lsp. Looking at their code we can see textDocument/copilotInlineEdit.
I believe this is the rough shape:
{
"edits": [
{
"command": { "title": "blah", "command": "blah" },
"range": {
"start": { "line": 0, "character": 0 },
"end": { "line": 0, "character": 3 },
},
"textDocument": "file://whatever",
"text": "xyz",
"newText": null
}
]
}
Copilot NES don't support subtle mode , which I REALLY like while using the Zed rather than VSCode , I always close Copilot NES feature because it will make vscode lsp servers slow to response and apply but Zed do it well with subtle mode :(
Copilot NES don't support subtle mode , which I REALLY like while using the Zed rather than VSCode , I always close Copilot NES feature because it will make vscode lsp servers slow to response and apply but Zed do it well with subtle mode :(
I'm guessing it's possible to get a "subtle mode" working for Copilot's NES on Zed. I absolutely love the LLM cursor prediction, and it's the one and only feature that's keeping me on the Cursor instead of moving over to Zed.
Hi there! 👋 We're working to clean up our issue tracker by closing older bugs that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and it will be kept open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, it will close automatically in 14 days. Thanks for your help!
Bump
@franciskafyi, bring this feature; it will be helpful for whoever uses GitHub Copilot.
@Navin-MS-data so appreciate you surfacing this! Thank you. Forgive me for the stupid question here but is this different from what we have here: https://zed.dev/docs/ai/edit-prediction#github-copilot.
I'm lacking some context that I'm not getting from Peter's initial issue.
@Navin-MS-data so appreciate you surfacing this! Thank you. Forgive me for the stupid question here but is this different from what we have here: https://zed.dev/docs/ai/edit-prediction#github-copilot.
I'm lacking some context that I'm not getting from Peter's initial issue.
@franciskafyi In VS Code, GitHub Copilot will provide inline suggestions and also suggest edits for what's next. This feature is called Next Edit Suggestion (NES). However, in Zed's GitHub Copilot, only inline suggestions are provided, not suggestions for editing the next line. In Zed, only Zed AI provides this feature; no other AI gives this feature.