Skip to content

Commit aeaf2d4

Browse files
committed
Enable currentFullyQualifiedPathModuleCompletions
1 parent fdfc485 commit aeaf2d4

20 files changed

+1275
-87
lines changed

analysis/src/CompletionBackEnd.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,12 +1184,11 @@ and getCompletionsForContextPath ~debug ~full ~opens ~rawOpens ~pos ~env ~exact
11841184
in
11851185
(* Add completions from current fully qualified path module *)
11861186
let currentFullyQualifiedPathModuleCompletions =
1187-
[]
1188-
(* completionsForPipeFromCompletionPath ~envCompletionIsMadeFrom
1187+
completionsForPipeFromCompletionPath ~envCompletionIsMadeFrom
11891188
~opens:[] ~pos ~scope ~debug ~prefix ~env ~rawOpens ~full cursorPath
11901189

11911190
|> TypeUtils.filterPipeableFunctions ~synthetic:true ~env ~full
1192-
~targetTypeId:mainTypeId *)
1191+
~targetTypeId:mainTypeId
11931192
in
11941193
jsxCompletions @ pipeCompletions @ extraCompletions
11951194
@ currentModuleCompletions @ globallyConfiguredCompletions

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,11 @@ CPPipe pathFromEnv:Test found:true
1010
Path Test.
1111
Path
1212
Path CompletePrioritize1.
13-
[]
13+
[{
14+
"label": "Test.name",
15+
"kind": 12,
16+
"tags": [],
17+
"detail": "t => int",
18+
"documentation": null
19+
}]
1420

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ CPPipe pathFromEnv:Test found:true
1010
Path Test.
1111
Path
1212
Path CompletePrioritize2.
13-
[]
13+
[{
14+
"label": "Test.add",
15+
"kind": 12,
16+
"tags": [],
17+
"detail": "t => int",
18+
"documentation": null
19+
}]
1420

1521
Complete src/CompletePrioritize2.res 12:5
1622
posCursor:[12:5] posNoWhite:[12:4] Found expr:[12:3->12:5]

0 commit comments

Comments
 (0)