-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Browser extension: No hover tooltips on GitHub PRs after switching tabs #3228
Comments
After refreshing the background page of the browser extension and refreshing the GitHub PR page I was able to get tooltips to show. There was no hover tooltip or any other indications that code intel was working until I did this – I also added and removed the extension. |
Interesting. Were there any errors in the console or background page console? |
I'm unable to repro (browser extension v19.4.8.1301) at https://github.com/sourcegraph/sourcegraph/pull/3227/files#diff-a98755ff0b47687b4ea8b2cc6294950eR209 |
I found a repro. I added repro steps to the description + a GIF showing the bug. |
Thanks for the repro @chrismwendt! This only happens after switching tabs. The hover overlay mount, which is appended to the |
Rel https://github.com/sourcegraph/sourcegraph/issues/3228#issuecomment-481174882 On GitLab merge request pages, the diff tab is always present. As a result, when switching tabs, the hover overlay remains visible, since it is by default mounted to `document.body`, and as such is not affected by the change in visibility of the diff tab. This PR introduces the ability to customize the hover overlay mount location, through `CodeHost.getHoverOverlayMountLocation()`. If `CodeHost.getHoverOverlayMountLocation()` is unspecified, or if it returns `null`, the hover overlay will be mounted to document.body. If the custom mount location is removed from the DOM, the hover overlay will be mounted to document.body again.
Rel https://github.com/sourcegraph/sourcegraph/issues/3228#issuecomment-481174882 On GitLab merge request pages, the diff tab is always present. As a result, when switching tabs, the hover overlay remains visible, since it is by default mounted to `document.body`, and as such is not affected by the change in visibility of the diff tab. This PR introduces the ability to customize the hover overlay mount location, through `CodeHost.getHoverOverlayMountLocation()`. If `CodeHost.getHoverOverlayMountLocation()` is unspecified, or if it returns `null`, the hover overlay will be mounted to document.body. If the custom mount location is removed from the DOM, the hover overlay will be mounted to document.body again.
Route
on line 289 at the topThe text was updated successfully, but these errors were encountered: