google / google/codeworld

Auto-complete should be type-sensitive

オープン
#34 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。