Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
docs: Add missing docs for CommandInterceptResult fields (#39676)
Xiaobo Liuc7d5afedc5d0
diff --git a/crates/command_palette_hooks/src/command_palette_hooks.rs b/crates/command_palette_hooks/src/command_palette_hooks.rsindex f1344c5ba6d..4923b811c57 100644--- a/crates/command_palette_hooks/src/command_palette_hooks.rs+++ b/crates/command_palette_hooks/src/command_palette_hooks.rs@@ -97,11 +97,10 @@ impl CommandPaletteFilter {pub struct CommandInterceptResult {/// The action produced as a result of the interception.pub action: Box<dyn Action>,- // TODO: Document this field.- #[allow(missing_docs)]+ /// The display string to show in the command palette for this result.pub string: String,- // TODO: Document this field.- #[allow(missing_docs)]+ /// The character positions in the string that match the query.+ /// Used for highlighting matched characters in the command palette UI.pub positions: Vec<usize>,}