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

julia/getDocAt handler #744

Merged
merged 9 commits into from
Jul 1, 2020
Merged

julia/getDocAt handler #744

merged 9 commits into from
Jul 1, 2020

Conversation

aviatesk
Copy link
Member

@aviatesk aviatesk commented Jun 9, 2020

supersedes #377

currently just borrows logics of get_hover, and many TODOs left:
- [ ] handle links (e.g. @ref)
- [ ] horizontal line separators
- [ ] documentations on variables, structs
- [ ] more accurate documentation retrieve (e.g. Base.sin)

Let's address those TODOs later, hacking in LS will take some time.

Copy link
Member

@davidanthoff davidanthoff left a comment

Choose a reason for hiding this comment

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

I'm changing this to a draft, because it is not ready to be merged or reviewed, right?

src/requests/features.jl Outdated Show resolved Hide resolved
Project.toml Outdated Show resolved Hide resolved
@aviatesk aviatesk force-pushed the avi/documentation branch from 78cf9cb to 592f646 Compare June 12, 2020 11:11
@aviatesk aviatesk marked this pull request as ready for review June 30, 2020 14:25
@davidanthoff
Copy link
Member

@aviatesk needs a merge conflict resolution.

return mismatched_version_error(uri, doc, params, "getDocAt")
end

x = get_expr1(getcst(doc), get_offset(doc, params.position))
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be get_expr?

Copy link
Member Author

Choose a reason for hiding this comment

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

hm, why do you think so ?
I adapted code from this line, and not so sure about the difference between get_expr and get_expr1...
Maybe @ZacLN could you explain this to me ?

Copy link
Member

@davidanthoff davidanthoff left a comment

Choose a reason for hiding this comment

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

I'm going to merge this now, just so that it is easier to work on the corresponding PR over in the extension itself. There is still the comment from @pfitzseb whether this is using the right function, but I think we can address that in a follow-up PR.

@davidanthoff davidanthoff merged commit 93b4ada into master Jul 1, 2020
@davidanthoff davidanthoff deleted the avi/documentation branch July 1, 2020 23:39
aviatesk added a commit that referenced this pull request Jul 3, 2020
aviatesk added a commit that referenced this pull request Jul 3, 2020
davidanthoff added a commit that referenced this pull request Jul 5, 2020
show document for `const` variables, follow up #744
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants