improve hover behaviour in editor (for toplevel ast nodes)