mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
711dc21eb2
* Collects and reports all parse errors * Shares parsed `KeyBindingContextPredicate` among the actions. * Updates gpui keybinding and action parsing to return structured errors. * Renames "block" to "section" to match the docs, as types like `KeymapSection` are shown in `json-language-server` hovers. * Removes wrapping of `context` and `use_key_equivalents` fields so that `json-language-server` auto-inserts `""` and `false` instead of `null`. * Updates `add_to_cx` to take `&self`, so that the user keymap doesn't get unnecessarily cloned. In retrospect I wish I'd just switched to using TreeSitter to do the parsing and provide proper diagnostics. This is tracked in #23333 Release Notes: - Improved handling of errors within the user keymap file. Parse errors within context, keystrokes, or actions no longer prevent loading the key bindings that do parse.
63 lines
1.8 KiB
TOML
63 lines
1.8 KiB
TOML
[package]
|
|
name = "vim"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/vim.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
neovim = ["nvim-rs", "async-compat", "async-trait", "tokio"]
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
async-compat = { workspace = true, "optional" = true }
|
|
async-trait = { workspace = true, "optional" = true }
|
|
collections.workspace = true
|
|
command_palette.workspace = true
|
|
command_palette_hooks.workspace = true
|
|
editor.workspace = true
|
|
futures.workspace = true
|
|
gpui.workspace = true
|
|
itertools.workspace = true
|
|
language.workspace = true
|
|
libc.workspace = true
|
|
log.workspace = true
|
|
multi_buffer.workspace = true
|
|
nvim-rs = { git = "https://github.com/KillTheMule/nvim-rs", branch = "master", features = ["use_tokio"], optional = true }
|
|
regex.workspace = true
|
|
schemars.workspace = true
|
|
search.workspace = true
|
|
serde.workspace = true
|
|
serde_derive.workspace = true
|
|
serde_json.workspace = true
|
|
settings.workspace = true
|
|
task.workspace = true
|
|
theme.workspace = true
|
|
tokio = { version = "1.15", features = ["full"], optional = true }
|
|
ui.workspace = true
|
|
util.workspace = true
|
|
vim_mode_setting.workspace = true
|
|
workspace.workspace = true
|
|
zed_actions.workspace = true
|
|
|
|
[dev-dependencies]
|
|
assets.workspace = true
|
|
command_palette.workspace = true
|
|
editor = { workspace = true, features = ["test-support"] }
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
indoc.workspace = true
|
|
language = { workspace = true, features = ["test-support"] }
|
|
lsp = { workspace = true, features = ["test-support"] }
|
|
parking_lot.workspace = true
|
|
project_panel.workspace = true
|
|
release_channel.workspace = true
|
|
settings.workspace = true
|
|
util = { workspace = true, features = ["test-support"] }
|
|
workspace = { workspace = true, features = ["test-support"] }
|