516e779
Merge pull request #2335 from zed-industries/dont-delete-json-server-after-downloading-it
Click to expand commit body
Don't delete JSON language server directly after downloading it
Julia
created
0199ffe
Don't delete JSON language server directly after downloading it
Click to expand commit body
This was accidentally added during the messy NodeRuntime/Copilot rebase
Co-Authored-By: Joseph Lyons <joseph@zed.dev>
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
Antonio Scandurra
,
Nathan Sobo
, and
Mikayla Maki
created
b588ba1
Avoid auto-indenting when accepting copilot suggestion
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
6e43e77
Use copilot's `Completion::{range,text}` to determine suggestion
Click to expand commit body
Previously, we were using display text, but this isn't always correct. Now,
we just attempt to determine what text Copilot wants to insert by finding
a prefix and suffix in the existing text with the suggested text.
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
9b16277
Merge pull request #2316 from zed-industries/copilot
Click to expand commit body
π¨ WIP π¨ Copilot
Mikayla Maki
created
713f5f6
Fix leaked handle and failure to update language in context menu
e3a311f
Merge pull request #2331 from zed-industries/tab-map-sync
Click to expand commit body
Speed up tab searching in `TabMap::sync`
Antonio Scandurra
created
af4c4c7
Speed up tab searching in `TabMap::sync` by looking for `\t` only
Click to expand commit body
Instead of looking for `\n` as a stopping condition, we cap the range
we pass to `SuggestionSnapshot::chunks` to stop on the next line. This
makes character searching faster, because looking for a single character
uses `memchr`. Also, this avoids an extra conditional in a tight loop such
as the chunk scanning one contained in `TabMap::sync`.
Antonio Scandurra
created
79346b0
Use `+` instead of `|` to break out of tab expansion in `TabMap::sync`