vuejs / vetur

Vue tooling for VS Code.

Home Page:https://vuejs.github.io/vetur/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Status

yoyo930021 opened this issue · comments

Hi everyone, I'm the main maintainer in Vetur now.

As you can see, the project has not been updated for a long time.
There are many people who are concerned about the future of this project.

I will go back this September.

Here are the future plans:

  • v0.37.0 (Now here)
  • Announced to enter LTS status.
  • Transferring development energy to volar

We would like to thank everyone for their support over the years. Due to time constraints, we hope contributors can focus on maintaining single editor support.
Thank you to the contributors, especially @octref @rchl @HerringtonDarkholme @ktsn.
Without @octref and @HerringtonDarkholme, this project wouldn't be possible
@ktsn contribute template type check. @rchl reviews some important PRs.

Thanks @johnsoncodehk, volar is a great project for improving Vue developer life.

I like the code formatting function of vetur very much.

ajudou bastante. obrigado!

为什么模板代码高亮变灰了,而注释的高亮颜色也没了
Why does the highlighted template code turn gray, and the highlighted color of comments also disappear

为什么模板代码高亮变灰了,而注释的高亮颜色也没了 Why does the highlighted template code turn gray, and the highlighted color of comments also disappear

It is a upstream bug, try to downgrade typescript version.
If have any question, please open a new issue.

  1. Autocomplete stop working
  2. Alt + click on a component use in a template stop open that component in a new tab

Should the Visual Studio Code documentation also be updated to reflect on this?
https://code.visualstudio.com/docs/nodejs/vuejs-tutorial

In my current situation, I can only turn off eslint-plugin-prettier for vue files and use all eslint rules.
For vscode, turn off editor.codeActionsOnSave["source.fixAll.eslint"] globally and open it for vue files

.vscode/settings.json

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

.eslintrc.js

module.exports = {
    // for vue files
    ...globalConfig,
    
    overrides: [
        files: ['!*.vue'],
        extends: [
            'plugin:prettier/recommended',
        ],
        'prettier/prettier': [
            'error',
            {
              singleQuote: true,
              parser: 'flow',
            },
          ],
    ]
}

Now that Vue2 reached it's EoL, I think it would be a good step to deprecate the Vetur VSCode extension in favour of Volar (recently renamed to Vue - Official). Searching for Vue plugins in the marketplace still ranks Vetur higher than Volar due it having twice as many downloads.

image

An extension can be marked as deprecated by reaching out to the VSCode team in this discussion: microsoft/vscode-discussions#1

deprecate the Vetur VSCode extension in favour of Volar

As I see in the linked discussion the Volar is deprecated in favor of the Vue - Official extension. Moreover, I cannot even install Volar now due to its deprecated status.

I'm confused. Is Vetur deprecated in favour of Volar and Volar is deprecated in favor of Vue - Official? It doesn't make sense to me. What extension should I use today to develop Vue3 apps with TypeScript?

deprecate the Vetur VSCode extension in favour of Volar

As I see in the linked discussion the Volar is deprecated in favor of the Vue - Official extension. Moreover, I cannot even install Volar now due to its deprecated status.

I'm confused. Is Vetur deprecated in favour of Volar and Volar is deprecated in favor of Vue - Official? It doesn't make sense to me. What extension should I use today to develop Vue3 apps with TypeScript?

Volar has been renamed to "Vue - Official", it's the same extension though. You should use that.

https://marketplace.visualstudio.com/items?itemName=Vue.volar

Ahh, I see! Thank you!

The confusion is due to the fact that the deprecated extension I linked is named TypeScript Vue Plugin (Volar) (so, it also does have Volar in its name).

Basically, TypeScript Vue Plugin (Volar) is deprecated in favour of Vue - Official (previously known as Vue Language Features (Volar). So, Volar is deprecated in favour of Volar. Bad naming I would say. :)