浏览代码

[display] populate server/modules from hxb since there's only that atm

Rudy Ges 1 年之前
父节点
当前提交
31f08b94a6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/context/display/displayJson.ml

+ 2 - 2
src/context/display/displayJson.ml

@@ -322,8 +322,8 @@ let handler =
 			let sign = Digest.from_hex (hctx.jsonrpc#get_string_param "signature") in
 			let cc = hctx.display#get_cs#get_context sign in
 			let l = Hashtbl.fold (fun _ m acc ->
-				if m.m_extra.m_kind <> MFake then jstring (s_type_path m.m_path) :: acc else acc
-			) cc#get_modules [] in
+				if m.mc_extra.m_kind <> MFake then jstring (s_type_path m.mc_path) :: acc else acc
+			) cc#get_hxb [] in
 			hctx.send_result (jarray l)
 		);
 		"server/module", (fun hctx ->