Skip to content

Commit 6a88ee7

Browse files
committed
Treat Primitive_js_extern.null and Primitive_js_extern.nullable as Stdlib_Null and Stdlib_Nullable for completion
1 parent 2e4d949 commit 6a88ee7

File tree

2 files changed

+356
-8
lines changed

2 files changed

+356
-8
lines changed

analysis/src/TypeUtils.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,4 +1291,6 @@ let completionPathFromMaybeBuiltin path =
12911291
| [mainModule; "t"] when String.starts_with ~prefix:"Stdlib_" mainModule ->
12921292
(* Route Stdlib_X to Stdlib.X for proper completions without the Stdlib_ prefix *)
12931293
Some (String.split_on_char '_' mainModule)
1294+
| ["Primitive_js_extern"; "null"] -> Some ["Stdlib"; "Null"]
1295+
| ["Primitive_js_extern"; "nullable"] -> Some ["Stdlib"; "Nullable"]
12941296
| _ -> None)

0 commit comments

Comments
 (0)