简体   繁体   English

Dart 语法高亮在 vs 代码中不起作用

[英]Dart syntax highlighting is not working in vs code

i have been using vs code for flutter for 3 months and now i got into this issue syntax prediction works and flutter run is also working but syntax color is gone我一直在使用 flutter 的 vs 代码 3 个月,现在我进入了这个问题,语法预测工作,flutter 运行也在工作,但语法颜色消失了

Also i have uninstalled every extensions and reinstalled vs code here is the console screenshot我也卸载了所有扩展并重新安装了 vs 代码这里是控制台截图

在此处输入图像描述

It appears that one of the files in the Dart extension may be corrupt on your disk (syntaxs/dart.json). Dart 扩展名中的一个文件似乎在您的磁盘上已损坏 (syntaxs/dart.json)。 I would try to uninstall the extension and re-install it.我会尝试卸载扩展并重新安装它。

If that does not help, please check the contents of the.vscode-extensions folder in your home directory in the Dart-Code folder syntaxes/dart.json and see why it is not valid json.如果这没有帮助,请检查您的主目录中 Dart-Code 文件夹 syntaxes/dart.json 中的 .vscode-extensions 文件夹的内容,看看为什么它不是有效的 json。

I've seen this once before ( https://github.com/microsoft/vscode/issues/73134 ) though it's not clear why it happened.我以前见过这种情况( https://github.com/microsoft/vscode/issues/73134 )虽然不清楚为什么会发生。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM