[all-commits] [llvm/llvm-project] e030de: [clangd] Pass file when possible to resolve URI.
Haojian Wu via All-commits
all-commits at lists.llvm.org
Wed Feb 17 06:39:44 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e030de7e5a28de1bcc337ede445600f8d282d252
https://github.com/llvm/llvm-project/commit/e030de7e5a28de1bcc337ede445600f8d282d252
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2021-02-17 (Wed, 17 Feb 2021)
Changed paths:
M clang-tools-extra/clangd/index/MemIndex.cpp
M clang-tools-extra/clangd/index/dex/Dex.cpp
Log Message:
-----------
[clangd] Pass file when possible to resolve URI.
Some URI scheme needs the hint path to do a correct resolution, we pass
one of the open files as hint path.
This is not perfect, and it might not work for opening files across
project, but it would fix a bug with our internal scheme.
in the long run, removing URIs from all the index internals is a more proper fix.
Differential Revision: https://reviews.llvm.org/D96844
More information about the All-commits
mailing list