microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.45k stars 28.63k forks source link

Deprecated extension recommendation: Volar #227434

Open theking2 opened 1 week ago

theking2 commented 1 week ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

  1. Open a vue3 project
  2. Vscode recommends Volar

image image

gjsjohnmurray commented 1 week ago

Is this happening for a specific vue3 project that you have cloned from GitHub {or similar)? Or for a new one you create from scratch?

theking2 commented 1 week ago

It is an intern project that was cloned.

theking2 commented 1 week ago

Is there something in the settings that could cause this? The only specific setting I find is this:

    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
sandy081 commented 1 week ago

Can you please open recommendations (using filter dropdown) in the extensions view and let us know what it shows?

theking2 commented 1 week ago

This is what I see when opening a Vue3 project:

image

So it is still recommended but not in the list of recommended extensions

theking2 commented 1 week ago

This is in dev console, not sure if this helps:

image

gjsjohnmurray commented 1 week ago

Is there an extensions.json file in the .vscode folder of your workspace?

Or if you are using a .code-workspace file to open it, does this contain an extensions.recommendations section?

See https://code.visualstudio.com/docs/editor/extension-marketplace#_workspace-recommended-extensions

theking2 commented 1 week ago

Thanks for asking and yes there is a extensions.json in .vscode. This project currently has no workspace.

extensions.json

theking2 commented 1 week ago

I just went back through the gh history of this file and it was part of the original commit when the project was transfered to gh.

It seems the recommendation is a left over of that commit. Suggestions 1) update the recommendations section each time the project is openend, or 2) timestamp the recommendations section and inform the user when this recommendation has entered the project. I am not sure if perhaps npm vue@lastest just add(s|ed) this upon creation.

sandy081 commented 6 days ago

Thanks for sharing the file. It seems the Vue.vscode-typescript-vue-plugin extension is part of the extension recommendations and therefore it is shown as the recommendation.

I believe it make sense to not to recommend deprecated extensions even if they are part of recommendations file given that these files can be outdated.