Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode Dart & Flutter unusably slow on MacOS

Flutter & Dart becomes unbearably slow in VSCode all of a sudden. Intellisense won't load within 30+ seconds, syntax highlighting won't update, etc.

I tried uninstalling all extensions, even completely removing VSCode with any data stored and reinstalling it. As soon as I install the Dart extension, it is unusable. I also tried setting the following settings:

"dart.previewLsp": true,
"dart.useLegacyAnalyzerProtocol": true,
"dart.useLsp": false,
"dart.autoImportCompletions": false,

I'm on macOS 14.4, VSCode Version 1.87.2 (Universal)

In the Activity Monitor, there is the dart:analysis_server.dart.snapshot process running with around 1 GB of used memory. I'm not sure if this is normal.

like image 215
Jonas Avatar asked Dec 23 '25 02:12

Jonas


1 Answers

What helped me:

Clear / Delete the Extension-Cache:

Close VS Code

Delete the content inside the workspaceStorage.

~/Library/Application Support/Code/User/workspaceStorage

For Windows it is:

C:\Users\username\AppData\Roaming\Code\User\workspaceStorage
  • Start VSCode

And it should be faster / normal again

At least that was my final step and its smoothly running again 🙏

like image 167
Lenzia Avatar answered Dec 24 '25 17:12

Lenzia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!