本文主要介绍使用VS Code时,进行创建文件,打开文件夹或打开新选项,使用快捷键都会报错:((this.configurationService.getValue(...) || []).filter is not a function)的解决方法。

修改settings.json文件中"workbench.editorAssociations"的配置

将原来配置:

"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
}

改成:

"workbench.editorAssociations": [
        {
            "viewType": "jupyter-notebook",
            "filenamePattern": "*.ipynb"
        }
    ],

或者

"workbench.editorAssociations": { 
            "*.ipynb": "jupyter.notebook.ipynb" 
        }

注意:Mac中settings.json文件路径:~/Library/Application Support/Code/User/settings.json

推荐文档