Auto-complete should be type-sensitive
- 主要言語
- Haskell
- スター
- 1.3k
- フォーク
- 201
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
We can do a better job of showing only the auto-complete options that might fit in a certain context. For example, we could look around the current cursor position to see if the user is typing a function call, and if so, look up the type of the function, and only show function names if they might eventually lead to the desired result type.
This would necessarily be a heuristic, since the user is typing the program, so it's guaranteed to not be syntactically correct most of the time; but there's a lot we can do.
コントリビューションガイド
調査の方向性
まず、オートコンプリートの実装とカーソルコンテキストを処理するコードを見つけます。この issue では、特定のファイルやテストは指定されていません。現在どのように候補が収集されているかを読み、そのうえで、不完全なプログラムに対する型依存のフィルタリングをどのように評価できるかを判断します。関連する候補がヒューリスティックに絞り込まれ、役立つ補完が妨げられなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- haskell
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100