Repository: vscode
Issue: VSCode becomes laggy after using it for some time (macOS Ventura)
Labels: bug,freeze-slow-crash-leak,macos,perf,confirmation-pending


Type: <b>Performance Issue</b>

Hi! I upgraded to the macOS Ventura beta a few months ago (which was probably a mistake), and I've had problems with VSCode being laggy ever since. I primarily use VSCode to compile LaTeX, but I've run into this issue while using it with TypeScript before (so it doesn't seem to be related to a particular extension). The problem I'm experiencing is similar to what might happen if there is a memory leak. When I first open the app, everything is fine, and I experience no lag whatsoever. However, after writing code for maybe 15-30 minutes, I typing and highlighting code becomes pretty laggy. If I restart the application (quit and reopen), things return to normal. I'm sorry I can't provide much more information, and I doubt I'd be able to reproduce this problem on someone else's computer.

VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:16:30.254Z)
OS version: Darwin x64 22.2.0
Modes:
Sandboxed: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>metal: disabled_off<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: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|2, 2, 2|
|Memory (System)|16.00GB (1.50GB free)|
|Process Argv|--crash-reporter-id 919a54c2-c935-41b4-956b-39224562195e|
|Screen Reader|no|
|VM|0%|
</details><details>
<summary>Process Info</summary>

```
CPU %	Mem MB	   PID	Process
  102	   164	 21312	code main
    2	    66	 21316	   gpu-process
    0	    16	 21318	   utility-network-service
    0	   295	 21319	   window (hw2.tex — math-215a)
    0	    98	 21326	   extensionHost
    0	    82	 21337	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/frankzheng/.vscode/extensions/james-yu.latex-workshop-8.29.0/out/src/components/parser/syntax_worker.js
    0	    33	 21338	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/frankzheng/.vscode/extensions/james-yu.latex-workshop-8.29.0/out/src/providers/preview/mathjaxpool_worker.js
    0	   115	 21328	   shared-process
    0	    33	 21329	     ptyHost
    0	     0	 21349	       /bin/zsh -il
    0	    33	 21339	     fileWatcher
    0	     0	 29166	     /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	    49	 21342	   window (undefined)
    0	   213	 21345	   window (undefined)
   10	    66	 29163	   issue-reporter
```

</details>
<details>
<summary>Workspace Info</summary>

```
|  Window (hw2.tex — math-215a)
|    Folder (math-215a): 20 files
|      File types: aux(2) fdb_latexmk(2) fls(2) log(2) out(2) pdf(2) gz(2)
|                  tex(2) sty(2) DS_Store(1)
|      Conf files:;
```

</details>
<details><summary>Extensions (15)</summary>

Extension|Author (truncated)|Version
---|---|---
vsc-material-theme|Equ|33.5.0
vsc-material-theme-icons|equ|2.4.0
prettier-vscode|esb|9.9.0
reasonml|fre|1.0.38
latex-workshop|Jam|8.29.0
python|ms-|2022.16.1
vscode-pylance|ms-|2022.10.40
vscode-jupyter-cell-tags|ms-|0.1.6
vscode-jupyter-slideshow|ms-|0.1.5
remote-ssh|ms-|0.90.1
remote-ssh-edit|ms-|0.84.0
cpptools|ms-|1.12.4
material-icon-theme|PKi|4.21.0
intellicode-api-usage-examples|Vis|0.2.6
material-theme|zhu|3.15.6

(3 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1cf:30587006
fc301958:30595537
2e4cg342:30596373

```

</details>

<!-- generated by issue reporter -->