Skip to content

julia/getDocAt handler#744

Merged
davidanthoff merged 9 commits intomasterfrom
avi/documentation
Jul 1, 2020
Merged

julia/getDocAt handler#744
davidanthoff merged 9 commits intomasterfrom
avi/documentation

Conversation

@aviatesk
Copy link
Copy Markdown
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
Copy Markdown
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?

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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