Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Aug 3, 2019
1 parent 6db6e99 commit cafde2f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/datatip.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#=
@FIXME?
If we come to be able to use our full-featured components in atom-julia-client
for datatips, we may want to append method tables again.
Ref: https://github.com/JunoLab/atom-julia-client/blob/master/lib/runtime/datatip.js#L3-L9
=#

handle("datatip") do data
@destruct [mod || "Main", word] = data
docs = @errs getdocs(mod, word)
Expand All @@ -17,10 +24,10 @@ Adapted from https://github.com/JuliaLang/julia/blob/master/stdlib/REPL/src/docv
const nobinding_regex = r"No documentation found.\n\nBinding `.*` does not exist.\n"

function makedatatip(docs)
# @FIXME?: Separates code blocks from the other markdown texts in order to
# render them as code snippet text by atom-ide-ui's datatip service.
# Setting up functions to deconstruct each `Markdown.MD.content`
# into an appropriate markdown string might be preferred.
# Separates code blocks from the other markdown texts in order to render them
# as code snippet text by atom-ide-ui's datatip service.
# Setting up functions to deconstruct each `Markdown.MD.content` into
# an appropriate markdown string might be preferred.
texts = split(string(docs), codeblock_regex)
codes = searchcodeblocks(docs)

Expand Down

0 comments on commit cafde2f

Please sign in to comment.