瀏覽代碼

fix find references on static fields (see #9440)

Dan Korostelev 5 年之前
父節點
當前提交
8f2f5af799
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/context/display/findReferences.ml

+ 1 - 1
src/context/display/findReferences.ml

@@ -33,7 +33,7 @@ let find_references tctx com with_definition name pos kind =
 let collect_reference_positions com =
 	let name,pos,kind = Display.ReferencePosition.get () in
 	match kind, com.display.dms_kind with
-	| SKField (cf,Some cl_path), DMUsage (_,find_descendants,find_base) when find_descendants || find_base ->
+	| SKField (cf,Some cl_path), DMUsage (_,find_descendants,find_base) when (find_descendants || find_base) && not (has_class_field_flag cf CfStatic) ->
 		let collect() =
 			let c =
 				let rec loop = function