File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -562,9 +562,7 @@ let completionForExporteds iterExported getDeclared ~prefix ~exact ~env
562
562
with
563
563
deprecated = declared.deprecated;
564
564
docstring = declared.docstring;
565
- modulePath =
566
- [env.file.moduleName]
567
- @ ModulePath. toPathWithoutTip declared.modulePath;
565
+ modulePath = ModulePath. toFullPath declared.modulePath;
568
566
}
569
567
:: ! res
570
568
| _ -> () );
@@ -1292,7 +1290,7 @@ let rec getCompletionsForContextPath ~package ~opens ~rawOpens ~allFiles ~pos
1292
1290
~env ~exact: true ~scope
1293
1291
|> completionsGetTypeEnv
1294
1292
with
1295
- | Some (typ , _envFromCompletion , completionItemModulePath ) -> (
1293
+ | Some (typ , _envFromCompletionItem , completionItemModulePath ) -> (
1296
1294
let {
1297
1295
arrayModulePath;
1298
1296
optionModulePath;
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ module ModulePath = struct
23
23
in
24
24
loop modulePath [tipName]
25
25
26
- let toPathWithoutTip modulePath : path =
26
+ let toFullPath modulePath : path =
27
27
let rec loop modulePath current =
28
28
match modulePath with
29
- | File _ -> current
29
+ | File ( _ , fileModule ) -> fileModule :: current
30
30
| IncludedModule (_ , inner ) -> loop inner current
31
31
| ExportedModule {name; modulePath = inner } -> loop inner (name :: current)
32
32
| NotVisible -> current
You can’t perform that action at this time.
0 commit comments