浏览代码

[display] align implementation with reference mode

closes #9103
Simon Krajewski 5 年之前
父节点
当前提交
6ca93bfa92
共有 2 个文件被更改,包括 2 次插入5 次删除
  1. 1 1
      src/compiler/haxe.ml
  2. 1 4
      src/core/displayTypes.ml

+ 1 - 1
src/compiler/haxe.ml

@@ -509,7 +509,7 @@ let do_type tctx config_macros classes =
 	(* If we are trying to find references, let's syntax-explore everything we know to check for the
 		identifier we are interested in. We then type only those modules that contain the identifier. *)
 	begin match !CompilationServer.instance,com.display.dms_kind with
-		| Some cs,DMUsage _ -> FindReferences.find_possible_references tctx cs;
+		| Some cs,(DMUsage _ | DMImplementation) -> FindReferences.find_possible_references tctx cs;
 		| _ -> ()
 	end;
 	t()

+ 1 - 4
src/core/displayTypes.ml

@@ -246,10 +246,7 @@ module DisplayMode = struct
 		match dm with
 		| DMNone -> default_compilation_settings
 		| DMDefault | DMDefinition | DMTypeDefinition | DMResolve _ | DMPackage | DMHover | DMSignature -> settings
-		| DMImplementation -> { settings with
-				dms_exit_during_typing = false;
-			}
-		| DMUsage _ -> { settings with
+		| DMUsage _ | DMImplementation -> { settings with
 				dms_full_typing = true;
 				dms_force_macro_typing = true;
 				dms_collect_data = true;