Skip to content

Commit 791acda

Browse files
committed
fix: code action showed up for annotated functions
1 parent ed928cf commit 791acda

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
@@ -1388,7 +1388,7 @@ impl<'a> AnnotateTopLevelDefinitions<'a> {
13881388

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

0 commit comments

Comments
 (0)