Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Hover is not unpinned even when it is empty #4940

Closed
lguychard opened this issue Jul 18, 2019 · 0 comments · Fixed by sourcegraph/codeintellify#157
Closed

Hover is not unpinned even when it is empty #4940

lguychard opened this issue Jul 18, 2019 · 0 comments · Fixed by sourcegraph/codeintellify#157
Assignees
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior.

Comments

@lguychard
Copy link
Contributor

lguychard commented Jul 18, 2019

Steps to reproduce:

  1. Sync https://bitbucket.sgdev.org/projects/SOUR/repos/vegeta to a Sourcegraph instance.
  2. Navigate to http://localhost:3080/bitbucket.sgdev.org/SOUR/vegeta/-/blob/lib/targets.go#L137:17, with basic code intel activated.
  3. Click on Lexer at line 137.
  4. Hover jlexer at line 137, without clicking.

Expected behavior:

Hover overlay appears for jlexer:

image

Actual behavior:

No hover overlay appears for jlexer, or any other symbol, unless you unpin the hover overlay.

This is because getHoverActions() emits an empty array instead of null when no hover actions are contributed, which trips up codeintellify's unpinning logic (rel sourcegraph/codeintellify#156)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior.
Projects
None yet
1 participant