Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upHover actions from extensions, better handling of multiple def providers #1313
Conversation
sqs
requested review from
chrismwendt
,
felixfbecker
and
lguychard
as
code owners
Dec 10, 2018
sqs
force-pushed the
hover-actions
branch
3 times, most recently
from
856cc5b
to
63c8d9e
Dec 10, 2018
sqs
referenced this pull request
Dec 10, 2018
Merged
provide hovers + enhance heuristics for definitions #9
sqs
force-pushed the
hover-actions
branch
from
63c8d9e
to
2b2c7ca
Dec 10, 2018
sqs
requested a review
from
ijsnow
as a
code owner
Dec 10, 2018
sqs
force-pushed the
hover-actions
branch
from
2b2c7ca
to
41efcff
Dec 11, 2018
felixfbecker
removed request for
chrismwendt
,
lguychard
,
felixfbecker
and
ijsnow
Dec 11, 2018
sqs
referenced this pull request
Dec 12, 2018
Merged
support custom actions, make non-LSP-specific, remove HoverOverlay component #70
sqs
force-pushed the
hover-actions
branch
2 times, most recently
from
97b1540
to
c3537a2
Dec 12, 2018
sqs
force-pushed the
hover-actions
branch
7 times, most recently
from
9d5d08e
to
a852296
Dec 14, 2018
Dec 15, 2018
This was referenced
added a commit
that referenced
this pull request
Dec 16, 2018
sqs
force-pushed the
hover-actions
branch
5 times, most recently
from
3e5d928
to
8de1a70
Dec 18, 2018
sqs
referenced this pull request
Dec 22, 2018
Closed
use React context to pass eventLogger, log ActionItem action invocations #1555
sqs
force-pushed the
hover-actions
branch
from
8de1a70
to
bef7930
Dec 22, 2018
sqs
requested a review
from
dadlerj
as a
code owner
Dec 22, 2018
dadlerj
reviewed
Dec 22, 2018
eventAction === 'GoToDefClicked' || | ||
eventAction === 'goToDefinition' || | ||
eventAction === 'goToDefinition.preloaded' || | ||
eventAction === 'findReferences' |
This comment has been minimized.
This comment has been minimized.
dadlerj
Dec 22, 2018
Member
If you prefer to change naming scheme, can we do it more comprehensively in a separate step, and stick with the old ones for now? Don't want this to look like a list that any ext authors can add to.
Perhaps we add a new category in the future for non-Sourcegraph extension usage tracking/displaying.
This comment has been minimized.
This comment has been minimized.
sqs
Dec 22, 2018
Author
Member
It’s going to start tracking all actions run by extensions btw.
But these actions added here are builtin and not from extensions. For marking them actions as code intel, I either need to change the action ID in hover/actions.ts or here (and for technical reasons we need to distinguish between the preloaded j2d and non-preloaded, so we’d need add another entry here anyway). Ok with you now?
This comment has been minimized.
This comment has been minimized.
dadlerj
Dec 22, 2018
Member
K, I'd love to understand (and discuss) the full vision for telemetry from extensions in the future. Would like to avoid some of VS Code's mistakes.
For now this is fine of course. Can we delete the pre-existing predefined event names (like "GoToDefClicked"
) in this PR though if codeintellify is already updated?
This comment has been minimized.
This comment has been minimized.
sqs
Dec 23, 2018
Author
Member
Yep, will delete the preexisting event names.
Check out https://github.com/sourcegraph/sourcegraph/pull/1559/files#diff-34372db774cd5ac796ed38d6db567d70 for what I was thinking around extension telemetry and leave your thoughts there.
sqs
force-pushed the
hover-actions
branch
7 times, most recently
from
94f2643
to
fa9db3f
Dec 23, 2018
sqs
changed the title
DONOTREVIEW WIP: Hover actions from extensions
Hover actions from extensions
Dec 23, 2018
sqs
changed the title
Hover actions from extensions
Hover actions from extensions, better handling of multiple def providers
Dec 23, 2018
sqs
force-pushed the
hover-actions
branch
from
fa9db3f
to
29c6204
Dec 23, 2018
sqs
referenced this pull request
Dec 23, 2018
Closed
Update dependency @sourcegraph/codeintellify to v6 #1565
sqs
force-pushed the
hover-actions
branch
from
29c6204
to
5d0e56c
Dec 23, 2018
sqs
force-pushed the
hover-actions
branch
3 times, most recently
from
4322dd5
to
f0915f1
Dec 31, 2018
sqs
force-pushed the
hover-actions
branch
from
f0915f1
to
4f64986
Dec 31, 2018
This comment has been minimized.
This comment has been minimized.
codecov-io
commented
Dec 31, 2018
Codecov Report
|
sqs commentedDec 10, 2018
•
edited
The goal of this PR is to make basic-code-intel an awesome experience when you need go-to-definition, hovers, and find-references when browsing code in any language with no configuration. That means that the initial experience of site admins and users will be much better, because they get to see code intelligence with much less setup required.
This incorporates the codeintellify PR sourcegraph/codeintellify#70. That PR makes it so that codeintellify (which implements our hover tooltip) supports custom actions, instead of hardcoding "Go to definition" and "Find references".
This commit makes the web app (and TODO soon the browser extension) make use of that, so that:
(I initially began implementing this so that basic-code-intel could add "Go to definition (fuzzy)" to the hover using (4), but I think that the improvements in (2) and (3) actually make that unnecessary for basic-code-intel. (It's still important to prioritize precise definitions in the panel; that will come soon.) See sourcegraph/sourcegraph-basic-code-intel#9 for the basic-code-intel changes that make use of this new behavior. (Note that there are no new extension APIs added in this PR, just improved handling of what already exists.))
TODOs before merging: