作者:545229628_efb16a | 来源:互联网 | 2023-08-31 16:14
我有一个很奇怪的问题。昨天将Flutter升级到最新版本后,我的语法突出显示非常糟糕。当我打开一个文件时,一切似乎都很好,但是一旦分析了文件并将结果用于突出显示,一切都会中断。
我有一个很奇怪的问题。昨天将 Flutter 升级到最新版本后,我的语法突出显示非常糟糕。当我打开一个文件时,一切似乎都很好,但是一旦分析了文件并将结果用于突出显示,一切都会中断。
正确(打开文件后 1-2 秒):
错误(大约 2 秒后):
我正在为 VsCode 使用 Monokai 主题。我很想找回我的旧颜色,因为我认为新方案很难看。
我的 Flutter Doctor 输出(所有版本等):
[flutter] flutter doctor -v
[?] Flutter (Channel stable, 2.0.3, on Microsoft Windows [Version 10.0.19042.867], locale en-NZ)
• Flutter version 2.0.3 at R:ProgrammeFlutter
• Framework revision 4d7946a68d (3 days ago), 2021-03-18 17:24:33 -0700
• Engine revision 3459eb2436
• Dart version 2.12.2
[?] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at R:ProgrammeAndroidsdk
• Platform android-30, build-tools 30.0.2
• Java binary at: R:ProgrammeAndroidAndroid Studiojrebinjava
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[?] Chrome - develop for the web
• Chrome at C:Program Files (x86)GoogleChromeApplicationchrome.exe
[?] Android Studio (version 4.0)
• Android Studio at R:ProgrammeAndroidAndroid Studio
• Flutter plugin version 48.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[?] IntelliJ IDEA Ultimate Edition (version 2020.3)
• IntelliJ at C:Program FilesJetBrainsIntelliJ IDEA 2019.2.2
• 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
[?] VS Code, 64-bit edition (version 1.54.3)
• VS Code at C:Program FilesMicrosoft VS Code
• Flutter extension version 3.20.0
[?] Connected device (2 available)
• Chrome (web) • chrome • web-Javascript • Google Chrome 89.0.4389.90
• Edge (web) • edge • web-Javascript • Microsoft Edge 89.0.774.57
• No issues found!
exit code 0
任何帮助将不胜感激 :)
回答
添加"editor.semanticHighlighting.enabled": false
你的 vscodesettings.json