Repository: TypeScript
Issue: TS Server fatal error:  Debug Failure. False expression.
Labels: Bug,Crash

Issue Type: <b>Bug</b>

❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️

**TypeScript Version:** 4.4.3

**Steps to reproduce crash**
1. Closing files.

**TS Server Log**
❗️Server logging disabled. To help us fix crashes like this, please enable logging by setting:
```json
"typescript.tsserver.log": "verbose"
```
After enabling this setting, future crash reports will include the server log.

**TS Server Error Stack**
Server: `semantic`
```
Error: Debug Failure. False expression.
    at ProjectService.forEachConfigFileLocation (~\AppData\Local\Programs\Microsoft VS Code - Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:164127:26)
    at ProjectService.stopWatchingConfigFilesForClosedScriptInfo (~\AppData\Local\Programs\Microsoft VS Code - Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:164049:22)
    at ProjectService.closeOpenFile (~\AppData\Local\Programs\Microsoft VS Code - Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:163877:22)
    at ProjectService.closeClientFile (~\AppData\Local\Programs\Microsoft VS Code - Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:165729:42)
    at ProjectService.applyChangesInOpenFiles (~\AppData\Local\Programs\Microsoft VS Code - Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:165785:73)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (~\AppData\Local\Programs\Microsoft VS Code - Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:166949:46)
    at ~\AppData\Local\Programs\Microsoft VS Code - Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:168880:88
    at IOSession.Session.executeWithRequestId (~\AppData\Local\Programs\Microsoft VS Code - Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:168871:28)
    at IOSession.Session.executeCommand (~\AppData\Local\Programs\Microsoft VS Code - Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:168880:33)
    at IOSession.Session.onMessage (~\AppData\Local\Programs\Microsoft VS Code - Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:168906:35)
    at Interface.<anonymous> (~\AppData\Local\Programs\Microsoft VS Code - Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:171511:31)
    at Interface.emit (events.js:315:20)
    at Interface._onLine (readline.js:337:10)
    at Interface._normalWrite (readline.js:482:12)
    at Socket.ondata (readline.js:194:10)
    at Socket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at Socket.Readable.push (internal/streams/readable.js:223:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
```

VS Code version: Code - Insiders 1.61.0-insider (c28c86fcd12e4f8693d6569deadfc740dcf8f55b, 2021-09-20T07:28:25.574Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz (16 x 2904)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>skia_renderer: enabled_on<br>video_decode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|15.75GB (4.82GB free)|
|Process Argv|--crash-reporter-id 5f9e326c-2a01-458b-95a4-f411641d6f56|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (69)</summary>

Extension|Author (truncated)|Version
---|---|---
better-comments|aar|2.1.0
jenkins-status|ale|4.2.1
jest-snippets|and|1.8.0
conflict-squeezer|ang|1.0.1
icons-carbon|ant|0.2.4
vscode-apollo|apo|1.19.6
atlascode|atl|2.9.1
path-intellisense|chr|2.4.0
cssrem|cip|2.4.3
vscode-jq-playground|dav|4.2.0
vscode-eslint|dba|2.1.25
gitlens|eam|11.6.0
EditorConfig|Edi|0.16.4
vscode-great-icons|emm|2.1.79
prettier-vscode|esb|9.0.0
vscode-firefox-debug|fir|2.9.4
linter|fna|0.0.11
auto-rename-tag|for|0.1.8
vuetify-snippets|Gai|0.1.2
gitlab-workflow|Git|3.31.0
vscode-graphql|Gra|0.3.18
vue-snippets|hol|1.0.4
rest-client|hum|0.24.5
output-colorizer|IBM|0.1.2
npm|ide|0.1.2
vscode-postfix-ts|ipa|1.9.4
jenkins-pipeline-linter-connector|jan|1.2.0
volar|joh|0.27.23
vscode-typescript-vue-plugin|joh|0.27.23
jq-syntax-highlighting|jq-|0.0.2
vscode-dependency-cruiser|jua|0.0.1
vscode-codemetrics|kis|1.24.0
render-crlf|med|1.5.21
fluent-icons|mig|0.0.12
dotenv|mik|1.0.1
theme-monokai-pro-vscode|mon|1.1.19
vscode-scss|mrm|0.10.0
vscode-language-pack-de|MS-|1.61.0
remote-ssh|ms-|0.65.8
remote-ssh-edit|ms-|0.65.8
remote-wsl|ms-|0.58.2
powershell|ms-|2021.9.0
test-adapter-converter|ms-|0.1.2
vsliveshare|ms-|1.0.4836
vsliveshare-audio|ms-|0.1.91
gremlins|nho|0.26.0
angular-console|nrw|17.10.0
vscode-jest|Ort|4.1.2
vscode-versionlens|pfl|1.0.9
material-icon-theme|PKi|4.10.0
polacode|pnp|0.3.4
jenkinsfile|rec|1.2.0
vscode-yaml|red|0.22.0
LiveServer|rit|5.6.1
mdx|sil|0.1.0
sonarlint-vscode|Son|2.2.0
domain-graph-vscode|ste|0.0.6
addDocComments|ste|0.0.8
vscode-stylelint|sty|0.86.0
language-stylus|sys|1.13.0
jenkins-jack|tab|1.1.6
stylus-supremacy|thi|2.16.0
intellicode-api-usage-examples|Vis|0.0.5
vscodeintellicode|Vis|1.2.14
vscode-conventional-commits|viv|1.22.0
vscode-icons|vsc|11.6.0
vuetify-vscode|vue|0.2.0
quokka-vscode|Wal|1.0.401
eno|Wsc|2.3.53

(7 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30291487
pythontb:30258533
pythonvspyt551cf:30291413
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
pythonvsuse255:30319630
vscod805cf:30301675
pythonvspyt200:30323110
vsccppwt:30364496
pythonvssor306:30340298
bridge0708:30335490
pygetstartedt2:30353727
dockerwalkthru:30364418
bridge0723:30353136
pythonrunftest32:30365365
pythonf5test824:30361779
javagetstartedt:30350119
pythonvspyt187:30365360
pydsgst2:30361790
vssur157:30367808

```

</details>

<!-- generated by issue reporter -->