microsoft / microsoft/TypeScript
TS variable type changes depending on whether typing triggers intellisense or ctrl+space triggers
Open
Nobody has claimed this yet.
Awaiting More Feedback
Suggestion
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
TS Template added by @mjbvz
TypeScript Version: 4.0.0-dev.20200615
Search Terms
- suggest, completions
- type guards
Repro below, note that at the end I press esc then ctrl+space to trigger intellisense again.

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
The issue names no source files or tests. Start by reproducing the behavior with TypeScript 4.0.0-dev.20200615, comparing normal typing with Esc followed by Ctrl+Space as shown in the recording. Done means the variable's type and completion results remain consistent regardless of how IntelliSense is triggered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100