microsoft / microsoft/TypeScript

TS variable type changes depending on whether typing triggers intellisense or ctrl+space triggers

Open
#39,085 4 comments 0 reactions 0 assignees View on GitHub

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.

recording (11)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.