Skip to content

Commit 97b9f62

Browse files
committed
Uncomment filter
1 parent 01a5b5b commit 97b9f62

File tree

2 files changed

+2
-50
lines changed

2 files changed

+2
-50
lines changed

analysis/src/CompletionBackEnd.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ and getCompletionsForContextPath ~debug ~full ~opens ~rawOpens ~pos ~env ~exact
11241124
~pos ~scope ~debug ~prefix ~env ~rawOpens ~full completionPath
11251125
|> TypeUtils.filterPipeableFunctions ~env ~full ~synthetic
11261126
~targetTypeId:mainTypeId
1127-
(* |> List.filter (fun (c : Completion.t) ->
1127+
|> List.filter (fun (c : Completion.t) ->
11281128
(* If we're completing from the current module then we need to care about scope.
11291129
This is automatically taken care of in other cases. *)
11301130
if isFromCurrentModule then
@@ -1138,7 +1138,7 @@ and getCompletionsForContextPath ~debug ~full ~opens ~rawOpens ~pos ~env ~exact
11381138
| _ -> false)
11391139
|> Option.is_some
11401140
| _ -> false
1141-
else true) *)
1141+
else true)
11421142
in
11431143
(* Extra completions can be drawn from the @editor.completeFrom attribute. Here we
11441144
find and add those completions as well. *)

tests/analysis_tests/tests/src/expected/DotPipeCompletionSpec.res.txt

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -275,18 +275,6 @@ Path DotPipeCompletionSpec.SomeOtherModule.
275275
"tags": [],
276276
"detail": "string",
277277
"documentation": {"kind": "markdown", "value": "```rescript\nnname: string\n```\n\n```rescript\ntype typeOutsideModule = {nname: string}\n```"}
278-
}, {
279-
"label": "->outOfScope",
280-
"kind": 12,
281-
"tags": [],
282-
"detail": "typeOutsideModule => typeOutsideModule",
283-
"documentation": null,
284-
"sortText": "outOfScope",
285-
"insertText": "->outOfScope",
286-
"additionalTextEdits": [{
287-
"range": {"start": {"line": 80, "character": 6}, "end": {"line": 80, "character": 7}},
288-
"newText": ""
289-
}]
290278
}, {
291279
"label": "->doWithTypeOutsideModule",
292280
"kind": 12,
@@ -299,18 +287,6 @@ Path DotPipeCompletionSpec.SomeOtherModule.
299287
"range": {"start": {"line": 80, "character": 6}, "end": {"line": 80, "character": 7}},
300288
"newText": ""
301289
}]
302-
}, {
303-
"label": "->cc",
304-
"kind": 12,
305-
"tags": [],
306-
"detail": "typeOutsideModule => typeOutsideModule",
307-
"documentation": null,
308-
"sortText": "cc",
309-
"insertText": "->cc",
310-
"additionalTextEdits": [{
311-
"range": {"start": {"line": 80, "character": 6}, "end": {"line": 80, "character": 7}},
312-
"newText": ""
313-
}]
314290
}, {
315291
"label": "->SomeOtherModule.getNName",
316292
"kind": 12,
@@ -513,18 +489,6 @@ Path DotPipeCompletionSpec.SomeOtherModule.
513489
"tags": [],
514490
"detail": "string",
515491
"documentation": {"kind": "markdown", "value": "```rescript\nnname: string\n```\n\n```rescript\ntype typeOutsideModule = {nname: string}\n```"}
516-
}, {
517-
"label": "->outOfScope",
518-
"kind": 12,
519-
"tags": [],
520-
"detail": "typeOutsideModule => typeOutsideModule",
521-
"documentation": null,
522-
"sortText": "outOfScope",
523-
"insertText": "->outOfScope",
524-
"additionalTextEdits": [{
525-
"range": {"start": {"line": 101, "character": 6}, "end": {"line": 101, "character": 7}},
526-
"newText": ""
527-
}]
528492
}, {
529493
"label": "->doWithTypeOutsideModule",
530494
"kind": 12,
@@ -537,18 +501,6 @@ Path DotPipeCompletionSpec.SomeOtherModule.
537501
"range": {"start": {"line": 101, "character": 6}, "end": {"line": 101, "character": 7}},
538502
"newText": ""
539503
}]
540-
}, {
541-
"label": "->cc",
542-
"kind": 12,
543-
"tags": [],
544-
"detail": "typeOutsideModule => typeOutsideModule",
545-
"documentation": null,
546-
"sortText": "cc",
547-
"insertText": "->cc",
548-
"additionalTextEdits": [{
549-
"range": {"start": {"line": 101, "character": 6}, "end": {"line": 101, "character": 7}},
550-
"newText": ""
551-
}]
552504
}, {
553505
"label": "->SomeOtherModule.getNName",
554506
"kind": 12,

0 commit comments

Comments
 (0)