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 f782f32 commit 4a578bfCopy full SHA for 4a578bf
analysis/src/CompletionBackEnd.ml
@@ -459,12 +459,7 @@ let processLocalInclude includePath _loc ~prefix ~exact ~(env : QueryEnv.t)
459
(* We check all the values if their origin is the same as the include path. *)
460
match declared.modulePath with
461
| ModulePath.IncludedModule (source, _) ->
462
- let source_module_path =
463
- match Path.flatten source with
464
- | `Contains_apply -> ""
465
- | `Ok (ident, path) -> ident.name :: path |> String.concat "."
466
- in
467
-
+ let source_module_path = Path.name source in
468
if String.ends_with ~suffix:includePath source_module_path then
469
(* If this is the case we perform a similar check for the prefix *)
470
if Utils.checkName name ~prefix ~exact then
0 commit comments