Microsoft/TypeScript

Preselect completion list entries based on contextual type

Open

#8,198 建立於 2016年4月19日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)TypeScript (6,726 fork)batch import
Domain: APIHelp WantedSuggestion

倉庫指標

Star
 (48,455 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 9 個 PR)

描述

It should be cool if tsserver could provide a new command guesstypes to give the capability to guess parameter types when completion is applied

In other word, I would like to support the same feature that I have done with tern

For instance if you open completion for document and select addEventListener :

Tern completion

When you apply completion, I would like call a tsserver command 'guesstypes' to retrieve variables, functions for each function parameters. Here a screenshot which shows a list of variable with string type for the addEventListener type argument :

Tern completion

貢獻者指南