lean4-htt/src/Lean/Language
Mario Carneiro 5814a45d44
fix: mainModuleName should use srcSearchPath (#4066)
As [reported on
Zulip](https://leanprover.zulipchat.com/#narrow/stream/341532-lean4-dev/topic/Find.20references.20broken.20in.20lean.20core/near/437051935).
The `mainModuleName` was being set incorrectly when browsing lean core
sources, resulting in failure of cross-file server requests like "Find
References". Because the `srcSearchPath` is generated asynchronously, we
store it as a `Task Name` which is resolved some time before the header
is finished parsing. (I don't think the `.get` here will ever block,
because the srcSearchPath will be ready by the time the initial command
snap is requested.)

---------

Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
2024-05-08 12:34:27 +00:00
..
Basic.lean fix: mainModuleName should use srcSearchPath (#4066) 2024-05-08 12:34:27 +00:00
Lean.lean fix: mainModuleName should use srcSearchPath (#4066) 2024-05-08 12:34:27 +00:00