File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -294,25 +294,25 @@ let extractDocs ~path ~debug =
294
294
let id =
295
295
(modulePath |> List. rev |> List. hd) ^ " ." ^ item.name
296
296
in
297
- let items =
297
+ let items, internalDocstrings =
298
298
match
299
299
ProcessCmt. fileForModule ~package: full.package
300
300
aliasToModule
301
301
with
302
- | None -> []
302
+ | None -> ( [] , [] )
303
303
| Some file ->
304
304
let docs =
305
305
extractDocsForModule ~module Path:[id] file.structure
306
306
in
307
- docs.items
307
+ ( docs.items, docs.docstring)
308
308
in
309
309
Some
310
310
(ModuleAlias
311
311
{
312
312
id;
313
313
name = item.name;
314
314
items;
315
- docstring = item.docstring |> List. map String. trim;
315
+ docstring = item.docstring @ internalDocstrings |> List. map String. trim;
316
316
})
317
317
| Module (Structure m ) ->
318
318
(* module Whatever = {} in res or module Whatever: {} in resi. *)
Original file line number Diff line number Diff line change 12
12
13
13
## master
14
14
15
+ #### :bug : Bug Fix
16
+
17
+ - Fix docstrings for module alias. Get internal docstrings of module file. https://github.com/rescript-lang/rescript-vscode/pull/878
18
+
15
19
## 0.3.0
16
20
17
21
#### :rocket : New Feature
You can’t perform that action at this time.
0 commit comments