golang/go

x/tools/gopls: Symbols: use Levenshtein distance for ranking

开放

#74,793 创建于 2025年7月29日

 (8 条评论) (2 个反应) (0 位负责人)Go (19,008 个派生)batch import
FeatureRequestToolsgoplshelp wanted

仓库指标

星标
 (133,883 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

I just sought the symbol testincreemntalnope and got an empty result, even though TestIncrementalNope exists. It's 2025, I shouldn't have to spell correctly. Let's rank candidates by Levenshtein distance from the search term and include the closest n results.

See Starlark's spell.Nearest for an implementation we can use.

贡献者指南