vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Unbearable lag - Markdown language basics builtin plugin

Open vvasuki opened this issue 7 months ago • 5 comments

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:

Steps to Reproduce:

  1. Open a large markdown file with plenty of bold markups in vs code (example 24_sAdhyopAya-shodhanAdhikAraH.md ), with the Markdown language basics builtin plugin enabled.
  2. Try to paste some text, invoke autocomplete (ctrl+space), do general editing for a few minutes etc..

Expected result: There should be no lag.

Actual result: Painful lag, which does not occur if the Markdown language basics builtin plugin is disabled..

Observe this video - At about 2:45, severe delay starts. New-lines appear several seconds after the new-line keys being pressed.

Tested with:

Version: 1.99.3
Commit: 17baf841131aa23349f217ca7c570c76ee87b957
Date: 2025-04-15T23:18:46.076Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Linux x64 6.1.0-34-amd64

vvasuki avatar May 19 '25 05:05 vvasuki

I cannot confirm VSCode 1.100 Windows 11

RedCMD avatar May 19 '25 06:05 RedCMD

Added a video in the OP to illustrate. You should edit the file for a few minutes, the problem appears intermittently.

vvasuki avatar May 19 '25 09:05 vvasuki

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

mjbvz avatar May 20 '25 20:05 mjbvz

I'm unable to test with latest VS Code insiders build because of https://github.com/microsoft/vscode/issues/219280 .
Is there a way to install it via flatpak so that I can try?

I already noted that just disabling just this one builtin extension solves the problem; and I need funkyremi.vscode-google-translate for my workflow.

vvasuki avatar May 21 '25 03:05 vvasuki

Upgraded flatpak version to below and confirmed -

Version: 1.100.2
Commit: 848b80aeb52026648a8ff9f7c45a9b0a80641e2e
Date: 2025-05-14T21:47:40.416Z
Electron: 34.5.1
ElectronBuildId: 11369351
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Linux x64 6.1.0-35-amd64

vvasuki avatar May 21 '25 04:05 vvasuki

I'm not able to reproduce this. Please follow these instructions to collect performance information so we can see what's going on

mjbvz avatar Jul 31 '25 22:07 mjbvz

Was easily able to replicate unresponsiveness upon simply enabling the markdown extension and doing some editing. attaching host profile.

Image

CPU-20250803T114601.896Z.cpuprofile.txt

vvasuki avatar Aug 03 '25 11:08 vvasuki

sadly that cpuprofile shows nothing Image

but I do see that git is extremely slow in your screenshot try disabling git?

RedCMD avatar Aug 04 '25 10:08 RedCMD

Yes - problem disappears when disabling git plugin while enabling markdown plugin; or while disabling markdown plugin while enabling git plugin.

Adding cpu profile, also reported a duplicate via the vscode "Report issue" interface at https://github.com/microsoft/vscode/issues/259522 in case it has additional useful info.

CPU-20250804T111438.429Z.cpuprofile.zip

vvasuki avatar Aug 04 '25 11:08 vvasuki

@vvasuki, sorry for not getting back to you on this until now. Are you still able to reproduce with the latest VS Code release?

lszomoru avatar Nov 12 '25 19:11 lszomoru

@vvasuki, sorry for not getting back to you on this until now. Are you still able to reproduce with the latest VS Code release?

I cannot use the latest VS Code release because of https://github.com/microsoft/vscode/issues/219280 .

My current version is

Version: 1.105.1
Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.1.0-40-amd64

vvasuki avatar Nov 12 '25 23:11 vvasuki