Fuzzy-match lines when applying edits from the assistant (#12056)

This uses Jaro-Winkler similarity for now, which seemed to produce
pretty good results in my tests. We can easily swap it with something
else if needed.

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2024-05-20 17:02:15 +02:00 committed by GitHub
parent 0b8c1680fb
commit 3a79aa85f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 104 additions and 75 deletions

View file

@ -40,6 +40,7 @@ serde.workspace = true
serde_json.workspace = true
settings.workspace = true
smol.workspace = true
strsim = "0.11"
telemetry_events.workspace = true
theme.workspace = true
tiktoken-rs.workspace = true