Skip to content
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -800,13 +800,15 @@ calloop = { git = "https://github.com/zed-industries/calloop" }

[profile.dev]
split-debuginfo = "unpacked"
debug = 1
incremental = true
codegen-units = 16
codegen-units = 256

# mirror configuration for crates compiled for the build platform
# (without this cargo will compile ~400 crates twice)
[profile.dev.build-override]
codegen-units = 16
debug = 1
codegen-units = 256

[profile.dev.package]
# proc-macros start
Expand Down
7 changes: 7 additions & 0 deletions assets/settings/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@
// The delay in milliseconds that must elapse before drag and drop is allowed. Otherwise, a new text selection is created.
"delay": 300,
},
// Code lens settings for showing reference counts and other metadata above code elements.
"code_lens": {
// Whether code lens is enabled.
"enabled": true,
// The debounce delay in milliseconds before querying code lens from the language server.
"debounce": 300
},
// What to do when go to definition yields no results.
//
// 1. Do nothing: `none`
Expand Down
2 changes: 2 additions & 0 deletions crates/editor/src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,8 @@ actions!(
ToggleIndentGuides,
/// Toggles inlay hints display.
ToggleInlayHints,
/// Toggles code lens display.
ToggleCodeLens,
/// Toggles inline values display.
ToggleInlineValues,
/// Toggles inline diagnostics display.
Expand Down
Loading