This PR adds a staff-only button to the edit prediction menu for capturing your current editing session as edit prediction example file. When you click that button, it opens a markdown tab with the example. By default, the most recent change that you've made is used as the expected patch, and all of the previous events are used as the editing history. <img width="303" height="123" alt="Screenshot 2025-12-14 at 6 58 33 PM" src="https://github.com/user-attachments/assets/600c7bf2-7cf4-4d27-8cd4-8bb70d0b20b0" /> Release Notes: - N/A
72 lines
1.8 KiB
TOML
72 lines
1.8 KiB
TOML
[package]
|
|
name = "edit_prediction_cli"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[[bin]]
|
|
name = "ep"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
anthropic.workspace = true
|
|
http_client.workspace = true
|
|
chrono.workspace = true
|
|
clap.workspace = true
|
|
client.workspace = true
|
|
cloud_llm_client.workspace= true
|
|
collections.workspace = true
|
|
debug_adapter_extension.workspace = true
|
|
dirs.workspace = true
|
|
extension.workspace = true
|
|
fs.workspace = true
|
|
futures.workspace = true
|
|
gpui.workspace = true
|
|
gpui_tokio.workspace = true
|
|
indoc.workspace = true
|
|
language.workspace = true
|
|
language_extension.workspace = true
|
|
language_model.workspace = true
|
|
language_models.workspace = true
|
|
languages = { workspace = true, features = ["load-grammars"] }
|
|
libc.workspace = true
|
|
log.workspace = true
|
|
node_runtime.workspace = true
|
|
paths.workspace = true
|
|
project.workspace = true
|
|
prompt_store.workspace = true
|
|
release_channel.workspace = true
|
|
reqwest_client.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
settings.workspace = true
|
|
shellexpand.workspace = true
|
|
smol.workspace = true
|
|
sqlez.workspace = true
|
|
sqlez_macros.workspace = true
|
|
terminal_view.workspace = true
|
|
util.workspace = true
|
|
watch.workspace = true
|
|
edit_prediction = { workspace = true, features = ["cli-support"] }
|
|
wasmtime.workspace = true
|
|
zeta_prompt.workspace = true
|
|
|
|
# Wasmtime is included as a dependency in order to enable the same
|
|
# features that are enabled in Zed.
|
|
#
|
|
# If we don't enable these features we get crashes when creating
|
|
# a Tree-sitter WasmStore.
|
|
[package.metadata.cargo-machete]
|
|
ignored = ["wasmtime"]
|
|
|
|
[dev-dependencies]
|
|
indoc.workspace = true
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
project = { workspace = true, features = ["test-support"] }
|
|
pretty_assertions.workspace = true
|