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"
      }
    ],