方式一.全部禁用插件排查问题.
方式二.打开首选项的json文件,注释掉setting.json,排查是哪一行配置有问题.
我的最终问题:需要将 "*.vue": "vue",改成"*.vue": "html",
"files.associations": {
// "*.vue": "vue",
"*.vue": "html",
"*.wpy": "vue",
"*.wxml": "html",
"*.wxss": "css"
},
参考配置:
{"files.associations": {// "*.vue": "vue","*.vue": "html","*.wpy": "vue","*.wxml": "html","*.wxss": "css"},//主题颜色 "explorer.confirmDelete": false,"editor.fontSize": 14,"window.zoomLevel": 1,"editor.detectIndentation": false,// 重新设定tabsize"editor.tabSize": 2,// #值设置为true时,每次保存的时候自动格式化;"editor.formatOnSave": false,"workbench.editor.enablePreview": false, // 关闭文件的预览模式"workbench.iconTheme": "material-icon-theme",// 在使用搜索功能时,将这些文件夹/文件排除在外"search.exclude": {"**/node_modules": true,"**/bower_components": true,"**/target": true,"**/logs": true,},// 这些文件将不会显示在工作空间中"files.exclude": {"**/.git": true,"**/.svn": true,"**/.hg": true,"**/CVS": true,"**/.DS_Store": true,"**/*.js": {"when": "$(basename).ts" //ts编译后生成的js文件将不会显示在工作空中},"**/node_modules": true},"editor.suggest.snippetsPreventQuickSuggestions": true
}