Skip to content

Use proper range for hover on macro arguments #3228

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

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

edwin0cheng
Copy link
Member

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
Member

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 <[email protected]>
@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