Skip to content

Conversation

@spookyvision
Copy link
Contributor

@spookyvision spookyvision commented Sep 14, 2021

implement #10070 in hover

@Veykril
Copy link
Member

Veykril commented Sep 14, 2021

Turns out making hover more resilient for this is a bit trickier, but supporting this on a basic level should be fine for the time being I'd say.

Another nit I just realized, the type hover fallback shouldn't be included here by default I feel like as this might become a bit messy with some macros to read the hover of. That is, only if we do not get any hover info for any of the descended tokens we want to show the fallback, otherwise just ignore a descended token if it doesn't resolve to anything. Doesn't need to be addressed in this PR now though as this might be a bit annoying to do, might be good to add a note/fixme for that still.

@spookyvision
Copy link
Contributor Author

Another nit I just realized, the type hover fallback shouldn't be included here by default I feel like as this might become a bit messy with some macros to read the hover of. That is, only if we do not get any hover info for any of the descended tokens we want to show the fallback, otherwise just ignore a descended token if it doesn't resolve to anything. Doesn't need to be addressed in this PR now though as this might be a bit annoying to do, might be good to add a note/fixme for that still.

(the PR has been updated to address this)

@spookyvision spookyvision marked this pull request as ready for review September 15, 2021 10:46
@Veykril
Copy link
Member

Veykril commented Sep 15, 2021

Also side note, we disallow merge commits, hence the failing tests.

@spookyvision
Copy link
Contributor Author

Also side note, we disallow merge commits, hence the failing tests.

good to know! I'll rebase once all other issues with this PR are resolved.

Anatol Ulrich added 2 commits September 15, 2021 18:04
# This is the 1st commit message:

add multi-token mappings for hover

# The commit message rust-lang#2 will be skipped:

# make fallback an Option instead of vec

# The commit message rust-lang#3 will be skipped:

# fix indentation
@Veykril
Copy link
Member

Veykril commented Sep 15, 2021

Looks good to me now, thanks!
bors r+

@bors
Copy link
Contributor

bors bot commented Sep 15, 2021

@bors bors bot merged commit 4c9eef7 into rust-lang:master Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants