瀏覽代碼

[display] ignore version() args for hover

makes the behavior consistent with hover on regular functions, which also doesn't require the arguments to be correct
Jens Fischer 6 年之前
父節點
當前提交
64ee23ad74
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/typing/typeloadParse.ml

+ 1 - 1
src/typing/typeloadParse.ml

@@ -172,7 +172,7 @@ module ConditionDisplay = struct
 		let tpair t = (t,CompletionItem.CompletionType.from_type (fun _ -> Imported) t) in
 		let check_expr (e,p) =
 			match e with
-				| ECall ((EConst (Ident "version"),p),[(EConst (String(s,_)), _)])  ->
+				| ECall ((EConst (Ident "version"),p),_)  ->
 					let t = TFun ([("s",false,com.basic.tstring)],t_semver) in
 					if check_position p then
 						DisplayException.raise_hover (CompletionItem.make_ci_class_field {