Does this issue occur when all extensions are disabled?: Yes
VS Code Version: Version: 1.95.1 (Universal), Commit: 65edc4939843c90c34d61f4ce11704f09d3e5cb6
OS Version: Darwin arm64 24.1.0
We make heavy use of Webviews via the VS Code API. We have observed that setTimeout and setInterval calls are throttled. When the time is less than 1000ms, the time will be overridden to 1000ms as a minimum.
We can reproduce the problem on both MacOS and Windows.
We found that the problem is much harder (and sometimes impossible) to reproduce when display refresh rate is higher. With a refresh rate of 60hz, the problem is fairly easy to reproduce.
We have created a sample repo that shows the problem.
Does this issue occur when all extensions are disabled?: Yes
We make heavy use of Webviews via the VS Code API. We have observed that
setTimeout
andsetInterval
calls are throttled. When the time is less than 1000ms, the time will be overridden to 1000ms as a minimum.We can reproduce the problem on both MacOS and Windows.
We found that the problem is much harder (and sometimes impossible) to reproduce when display refresh rate is higher. With a refresh rate of 60hz, the problem is fairly easy to reproduce.
We have created a sample repo that shows the problem.
Steps to Reproduce:
npm install
npm run watch
ornpm run compile
F5
to start debuggingWebview Issue: Reproduce Webview Issue
command to create the webview.The two times should be similar.
Note: it can sometimes take a few times before the throttling starts to occur.