Getting code actions from ''Vetur', 'Eslint'' takes too long!

See original GitHub issue
  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: macOS
  • Vetur version:0.26.1
  • VS Code version: 1.47.3

Problem

Since I upgraded Vetur from 0.25.0 to 0.26.1, after I edit and save .vue files, vscode get stuck with this promote: image even though the change is very mirror. I have to downgrade to 0.25.0 to avoid this !

local eslint version is eslint@6.8.0 here is my vsocde setting:

{
    "vetur.format.defaultFormatterOptions": {
        "prettier": {
            "semi": false,
            "singleQuote": true,
            "tabWidth": 4
        }
    },
    "vetur.validation.template": true,
    "vetur.format.options.tabSize": 4,
    "vetur.format.defaultFormatter.js": "prettier-eslint",
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    "vetur.format.defaultFormatter.html": "prettier",
    "eslint.alwaysShowStatus": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "vue",
        "typescript",
        "typescriptreact"
    ],
    "eslint.options": {
        "extensions": [
            ".html",
            ".js",
            ".vue",
            ".jsx"
        ]
    }
}

Reproducible Case

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:52
  • Comments:66 (12 by maintainers)

github_iconTop GitHub Comments

15reactions
elevatebartcommented, Sep 11, 2020

How about disabling eslint code action from eslint in Vue files? Keeping only vetur actions.

{
"editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "[vue]": {
    "editor.codeActionsOnSave": {
      "source.fixAll.eslint": false
    }
  },
}

Would that help? I tried on my local, will report soon.

10reactions
shiyu3169commented, Sep 8, 2020

I meet the same issue on Win as well. Downgrading to 0.25.0 temporarily solve problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode `Saving Getting code actions from` - Stack Overflow
Getting frequent Saving Getting code actions from from VSCode. VSCode freezes, the file is NOT saved. It seems to happen for Prettier, Eslint, ......
Read more >
ESLint and Prettier with Vite and Vue.js 3 - Vue School Blog
Since VS Code is a free and popular IDE and the IDE I use, let's take a look at how to integrate ESLint...
Read more >
Configure VS Code - Quasar Framework
The easiest way to do that is to click on the bug icon on the action bar (for ltr languages, that is the...
Read more >
Top 5 VS Code extensions for Vue developers for 2022
In this article, we'll take a look at some of the best VS Code extensions specifically for Vue. With the adoption of Vue...
Read more >
正在保存“xxx.vue”: Getting code actions from ''Vetur''
文章目录一、插件的介绍与安装1、Vetur插件2、ESLint插件3、Prettier-Codeformatter插件二、相关文件配置总结前面主要先对插件进行介绍和如何安装,之后在进行文件的 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found