language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Template not treated as HTML in SFC in VSCode

Open gianLuigiL opened this issue 4 months ago • 8 comments

Updating to latest official vue extension stopped vscode from treating the template section in Vue SFC as HTML. Example: auto completion of quotes after the equal sign stopped working.

Adding :test= will not trigger automatic quotes insertion anymore. In common HTML files this works as expected.

gianLuigiL avatar Mar 06 '24 09:03 gianLuigiL

I can't reproduce this. Could you please share a video?

so1ve avatar Mar 07 '24 05:03 so1ve

screencast-bpconcjcammlapcogcnnelfmaeghhagj-2024.03.07-09_23_08.webm Yes, thanks.

In this video notice how in the previous version:

  • The closing angle bracket on the opening <Accordion> tag triggered autocompletion for the closing </Accordion> tag.
  • The attribute hello= triggered automatically adding the quotes. They are not inserted automatically anymore. It appears all behaviours defined for HTML in vscode stopped applying to the template section of SFC

gianLuigiL avatar Mar 07 '24 08:03 gianLuigiL

Accordion doesn't have correct highlight so it seemed that the plugin isn't loaded correctly.

so1ve avatar Mar 07 '24 08:03 so1ve

Is there something actionable i can do to help?

gianLuigiL avatar Mar 07 '24 08:03 gianLuigiL

Sorry I'm not sure how to deal with this part, we may wait for @johnsoncodehk's input

so1ve avatar Mar 07 '24 09:03 so1ve

@gianLuigiL Any luck solving this?

hermesjpappas avatar Apr 12 '24 05:04 hermesjpappas

@gianLuigiL Can you reproduce this problem with v2.0.12?

johnsoncodehk avatar Apr 12 '24 16:04 johnsoncodehk

@gianLuigiL Can you reproduce this problem with v2.0.12?

Yes still stuck on the same behaviour. No auto closing tags and no auto closing quotes. I'm running 1.8.27 for now.

gianLuigiL avatar Apr 12 '24 17:04 gianLuigiL