-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dart_frog VSCode extension slows down VSCode significantly #1487
Comments
I think I've experienced similar behaviours but I haven't invested the time into benchmarking it. I have a gut feeling that there is a resource that is leaking, might be regarding the daemon or probably during initialization. @lukasnevosad have you benchmarked or inspected the extension to see what function is using resources that might slow down VSCode? |
I am afraid I have no idea how to debug this. This report came from "Extensions Bisect" feature of VSCode, which pinpointed this extension. I could clearly see immediate results turning the extension on/off. It then even created this GitHub issue on by behalf. The slow down occurred multiple times before and has not occurred again since I turned this extension off. The project I've been working on with dart_frog (which is otherwise awesome, btw.) is on hold at the moment, but I will certainly need to switch the extension on again when I return to it, so I will try to do some more debugging then. |
I'm experiencing the same issues, especially around pasting text, pressing Enter and saving files. It applies to not only .dart files but also .md or bash. In the VS Code stats you can see that Dart Frog extensions can take up to 1000 ms to load whereas other extensions activate within 100 ms. example I think one of the issues is also the fact that the extension gets activated with any project containing pubspec.yaml, which in my case was not the intended behavior (e.g. when working with Flutter or pure Dart projects). |
Hey @orestesgaolin thanks for the feedback here. I'll add a P1 to this given that we have some direction now but I don't have much in team cycles to dedicate to this in the short term. If you are able to help debug or implement a solution and get a PR up it would be greatly appreciated! |
All good! I can enable the extension when I need it, so that's not a blocker :) I'll report back if anything obvious pops up |
Type: Bug
When the extension is enabled, VSCode is significantly slower, even in code that has nothing to do with Dart (TS, Next.js). It especially shows when e.g. clicking a symbol to see its definition definition or it shows "Running 'File Create' participants..." for many seconds when a simple new empty file is created.
Extension version: 0.2.3
VS Code version: Code 1.92.2 (Universal) (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Darwin arm64 23.5.0
Modes:
System Info
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: