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

Structure suggestions for link resolution warnings as fixits #438

Closed
d-ronnqvist opened this issue Dec 13, 2022 · 0 comments
Closed

Structure suggestions for link resolution warnings as fixits #438

d-ronnqvist opened this issue Dec 13, 2022 · 0 comments
Labels
enhancement Improvements or enhancements to existing functionality

Comments

@d-ronnqvist
Copy link
Contributor

d-ronnqvist commented Dec 13, 2022

When a documentation link fails to resolve, the diagnostic doesn't have any structured suggestions (fixits).

With the hierarchy-based link resolver implementation there's information about how to change the link so that it would resolve but this information is included in the error message text.

If we moved this information into Solution elements with a Replacement then IDEs could display them as fixits so that the developer could easily apply one of them.


Note that the link resolver doesn't have all the information it needs to create the Solution/Replacement elements (e.g. the source range or URL).

@d-ronnqvist d-ronnqvist added the enhancement Improvements or enhancements to existing functionality label Dec 13, 2022
theMomax added a commit to theMomax/swift-docc that referenced this issue Jan 6, 2023
theMomax added a commit to theMomax/swift-docc that referenced this issue Jan 6, 2023
theMomax added a commit to theMomax/swift-docc that referenced this issue Jan 6, 2023
theMomax added a commit to theMomax/swift-docc that referenced this issue Jan 6, 2023
theMomax added a commit to theMomax/swift-docc that referenced this issue Jan 6, 2023
theMomax added a commit to theMomax/swift-docc that referenced this issue Jan 18, 2023
theMomax added a commit to theMomax/swift-docc that referenced this issue Jan 29, 2023
theMomax added a commit to theMomax/swift-docc that referenced this issue Feb 8, 2023
theMomax added a commit to theMomax/swift-docc that referenced this issue Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements or enhancements to existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant