golang/go

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

Open

#74,793 建立於 2025年7月29日

在 GitHub 查看
 (8 留言) (2 反應) (0 負責人)Go (133,883 star) (19,008 fork)batch import
FeatureRequestToolsgoplshelp wanted

描述

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.

貢獻者指南