Skip to content
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

Support hover links #152

Merged
merged 1 commit into from
May 4, 2023
Merged

Support hover links #152

merged 1 commit into from
May 4, 2023

Conversation

sdankel
Copy link
Member

@sdankel sdankel commented May 4, 2023

This PR adds commands that are linked to from the hover docs in markdown.

Related FuelLabs/sway#4532

Copy link
Member

@JoshuaBatty JoshuaBatty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@sdankel sdankel merged commit 414ee53 into master May 4, 2023
@sdankel sdankel deleted the sophie/hoverLinks branch May 4, 2023 19:12
IGI-111 added a commit to FuelLabs/sway that referenced this pull request May 10, 2023
## Description

Closes #2851
#2852

Related, this code is needed for the links to work:
FuelLabs/sway-vscode-plugin#152

There are two types of links: go to definition and go to
implementations.

It should be working for:
- structs
- enums
- traits
- variables
- functions
- function parameters
- struct fields

Note: it isn't working for ABI at the moment. 

<img width="500" alt="image"
src="https://user-images.githubusercontent.com/47993817/236133554-aa79b4ed-f2db-4de4-baf9-edae42b6d44a.png">

<img width="617" alt="image"
src="https://user-images.githubusercontent.com/47993817/236133705-d9990ea1-61d6-4abc-a8f8-ee41d8a5658a.png">

<img width="1138" alt="image"
src="https://user-images.githubusercontent.com/47993817/236133746-0fdf1ede-ff49-46ce-bb2a-41ce18503c6e.png">

## Checklist

- [x] I have linked to any relevant issues.
- [x] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [ ] I have added tests that prove my fix is effective or that my
feature works.
- [ ] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [x] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [ ] I have requested a review from the relevant team or maintainers.

---------

Co-authored-by: IGI-111 <igi-111@protonmail.com>
Co-authored-by: Kaya Gökalp <kaya.gokalp@fuel.sh>
Co-authored-by: Joshua Batty <joshpbatty@gmail.com>
sdankel added a commit that referenced this pull request Apr 17, 2024
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