We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b5a72c commit 771937aCopy full SHA for 771937a
compiler-core/src/language_server/code_action.rs
@@ -1389,7 +1389,7 @@ impl<'a> AnnotateTopLevelDefinitions<'a> {
1389
1390
// We only want to trigger the action if we're over one of the definition in
1391
// the module
1392
- if !self.is_hovering_definition {
+ if !self.is_hovering_definition || self.edits.edits.is_empty() {
1393
return vec![];
1394
};
1395
0 commit comments