We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aedfc9e commit 023a74aCopy full SHA for 023a74a
analysis/src/CompletionBackEnd.ml
@@ -926,9 +926,9 @@ and getCompletionsForContextPath ~debug ~full ~opens ~rawOpens ~allFiles ~pos
926
found;
927
if pathFromEnv = [] then None
928
else if
929
- env.file.moduleName = envFromCompletionItem.file.moduleName
930
- then Some pathFromEnv
931
- else Some (envFromCompletionItem.file.moduleName :: pathFromEnv)
+ env.file.moduleName <> envFromCompletionItem.file.moduleName
+ then Some (envFromCompletionItem.file.moduleName :: pathFromEnv)
+ else Some pathFromEnv
932
| _ -> None)
933
934
in
0 commit comments