Repository: TypeScript
Issue: TS crashes after a while
Labels: Needs Investigation

Type: <b>Bug</b>

Opened VsCode and working on a project. it seems to crash after a while automatically. disabled all plugins. using the latest version of vscode. the same had happened in the previous versions too. the tsconfig.json is provided below:

```
{
  "compilerOptions": {
    "module": "esnext",
    "jsx": "preserve",
    "importHelpers": true,
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,

    "baseUrl": ".",
    "esModuleInterop": true,
    "lib": ["ESNext"],
    "moduleResolution": "node",
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "removeComments": true,
    "sourceMap": true,
    "outDir": "./dist",
    "target": "esnext",
    "noImplicitAny": true, 
    // Tells TypeScript to read JS files, as
    // normally they are ignored as source files
    "allowJs": true,
    // Generate d.ts files
    "declaration": true,
    // This compiler run should
    // only output d.ts files
    "emitDeclarationOnly": true,
    // go to js file when using IDE functions like
    // "Go to Definition" in VSCode
    "declarationMap": true,
    "strict": true,
    "resolveJsonModule": true,
    "paths": {
      "@io-commons/*": ["./io-common/*"],
      "@middy-core": ["./io-common/node_modules/@middy/core"]
    }
  },
  "include": ["./**/*.ts"],
  "exclude": [
    "node_modules/**/*",
    ".serverless/**/*",
    ".webpack/**/*",
    ".esbuild/**/*",
    "_warmup/**/*",
    ".vscode/**/*"
  ],
  "ts-node": {
    "require": ["tsconfig-paths/register"]
  }
}
```

there are multiple tsconfig.json files that extend this config. the extended tsconfig mostly looks like this:
```
{
  "extends": "../../tsconfig.json",
  "include": ["src/**/*.ts"]
}
```
package.json:

```
{
  ....
  "dependencies": {
    "@types/node": "^18.7.14",
    "@typescript-eslint/eslint-plugin": "5.30.5",
    "@typescript-eslint/parser": "5.30.5",
    "aws-sdk": "2.829.0",
    "aws-xray-sdk": "3.2.0",
    "axios": "0.21.1",
    "eslint-config-airbnb-base": "14.2.1",
    "eslint-import-resolver-typescript": "3.5.0",
    "eslint-plugin-import": "2.22.1",
    "eslint-webpack-plugin": "2.5.3",
    "hls-parser": "0.10.4",
    "ini": "^2.0.0",
    "mime-types": "2.1.29",
    "serverless-bundle": "5.0.2",
    "serverless-domain-manager": "5.1.0",
    "serverless-dynamodb-local": "0.2.39",
    "serverless-iam-roles-per-function": "3.1.0",
    "serverless-offline": "8.2.0",
    "smpte-timecode": "1.2.3",
    "tsconfig-paths": "^3.12.0",
    "typescript": "4.7.2"
  },
  "devDependencies": {
    "@typescript-eslint/parser": "^5.30.5",
    "@babel/preset-typescript": "^7.17.12",
    "@types/jest": "^28.1.3",
    "@typescript-eslint/eslint-plugin": "^5.30.5",
    "eslint": "^7.24.0",
    "eslint-import-resolver-typescript": "^3.2.4",
    "eslint-plugin-import": "^2.22.1",
    "jest": "26.6.3",
    "jest-dynalite": "3.3.1"
  }
}
```


VS Code version: Code 1.71.2 (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:12:14.256Z)
OS version: Linux x64 5.15.0-46-generic
Modes:
Sandboxed: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 7 5800H with Radeon Graphics (16 x 400)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: disabled_software<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|2, 2, 2|
|Memory (System)|14.98GB (10.15GB free)|
|Process Argv|--unity-launch --crash-reporter-id c5987c90-c1d7-4740-a95f-0cf701d13d55|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|ubuntu|
|XDG_CURRENT_DESKTOP|Unity|
|XDG_SESSION_DESKTOP|ubuntu|
|XDG_SESSION_TYPE|x11|
</details>Extensions: none<details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411cf:30557515
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
hb751961:30553087
dsvsc012cf:30540253
azure-dev_surveyone:30548225
2144e591:30553903
fc301958:30567733

```

</details>

<!-- generated by issue reporter -->