VS 代码错误:(this.configurationService.getValue(...) || []).filter 不是函数 [英] VS Code Error: (this.configurationService.getValue(...) || []).filter is not a function

查看:45
本文介绍了VS 代码错误:(this.configurationService.getValue(...) || []).filter 不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始在 VS Code 中收到此错误,该错误阻止我创建新文件甚至打开文件.VS Code 显示的弹出错误是 (this.configurationService.getValue(...) || []).filter is not a function

I just started getting this error in VS Code that prevents me from create a new file or even opening a file. The pop error that VS Code shows is (this.configurationService.getValue(...) || []).filter is not a function

这个错误/错误甚至阻止我打开扩展选项卡或启动基本热键.其他人有这个问题吗?

This error/bug even stops me from opening the extensions tab or launching basic hotkeys. Anybody else have this issue?

推荐答案

我遇到了同样的问题.

在 settings.json 中发现了一些错误.试着检查一下,让我知道它会怎样.

Found few errors in settings.json. Try to check it and let me know how it will go.

每次我尝试创建一个新文件时都会弹出这个错误

This error pops up every time I try to create a new file saying

"(this.configurationService.getValue(...) || []).filter 不是函数"

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

就我而言,我必须修复workbench.editorAssociations";标记为:

In my case, I had to fix "workbench.editorAssociations" flag to:

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

以前是:

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

这篇关于VS 代码错误:(this.configurationService.getValue(...) || []).filter 不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆