浏览代码

[display] merge core docs for constructors in signature completion

see #8061
Simon Krajewski 6 年之前
父节点
当前提交
572bc3a41f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/typing/typerDisplay.ml

+ 1 - 0
src/typing/typerDisplay.ml

@@ -195,6 +195,7 @@ let rec handle_signature_display ctx e_ast with_type =
 			in
 			[loop tl,None,PMap.empty]
 		| TInst (c,tl) | TAbstract({a_impl = Some c},tl) ->
+			Display.merge_core_doc ctx (TClassDecl c);
 			let ct,cf = get_constructor ctx c tl p in
 			let tl = (ct,cf.cf_doc,get_value_meta cf.cf_meta) :: List.rev_map (fun cf' -> cf'.cf_type,cf.cf_doc,get_value_meta cf'.cf_meta) cf.cf_overloads in
 			tl