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

feat: Provide the comments for each Symbol from PackageExports #4774

Merged
merged 5 commits into from
Jun 21, 2022

Conversation

Marwes
Copy link
Contributor

@Marwes Marwes commented May 19, 2022

Extends the PackageExports type to store the comments for each exported symbol. Main use case is that LSP as I believe it should be able to use this to lookup the documentation for any exported standard library function and return it as part of a completion item (cc @rockstar , may need some work on the completion side but you may already be working on improving that(?)). Longer term I would like to also provide symbol -> attribute lookup through the same API.

Separated from #4773 / #4740 as I realized I didn't really need this part yet.

@Marwes Marwes marked this pull request as ready for review May 19, 2022 17:18
@Marwes Marwes requested a review from a team as a code owner May 19, 2022 17:18
@Marwes Marwes requested review from OfTheDelmer and removed request for a team May 19, 2022 17:18
@Marwes
Copy link
Contributor Author

Marwes commented May 19, 2022

#4537 might be needed also to make symbols more accurate in the LSP

@Marwes Marwes force-pushed the comment_on_symbol branch from d1f276b to 750edac Compare May 20, 2022 09:51
Markus Westerlind added 5 commits June 21, 2022 15:54
When iterating the normal hashmap we would try to order the bindings by their names, however that still left an inconsistency when we multiple bindings with the same name. Using an indexmap we will always iterate over the bindings in the order that they were inserted in, ensuring consistency
@Marwes Marwes force-pushed the comment_on_symbol branch from 750edac to a33d8f9 Compare June 21, 2022 13:55
@Marwes Marwes merged commit 5186988 into master Jun 21, 2022
@Marwes Marwes deleted the comment_on_symbol branch June 21, 2022 14:10
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