Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/141.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code VS代码ESLint正在检查快速修复。。。不起作用_Visual Studio Code_Eslint - Fatal编程技术网

Visual studio code VS代码ESLint正在检查快速修复。。。不起作用

Visual studio code VS代码ESLint正在检查快速修复。。。不起作用,visual-studio-code,eslint,Visual Studio Code,Eslint,我不确定这是否是最近的更新,但出于某种原因,我不再获得ESLint的快速修复。它会显示“检查快速修复…”,但我不会显示任何。在ESLint服务器中,我可以看到可用的修复程序,但VS代码中缺少该命令 同样的情况也发生在我身上,在尝试了多种方法之后,对我来说,有效的方法是重新安装代码,这意味着卸载代码、删除扩展文件夹并安装代码,然后再安装扩展。“快速修复”又回来了。谢谢。我也要试一试。 [Trace - 5:30:49 PM] Received response 'textDocument/cod

我不确定这是否是最近的更新,但出于某种原因,我不再获得ESLint的快速修复。它会显示“检查快速修复…”,但我不会显示任何。在ESLint服务器中,我可以看到可用的修复程序,但VS代码中缺少该命令


同样的情况也发生在我身上,在尝试了多种方法之后,对我来说,有效的方法是重新安装代码,这意味着卸载代码、删除扩展文件夹并安装代码,然后再安装扩展。“快速修复”又回来了。

谢谢。我也要试一试。
[Trace - 5:30:49 PM] Received response 'textDocument/codeAction - (13)' in 0ms.
Result: [
    {
        "title": "Disable no-unused-vars for this line",
        "command": {
            "title": "Disable no-unused-vars for this line",
            "command": "eslint.applyDisableLine",
            "arguments": [
                {
                    "uri": "file:///d%3A/Development/sfdx/insider/force-app/main/default/lwc/apexImperativeMethod/apexImperativeMethod.js",
                    "version": 14,
                    "ruleId": "no-unused-vars"
                }
            ]
        },
        "kind": "quickfix"
    },
    {
        "title": "Disable no-unused-vars for the entire file",
        "command": {
            "title": "Disable no-unused-vars for the entire file",
            "command": "eslint.applyDisableFile",
            "arguments": [
                {
                    "uri": "file:///",
                    "version": 14,
                    "ruleId": "no-unused-vars"
                }
            ]
        },
        "kind": "quickfix"
    },
    {
        "title": "Show documentation for no-unused-vars",
        "command": {
            "title": "Show documentation for no-unused-vars",
            "command": "eslint.openRuleDoc",
            "arguments": [
                {
                    "uri": "file:///",
                    "version": 14,
                    "ruleId": "no-unused-vars"
                }
            ]
        },
        "kind": "quickfix"
    }
]