Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-db/src/assists.rs')
-rw-r--r--crates/ide-db/src/assists.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/crates/ide-db/src/assists.rs b/crates/ide-db/src/assists.rs
index 7a7328f312..1c40685ebb 100644
--- a/crates/ide-db/src/assists.rs
+++ b/crates/ide-db/src/assists.rs
@@ -29,7 +29,16 @@ pub struct Assist {
/// cumbersome, especially if you want to embed an assist into another data
/// structure, such as a diagnostic.
pub source_change: Option<SourceChange>,
- pub trigger_signature_help: bool,
+ /// The command to execute after the assist is applied.
+ pub command: Option<Command>,
+}
+
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum Command {
+ /// Show the parameter hints popup.
+ TriggerParameterHints,
+ /// Rename the just inserted item.
+ Rename,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]