"dart.previewLsp": true slows down VSCode Intellisense
See original GitHub issueDescribe the bug
The latest update caused my VSCode’s Intellisense to slow down. Disabling the new setting "dart.previewLsp": false
fixes the issue.
To Reproduce
set "dart.previewLsp": true
Versions:
✓] Flutter (Channel stable, 2.0.1, on macOS 11.1 20C69 darwin-x64, locale en-PH)
• Flutter version 2.0.1 at /Users/nemoryoliver/fvm/versions/stable
• Framework revision c5a4b4029c (5 days ago), 2021-03-04 09:47:48 -0800
• Engine revision 40441def69
• Dart version 2.12.0
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
• Android SDK at /Users/nemoryoliver/Library/Android/sdk
• Platform android-30, build-tools 30.0.1
• ANDROID_HOME = /Users/nemoryoliver/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.54.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.20.0
[✓] Connected device (3 available)
• IN2010 (mobile) • 022666eb • android-arm64 • Android 11 (API 30)
• macOS (desktop) • macos • darwin-x64 • macOS 11.1 20C69 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.72 beta
• No issues found!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
VSCode Flutter Dart slow suggestions - Stack Overflow
I was told to add this config: "dart.previewLsp": true,. which would put the plug-in into speaking the Language Server Protocol rather than ...
Read more >Flutter/Dart VsCode super slow IntelliSense feedback - Reddit
Try enabling the "Preview LSP" option in the VS Code/Dart settings and then reload VS Code.
Read more >村松龍之介@Flutterアプリ開発者 on Twitter: "@chooyan_i18n ちゅ ...
previewLsp ": true slows down VSCode Intellisense · Issue #3193 · Dart-Code/Dart-Code. Describe the bug The latest update caused my VSCode's Intellisense to ......
Read more >Language Server Extension Guide - Visual Studio Code
LSP Sample - A simple Language Server for plain text files. Let's build a simple Language Server extension that implements autocomplete and diagnostics...
Read more >VS Code & Dart, pas de completion automatique - Flutter
Voilà pas de completion automatique sur VS avec Dart :frowning: ... déjà « dart.previewLsp »: true, ... VSCode Flutter Dart slow suggestions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With
previewLsp: true
the status bar shows “Analysing” spinner for tens of seconds up to a minute for every change. Project has 17Kloc of Dart code, it’s not that big. So you click on a warning, wait 30-40 seconds, apply the suggestion (or make the change manually), wait 20-40 seconds more, rinse, repeat. I was running LSP preview for a long time, but this radical slow down happened only after the switch to Flutter 2.0 and Dart 2.12@nemoryoliver exactly! I have same issue and working in this situation is very difficult.