-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[move-ide] On-hover improvements (#19437)
## Description This PR improves on several instance of on-hover. 1. Doc comments now preserves indentation ![image](https://github.com/user-attachments/assets/2380db0c-1619-4080-ba48-b438b1b7f0d5) 2. Clean up the way function signatures (in particular type params and regular params) are displayed on-hover instead of always displaying them on a single line: ![image](https://github.com/user-attachments/assets/17056202-4469-4ddb-a2be-a43564e7e0e2) 3. Use information about implicit modules/datatype when displaying type information on-hover to abbreviate types by omitting package (for implicit modules, e.g., `vector::singleton` instead of `std::vector::singleton`) or both package and modules (for implicit datatypes, e.g., `Option`, instead of `std::option::Option`) ![image](https://github.com/user-attachments/assets/ad639db4-a30a-4b70-852f-8614adca812f) ## Test plan All new and old tests must pass
- Loading branch information
Showing
26 changed files
with
1,115 additions
and
644 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.