Skip to content

Commit 771937a

Browse files
ankddevlpil
authored andcommitted
fix: code action showed up for annotated functions
1 parent 1b5a72c commit 771937a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-core/src/language_server/code_action.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ impl<'a> AnnotateTopLevelDefinitions<'a> {
13891389

13901390
// We only want to trigger the action if we're over one of the definition in
13911391
// the module
1392-
if !self.is_hovering_definition {
1392+
if !self.is_hovering_definition || self.edits.edits.is_empty() {
13931393
return vec![];
13941394
};
13951395

0 commit comments

Comments
 (0)