
Introducing the Active File Context portion of #9705. When someone is in the assistant panel it now includes the active file as a system message on send while showing them a nice little display in the lower right:  For this iteration, I'd love to see the following before we land this: * [x] Toggle-able context - user should be able to disable sending this context * [x] Show nothing if there is no context coming in * [x] Update token count as we change items * [x] Listen for a more finely scoped event for when the active item changes * [x] Create a global for pulling a file icon based on a path. Zed's main way to do this is nested within project panel's `FileAssociation`s. * [x] Get the code fence name for a Language for the system prompt * [x] Update the token count when the buffer content changes I'm seeing this PR as the foundation for providing other kinds of context -- diagnostic summaries, failing tests, additional files, etc. Release Notes: - Added file context to assistant chat panel ([#9705](https://github.com/zed-industries/zed/issues/9705)). <img width="1558" alt="image" src="https://github.com/zed-industries/zed/assets/836375/86eb7e50-3e28-4754-9c3f-895be588616d"> --------- Co-authored-by: Conrad Irwin <conrad@zed.dev> Co-authored-by: Nathan <nathan@zed.dev> Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Mikayla Maki <mikayla@zed.dev>
141 lines
3.8 KiB
TOML
141 lines
3.8 KiB
TOML
[package]
|
|
description = "The fast, collaborative code editor."
|
|
edition = "2021"
|
|
name = "zed"
|
|
version = "0.130.0"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
authors = ["Zed Team <hi@zed.dev>"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[[bin]]
|
|
name = "Zed"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
activity_indicator.workspace = true
|
|
anyhow.workspace = true
|
|
assets.workspace = true
|
|
assistant.workspace = true
|
|
audio.workspace = true
|
|
auto_update.workspace = true
|
|
backtrace = "0.3"
|
|
breadcrumbs.workspace = true
|
|
call.workspace = true
|
|
channel.workspace = true
|
|
chrono.workspace = true
|
|
clap.workspace = true
|
|
cli.workspace = true
|
|
client.workspace = true
|
|
clock.workspace = true
|
|
collab_ui.workspace = true
|
|
collections.workspace = true
|
|
command_palette.workspace = true
|
|
copilot.workspace = true
|
|
copilot_ui.workspace = true
|
|
db.workspace = true
|
|
diagnostics.workspace = true
|
|
editor.workspace = true
|
|
env_logger.workspace = true
|
|
extension.workspace = true
|
|
extensions_ui.workspace = true
|
|
feedback.workspace = true
|
|
file_icons.workspace = true
|
|
file_finder.workspace = true
|
|
fs.workspace = true
|
|
futures.workspace = true
|
|
go_to_line.workspace = true
|
|
gpui.workspace = true
|
|
image_viewer.workspace = true
|
|
install_cli.workspace = true
|
|
isahc.workspace = true
|
|
journal.workspace = true
|
|
language.workspace = true
|
|
language_selector.workspace = true
|
|
language_tools.workspace = true
|
|
languages.workspace = true
|
|
log.workspace = true
|
|
markdown_preview.workspace = true
|
|
menu.workspace = true
|
|
mimalloc = "0.1"
|
|
node_runtime.workspace = true
|
|
notifications.workspace = true
|
|
outline.workspace = true
|
|
parking_lot.workspace = true
|
|
profiling.workspace = true
|
|
project.workspace = true
|
|
project_panel.workspace = true
|
|
project_symbols.workspace = true
|
|
quick_action_bar.workspace = true
|
|
recent_projects.workspace = true
|
|
release_channel.workspace = true
|
|
rope.workspace = true
|
|
search.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
settings.workspace = true
|
|
simplelog = "0.9"
|
|
smol.workspace = true
|
|
tab_switcher.workspace = true
|
|
task.workspace = true
|
|
tasks_ui.workspace = true
|
|
terminal_view.workspace = true
|
|
theme.workspace = true
|
|
theme_selector.workspace = true
|
|
urlencoding = "2.1.2"
|
|
util.workspace = true
|
|
uuid.workspace = true
|
|
vim.workspace = true
|
|
welcome.workspace = true
|
|
workspace.workspace = true
|
|
zed_actions.workspace = true
|
|
|
|
[target.'cfg(target_os = "windows")'.build-dependencies]
|
|
embed-manifest = "1.4.0"
|
|
winresource = "0.1"
|
|
|
|
[dev-dependencies]
|
|
call = { workspace = true, features = ["test-support"] }
|
|
editor = { workspace = true, features = ["test-support"] }
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
language = { workspace = true, features = ["test-support"] }
|
|
project = { workspace = true, features = ["test-support"] }
|
|
tree-sitter-rust.workspace = true
|
|
workspace = { workspace = true, features = ["test-support"] }
|
|
|
|
[package.metadata.bundle-dev]
|
|
icon = ["resources/app-icon-preview@2x.png", "resources/app-icon-preview.png"]
|
|
identifier = "dev.zed.Zed-Dev"
|
|
name = "Zed Dev"
|
|
osx_minimum_system_version = "10.15.7"
|
|
osx_info_plist_exts = ["resources/info/*"]
|
|
osx_url_schemes = ["zed"]
|
|
|
|
[package.metadata.bundle-nightly]
|
|
icon = ["resources/app-icon-nightly@2x.png", "resources/app-icon-nightly.png"]
|
|
identifier = "dev.zed.Zed-Nightly"
|
|
name = "Zed Nightly"
|
|
osx_minimum_system_version = "10.15.7"
|
|
osx_info_plist_exts = ["resources/info/*"]
|
|
osx_url_schemes = ["zed"]
|
|
|
|
[package.metadata.bundle-preview]
|
|
icon = ["resources/app-icon-preview@2x.png", "resources/app-icon-preview.png"]
|
|
identifier = "dev.zed.Zed-Preview"
|
|
name = "Zed Preview"
|
|
osx_minimum_system_version = "10.15.7"
|
|
osx_info_plist_exts = ["resources/info/*"]
|
|
osx_url_schemes = ["zed"]
|
|
|
|
[package.metadata.bundle-stable]
|
|
icon = ["resources/app-icon@2x.png", "resources/app-icon.png"]
|
|
identifier = "dev.zed.Zed"
|
|
name = "Zed"
|
|
osx_minimum_system_version = "10.15.7"
|
|
osx_info_plist_exts = ["resources/info/*"]
|
|
osx_url_schemes = ["zed"]
|
|
|
|
[package.metadata.cargo-machete]
|
|
ignored = ["profiling"]
|