microsoft / vscode-extension-test-runner

Runs tests in the UI for VS Code extensions
MIT License
9 stars 4 forks source link

Extension is causing unresponsive extension host #46

Closed alexdima closed 2 months ago

alexdima commented 2 months ago

I'm selfhosting on vscode-copilot, it looks like there's one function called _syncFile which is going crazy

Image

Version: 1.93.0-insider
Commit: e1db90f81da28c0994b5d50dc2b51e964359e62d
Date: 2024-08-21T05:04:11.586Z
Electron: 30.3.1
ElectronBuildId: 9960165
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0

Image

extension-test-runner-CPU-20240822T065255.473Z.cpuprofile.txt.zip

connor4312 commented 2 months ago

This is not quite so bad for me, taking only 1.5s per sync, but we could fix it by debouncing it and/or moving it to a worker.