Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allowing to add more information to the hover #204721
Allowing to add more information to the hover #204721
Changes from 21 commits
ef39b20
0a4bef1
be8a5c1
3d6459f
8727fa8
818a6d0
3e6b577
423994c
5c7b3d8
357e8bf
e85df6c
ab57fa9
d342e4b
f90f526
c2e2a5e
0f2f5cb
e6c0a45
5addb57
b263f15
4c56bcb
a80074a
5b337a6
6ed3d9f
c2accf2
24bee31
3f40d33
4ac442e
9830188
a288dad
ec45651
79d8372
f97c977
336511a
ecaf126
1b66dc0
cb91f82
7d115e4
b874755
dc37c8a
b10f70f
17f474e
e21fbe2
8a24d07
0d4ffa4
380b376
c507ecd
013a803
e8b1471
38b22ae
079e0ac
de10c1a
38c7a76
6e8d8e9
3ee89c3
1e8b2a3
f217d6f
b7de695
5fb5bee
073317f
94a4e26
53f1f14
95e9c01
7117aa6
901296e
be380d0
f8bcd67
15442c8
936ff77
8a8f1d6
9a97a31
a117b51
6f5e91d
7aa73bb
710620d
59343d0
d8bd14b
cf68733
e84d450
0c1a32f
94acd4f
93fc5a9
d393019
a3cd5a2
a8a3aa6
14df920
7bc7c95
7723d46
7b1426d
150ad26
484795a
35019d3
0935dcc
55f878a
d8b0bb7
692d65d
ab029cd
d04e6bb
ef2bfb8
5cbe09f
66d94ca
10248d4
910d013
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unclear to me.
Is the
IEditorHoverRenderContext
disposable? Who callsdisposables.dispose()
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes so the disposable store is created here:
vscode/src/vs/editor/contrib/hover/browser/contentHover.ts
Line 207 in dd42b9f
I pass it into the context here:
vscode/src/vs/editor/contrib/hover/browser/contentHover.ts
Line 212 in dd42b9f
It is also passed in the
showAt
method here:vscode/src/vs/editor/contrib/hover/browser/contentHover.ts
Line 246 in dd42b9f
The context is saved in the field
this._hoverData
. When the hover is hidden, the code always calls_setHoverData
with undefined:vscode/src/vs/editor/contrib/hover/browser/contentHover.ts
Line 846 in dd42b9f
Finally inside of
_setHoverData
we dispose the store:vscode/src/vs/editor/contrib/hover/browser/contentHover.ts
Line 757 in dd42b9f