소스 검색

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