vscode: Tasks slow since 1.29.0

Issue Type: Performance Issue

Since installing the update to 1.29.0, I’ve noticed a significant delay in task actions, in two distinct spots:

  • Between summoning the task list and the list becoming populated
  • Between selecting a task and that task starting to execute (as indicated on the status bar)

In both cases, the delay lasts around 1.5 to 2 seconds, and is consistent across several attempts, with and without extensions enabled, before and after system restarts. Prior to this issue, the duration of these actions was normally less than 0.5 seconds.

VS Code version: Code 1.29.0 (5f24c93878bd4bc645a4a17c620e2487b11005f9, 2018-11-12T07:47:15.448Z) OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel® Xeon® CPU E5-2687W v4 @ 3.00GHz (24 x 2993)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 63.92GB (52.79GB free)
Process Argv
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	    98	 13240	code main
    0	   151	  4616	   window (Redacted)
    0	    13	  1916	     electron-crash-reporter
    0	    81	 14008	     extensionHost
    0	    62	 17068	       electron_node server.js 
    0	    35	 17248	       C:\Users\avernon\.vscode\extensions\ms-vsliveshare.vsliveshare-0.3.953\dotnet_modules\vsls-agent.exe --autoexit --pipe 63fc90e5aed54aceb947f4348020384b --service https://insiders.liveshare.vsengsaas.visualstudio.com/
    0	     9	 17292	         console-window-host (Windows internal process)
    0	   199	 11452	   window (Redacted (Workspace))
    0	    42	  3172	     watcherService
    0	    63	 17280	     extensionHost
    0	    37	 22748	     searchService
    0	    98	 15056	   gpu-process
    0	    65	 16784	   shared-process
    0	    67	 23216	   window (Issue Reporter)
Workspace Info
|  Window - (Redacted (Workspace))
|    Folder (pre-apt): 34 files
|      File types: as(14) fla(5) swf(5) js(3) json(2) p4ignore(1) html(1)
|                  editorconfig(1) md(1) css(1)
|      Conf files: package.json(1)
|    Folder (ui): more than 40781 files
|      File types: png(32027) swf(2844) as(2366) fla(1870) xml(1389) nav(138)
|                  ttf(110) PNG(20) txt(7) json(2)
|      Conf files: settings.json(1) tasks.json(1);
Extensions: none

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 3
  • Comments: 18 (7 by maintainers)

Most upvoted comments

I have been seeing the same thing (except more like 30-60 seconds for the list to populate), and "typescript.tsc.autoDetect": "off" also fixes it for me.

Some more info:

  • The slowdown seems to be caused by Windows Defender going completely nuts and pegging my CPU at 100% when the task list opens.
  • If I don’t disable my extensions, just opening VSCode has the same effect, causing Defender to sit my CPU at 100% for about a minute. I now realise it’s probably the fact that we have a lot of TypeScript in our project.
  • It’s Windows 10, as up to date as likes right now.
  • This started happening immediately after installing the most recent VSCode update.

@wangfuxiong TS is working on fixing this.

@dbaeumer "typescript.tsc.autoDetect": "off" solves the problem for me.

O.S: Windows 10 Home, 64 bits, 1803. Build: 17134.407