Skip to content

Commit 5f484ba

Browse files
committed
module doc string hover issues
1 parent d18d6b5 commit 5f484ba

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

Diff for: src/DocIssues.res

+6
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
let _ = SomeModule.getTestInt
2+
3+
// Hovering "Nested" does not show the doc annotation
4+
let _ = SomeModule.Nested.x
5+
6+
// ...neither does hovering NestedAgain below
7+
let _ = SomeModule.Nested.NestedAgain.y

Diff for: src/SomeModule.bs.js

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/SomeModule.res

+10
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,13 @@ Note that line breaks are displayed as \n rather than as an actual line break wh
66
...break some of the markdown capabilities too.
77
`)
88
let getTestInt = () => 123
9+
10+
@ocaml.text("This hover does not show up for the top level module.")
11+
module Nested = {
12+
let x = "123"
13+
14+
@ocaml.doc("...and neither does this hover")
15+
module NestedAgain = {
16+
let y = 123
17+
}
18+
}

0 commit comments

Comments
 (0)