Microsoft/TypeScript

Preselect completion list entries based on contextual type

开放

#8,198 创建于 2016年4月19日

 (2 条评论) (0 个反应) (0 位负责人)TypeScript (13,395 个派生)batch import
Domain: APIHelp WantedSuggestion

仓库指标

星标
 (108,860 个星标)
PR 合并指标
 (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

贡献者指南