Skip to content
Home » Error: (this.configurationService.getValue(…) || []).filter is not a function in VS Code

Error: (this.configurationService.getValue(…) || []).filter is not a function in VS Code

To solve VS Code Error: (this.configurationService.getValue(…) || []).filter is not a functionin VS Code error follow below methods.

I recently began seeing this problem in VS Code, which prohibits me from creating new files or even opening existing ones. (this.configurationService.getValue(…) || []) is the pop error displayed by VS Code. The term “filter” does not refer to a function.

This error/bug even prevents me from accessing the extensions tab or using basic hotkeys.

ERROR LOG

(this.configurationService.getValue(…) || []).filter is not a function

How to solve VS Code Error: (this.configurationService.getValue(…) || []).filter is not a function ?

A few configuration mistakes were discovered. json. Please test it and let me know how it goes. Every time I try to create a new file, this error message appears.

(this.configurationService.getValue(…) || []).filter is not a function

Had to fix “workbench.editorAssociations” flag to:

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

Previously it was:

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

Alternative to Solve Error: (this.configurationService.getValue(…) || []).filter is not a function in VS Code

I discovered that the error is caused by the settings.json file for VS Code (available here for Mac: /Library/Application Support/Code/User/settings.json). There was an issue in an extension that was upgraded. My particular one appears to have originated from the following line:

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

Hope the above solution works.

Also read :

FutureWarning: The default value of regex will change from True to False in a future version
No module named pyLDAvis