diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ide/tooltip.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ide/tooltip.rs b/src/ide/tooltip.rs index b1107469..b17a1acc 100644 --- a/src/ide/tooltip.rs +++ b/src/ide/tooltip.rs @@ -21,6 +21,9 @@ pub fn tooltip( cursor: usize, ) -> Option<Tooltip> { let leaf = LinkedNode::new(source.root()).leaf_at(cursor)?; + if leaf.kind().is_trivia() { + return None; + } named_param_tooltip(world, &leaf) .or_else(|| font_tooltip(world, &leaf)) |
