<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57690>57690</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Clangd cannot find imported C++20 module defintion
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          vagran
      </td>
    </tr>
</table>

<pre>
    In the following example:
```cpp
export module B;

import A; // <<< Trying to open definition of A
```
it is impossible to open definition of `A`. I expect it should open file of `A` module interface unit.

The project is properly setup and compilable. Tested in VSCode with clangd extension.

```
V[11:00:18.676] <<< {"id":89,"jsonrpc":"2.0","method":"textDocument/definition","params":{"position":{"character":8,"line":2},"textDocument":{"uri":"file:///home/artyom/projects/asio-awaitable-module-problem-demo/b.cppm"}}}

I[11:00:18.676] <-- textDocument/definition(89)
V[11:00:18.676] ASTWorker running Definitions on version 156 of /home/artyom/projects/asio-awaitable-module-problem-demo/b.cppm
I[11:00:18.676] --> reply:textDocument/definition(89) 0 ms
V[11:00:18.676] >>> {"id":89,"jsonrpc":"2.0","result":[]}
```

```bash
$ /opt/clang-latest/bin/clangd --version
clangd version 16.0.0 (https://github.com/llvm/llvm-project.git ee761374f797a47919ec8f9f49f9b8b1b20573e8)
Features: linux
Platform: x86_64-unknown-linux-gnu
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytVVtvozoQ_jXwYoHAhNsDD02zlfq20la7jyuDh-BdYyPbNM2_3zGQpK32tDpHR7Ic83mu34wnrebn5lERNwDptZT6JNSRwAsbJwlBdhckhyC5C4pkXd00rQi8TNo4Mmo-SyD7INtvkssuxuX2DmES0AdcJMju10WezNn7cJroCRTh0AslnNCK6J68d7jZc0RY4q1aK1p0-HdllPeaMXnEDCboUMsRO-hZ8lW8F6h7E7yEL5QD07MOyIzG4teZPCEvk9G_FmPWHycw8kw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