Skip to content

Conversation

@edwin0cheng
Copy link
Contributor

This PR use original_range to remap the range of found syntax node in hover and thus it should return the proper text range now.

fixed #3000
fixed #3135

@matklad
Copy link
Contributor

matklad commented Feb 19, 2020

bors r+

bors bot added a commit that referenced this pull request Feb 19, 2020
3228: Use proper range for hover on macro arguments r=matklad a=edwin0cheng

This PR use `original_range` to remap the range of found syntax node in `hover` and thus it should return the proper text range now.

fixed #3000 
fixed #3135 


Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
@bors
Copy link
Contributor

bors bot commented Feb 19, 2020

Build succeeded

  • Rust (macos-latest)
  • Rust (ubuntu-latest)
  • Rust (windows-latest)
  • TypeScript

@bors bors bot merged commit b9d94d7 into rust-lang:master Feb 19, 2020
@edwin0cheng edwin0cheng deleted the fix-hover-on-macro branch February 19, 2020 11:23
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.

Hover in vec![] quickly disappears Type hint popup is misplaced in macros

2 participants