Microsoft/TypeScript
Preselect completion list entries based on contextual type
Aberta
#8.198 aberto em 19 de abr. de 2016
Domain: APIHelp WantedSuggestion
Métricas do repositório
- Stars
- (108.860 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
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 :

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 :
