golang/go

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

オープン

#74,793 opened on 2025/07/29

 (8 件のコメント) (2 件のリアクション) (0 人の担当者)Go (19,008 件のフォーク)batch import
FeatureRequestToolsgoplshelp wanted

Repository metrics

Stars
 (133,883 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド