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