vscode: `sanitizeRenderedMarkdown` blocks the renderer
Type: Performance Issue
So when i am using the vs code it is gettin slower the code gets delayed while i am typing
VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:28:19.990Z) OS version: Windows_NT x64 10.0.22621 Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Intel® Core™ i5-1035G1 CPU @ 1.00GHz (8 x 1190) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled |
| Load (avg) | undefined |
| Memory (System) | 7.77GB (1.08GB free) |
| Process Argv | –crash-reporter-id 3e9864da-ab68-48ef-9006-85a7d4bf5c91 |
| Screen Reader | no |
| VM | 40% |
Process Info
CPU % Mem MB PID Process
0 124 1472 code main
0 100 4384 ptyHost
0 7 2840 conpty-agent
0 86 4372 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
0 78 11568 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
0 7 14952 conpty-agent
0 94 4500 shared-process
0 26 6228 crashpad-handler
0 94 7084 fileWatcher [1]
0 432 9636 window [1] (code.ipynb - space_titanic - Visual Studio Code)
0 37 9996 utility-network-service
0 193 10040 window
0 103 11376 window [2] (Issue Reporter)
0 172 12700 extensionHost [1]
0 245 1240 electron-nodejs (JKRwrFlIV.js )
0 9 15384 C:\WINDOWS\system32\conhost.exe 0x4
0 299 8320 electron-nodejs (bundle.js )
0 16 9728 d:\anaconda\envs\machine_learning\python.exe c:\Users\lenovo\.vscode\extensions\ms-toolsai.jupyter-2024.1.0-win32-x64\pythonFiles\vscode_datascience_helpers\kernel_interrupt_daemon.py --ppid 12700
0 11 9408 C:\WINDOWS\system32\conhost.exe 0x4
0 95 10028 "D:\Microsoft VS Code\Code.exe" "d:\Microsoft VS Code\resources\app\extensions\markdown-language-features\server\dist\node\workerMain" --node-ipc --clientProcessId=12700
0 33 17236 d:\anaconda\envs\machine_learning\python.exe c:\Users\lenovo\.vscode\extensions\ms-python.isort-2023.10.1\bundled\tool\lsp_server.py
0 10 9476 C:\WINDOWS\system32\conhost.exe 0x4
0 190 15716 gpu-process
Workspace Info
| Window (code.ipynb - space_titanic - Visual Studio Code)
| Folder (space_titanic): 8 files
| File types: csv(3) ipynb(1) txt(1)
| Conf files:;
Extensions (19)
| Extension | Author (truncated) | Version |
|---|---|---|
| insert-unicode | bru | 0.15.1 |
| doxdocgen | csc | 1.4.0 |
| prettier-vscode | esb | 10.1.0 |
| code-runner | for | 0.12.1 |
| vscode-drawio | hed | 1.6.6 |
| better-cpp-syntax | jef | 1.17.2 |
| rainbow-csv | mec | 3.11.0 |
| vscode-html-format | moh | 0.1.6 |
| isort | ms- | 2023.10.1 |
| python | ms- | 2023.22.1 |
| cmake-tools | ms- | 1.16.32 |
| cpptools | ms- | 1.19.2 |
| cpptools-extension-pack | ms- | 1.3.0 |
| excalidraw-editor | pom | 3.7.1 |
| tom | 1.2.2 | |
| cmake | twx | 0.0.17 |
| vscode-java-debug | vsc | 0.56.0 |
| vscode-java-dependency | vsc | 0.23.4 |
| vscode-maven | vsc | 0.44.0 |
(2 theme extensions excluded)
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
a9j8j154:30646983
962ge761:30951796
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
dsvsc019b:30953937
3ef8e399:30949928
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Reactions: 5
- Comments: 31 (13 by maintainers)
Working with torch, matplotlib, sklearn in WSL. When you type parameters (for example plt.figure(figsize= ) VS Code freezes for about 3-5 seconds.
My PC spec is pretty decent r9 5950x, 64gb ram, nvme 980 pro for wsl. So, it can’t be hardware issues. And there was no problem before I updated python extension to v2024.0.1 about 3 days ago.
I’ve been trying to reproduce my issue for about a week, but I’ve either stopped having the issue, or I’m not able to spend enough time. In my case, the issue would start up after an hour or two of working, and I’ve only had time for shorter dev sessions this week.
To clarify my symptoms: the application would seem to freeze while typing anything that might cause a linter popup for auto competition, especially when getting the doc strings for a function. By “freeze” I mean that it would stop accepting mouse and keyboard input. However, keyboard input was still tracked, as after the freeze, the keyboard input I typed while frozen would appear.
When I attempted to get profile information to share, I saw long jobs that I think were in an animation category. I wish I had taken a screenshot. If I’m able to spend enough time to recreate the issue I’ll report back, but for now I’m not able to replicate it.
Jason Secrest
On Tue, Feb 20, 2024 at 8:56 AM Johannes Rieken @.***> wrote:
Same issue here, I work on WSL. I find that this happens for example when I start typing the function like pd.to_datetime(), regardless of whether I am working in a notebook or a .py file. Maybe it has to do with pylance and parameter hints. Downgrading to a previous VS Code version solves the issue. Downgrading to previous version of pylance does not.
Same issue. I am on M1 Pro MacBook Pro with Mac OS 13 Ventura.
I thought it was my computer, but it’s only one year old and it only happens when I’m in VS code. I actually went online to see if I was updated to the latest version. And noting that the latest version just came out and I am running it (it must have updated automatically), the slowness has to be related to the upgrade.
It’s quite frustrating. It happens When I am typing in code cells, or markdown cells.
Downgrading to Version: 1.85.2 resolves issue