
Editing JSON styles is not very helpful for bringing style changes back to the actual code. This PR adds a buffer that pretends to be Rust, applying any style attribute identifiers it finds. Also supports completions with display of documentation. The effect of the currently selected completion is previewed. Warning diagnostics appear on any unrecognized identifier. https://github.com/user-attachments/assets/af39ff0a-26a5-4835-a052-d8f642b2080c Adds a `#[derive_inspector_reflection]` macro which allows these methods to be enumerated and called by their name. The macro code changes were 95% generated by Zed Agent + Opus 4. Release Notes: * Added an element inspector for development. On debug builds, `dev::ToggleInspector` will open a pane allowing inspecting of element info and modifying styles.
27 lines
460 B
TOML
27 lines
460 B
TOML
[package]
|
|
name = "gpui_macros"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "Apache-2.0"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
inspector = []
|
|
|
|
[lib]
|
|
path = "src/gpui_macros.rs"
|
|
proc-macro = true
|
|
doctest = true
|
|
|
|
[dependencies]
|
|
heck.workspace = true
|
|
proc-macro2.workspace = true
|
|
quote.workspace = true
|
|
syn.workspace = true
|
|
workspace-hack.workspace = true
|
|
|
|
[dev-dependencies]
|
|
gpui = { workspace = true, features = ["inspector"] }
|