Repository: TypeScript
Issue: Typescript type checker gets stuck
Labels: Needs Investigation,Rescheduled

*TS Template added by @mjbvz*

**TypeScript Version**: 4.5.0-dev.20211005

**Search Terms**
- geterr
- problems 
- diagnostics

---

Issue Type: <b>Bug</b>

Please note: I tried this using the TypeScript playground, but was not able to get it to happen.

Create a new TypeScript file: 

**`test.ts`**
```ts
/**
 * Sample class
 */
export class MyClass {
    private resolvedWords = new Map<string, string>();
    constructor(readonly words: string[]) {}
}
```

Type the following line: ` private known = new Map<string, string>();` above `private resolvedWords = new Map<string, string>();`
It is important to type the line and not paste it.

Results in an error that will not go away:
![image](https://user-images.githubusercontent.com/3740137/135874991-a0488537-5307-4099-8683-ad2b8b5768c3.png)

![image](https://user-images.githubusercontent.com/3740137/135875123-1d61d4fa-0017-4ebd-a615-74093078d1d9.png)

It is not possible to "fix" the error that is not an error. The type checker seems to be stuck.

The only solution is to close the file and reopen it:
![image](https://user-images.githubusercontent.com/3740137/135875707-430a483a-388e-4b56-9c6b-1f80ecb56a5e.png)


VS Code version: Code 1.60.2 (7f6ab5485bbc008386c4386d08766667e155244e, 2021-09-22T11:59:27.195Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|2, 3, 2|
|Memory (System)|32.00GB (0.62GB free)|
|Process Argv|Spell Checker.code-workspace --crash-reporter-id 21ae0ece-62a2-4681-a5cf-c687ea23e753|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (50)</summary>

Extension|Author (truncated)|Version
---|---|---
terraform|4op|0.2.2
ada|Ada|22.0.11
commit-message-editor|ada|0.19.1
alignment|ann|0.3.0
vscode-zipfs|arc|2.3.0
vscode-intelephense-client|bme|1.7.1
better-toml|bun|0.3.2
scala|dal|0.0.5
vscode-eslint|dba|2.1.25
gitlens-insiders|eam|2021.10.405
EditorConfig|Edi|0.16.4
vscode-npm-script|eg2|0.3.22
prettier-vscode|esb|9.0.0
vscode-graphql|Gra|0.3.18
mediawiki|jak|2.1.0
latex-workshop|Jam|8.20.2
svg|joc|1.4.12
language-haskell|jus|3.4.0
vscode-cfml|Kam|0.5.3
linter-gfortran|krv|2.3.0
remotefs|lix|0.0.16
Kotlin|mat|1.7.1
vscode-apache|mrm|1.2.0
vscode-puglint|mrm|2.3.0
vscode-docker|ms-|1.17.0
python|ms-|2021.9.1246542782
vscode-pylance|ms-|2021.9.4
jupyter|ms-|2021.8.2041215044
jupyter-keymap|ms-|1.0.0
remote-containers|ms-|0.194.3
azure-account|ms-|0.9.9
cpptools|ms-|1.6.0
vsonline|ms-|1.0.3076
marko|pca|0.4.0
java|red|0.82.0
es6-mocha-snippets|spo|0.2.2
avro|str|0.5.0
code-spell-checker|str|2.0.8
code-spell-checker-dutch|str|0.2.9
code-spell-checker-german|str|2.0.1
code-spell-checker-persian|str|0.1.9
code-spell-checker-portuguese-brazilian|str|2.0.2
code-spell-checker-russian|str|2.0.1
code-spell-checker-spanish|str|2.0.2
code-spell-checker-swedish|str|1.0.1
code-spell-checker-turkish|str|0.1.9
code-spell-checker-ukrainian|str|0.1.10
hunspell|str|0.0.2
vscodeintellicode|Vis|1.2.14
vscode-java-debug|vsc|0.36.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30358481
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
vsccppwtct:30364498
pythonvssor306:30344512
bridge0708:30335490
pygetstartedt2:30371810
dockerwalkthru:30370836
bridge0723:30353136
pythonrunftest32:30373476
pythonf5test824:30373475
javagetstartedc:30364665
pythonvspyt187:30373474
pydsgsc2:30361791
vsqsis400:30374798
vsaa593:30376534

```

</details>

<!-- generated by issue reporter -->