microsoft / microsoft/TypeScript
Heuristic/loose completions for the 'any' type
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
Motivation
Today, if you have a value of type 'any', dotting off of the value and requesting members for completion will return nothing back. The original motivation for this was that we should never risk giving users incorrect completions.
This is great for a fully typed TypeScript project. However, for those migrating to TypeScript, as well as those who need to drop down to any fairly frequently, this can be slightly frustrating.
For those used to the JS editing experience in editors like Sublime where they just "got completions", the current behavior might be seen as unattractive.
Proposal
We should consider adding a language service option for users to get "loose" completions akin to what we give in the Salsa language service.
We can still keep the warning for each completion, but we should provide completions with a builder.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the proposal and comparing the existing Salsa language-service behavior mentioned in the issue. Determine the scope of a language-service option for loose completions, including how warnings should remain attached and what completion behavior would establish that the feature is complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100