vs code 无法打开任何文件/新建文件报错this.configurationService.getValue(…) || []).filter is not a function
主要起因是在一台mac 电脑上登录了vs code的同步帐号,导致换window时同步后无法打开文件,新建文件也报错this.configurationService.getValue(…) || []).filter is not a function
打开左下角设置图标-设置-选择在setting.json中编辑
会发现配置文件被mac同步之后变成了
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
修改为以下代码后正常
"workbench.editorAssociations": [
{
"viewType": "jupyter.notebook.ipynb",
"filenamePattern": "*.ipynb"
}
],
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)