Open torshepherd opened 1 month ago
@llvm/issue-subscribers-clangd
Author: Tor Shepherd (torshepherd)
It could also be case insensitive I just realized
Ah, one problem with this will be that headers are representable in multiple ways (absolute, root-relative, and relative). Should all of them be listed in this case? Or just do what IncludeCleaner does and use the preferred way inferred from context?
通過優化文件路勁匹配算法,使Clangd 能夠跨越目錄級別進行模糊匹配,從而提升代碼補全體驗。
Clangd's CodeCompletion for
#include
s currently does a fuzzy match but not across/
. For example,There are two issues with this: 1) folders don't make sense for includes, and 2) you have to find which folder you want to include from before moving on to the next fuzzy part of the path.
In contrast, the vscode native file picker
ctrl-p
withclASExpr
or withExpr
findsclang/AST/Expr.h
as expected.There are two ways we could improve the clangd file completion experience:
Expr.h
findsclang/AST/Expr.h
/
, soclASExpr.h
findsclang/AST/Expr.h