Skip to content

Emmet shortcut doesn't work when <script> tag is not present #651

@vinliao

Description

@vinliao

Describe the bug
Normally, I create a tag with tagname + enter. That works fine in .svelte file, but not when the <script> tag is removed.

To Reproduce
Create svelte file without a <script> tag and try typing p + enter. It doesn't create <p><p/>. If you put back the <script> tag, everything works fine.

Expected behavior
Emmet shortcut works even though without <script> tag.

System (please complete the following information):

  • OS: Linux
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode.

Additional context
To be quite honest, this is a pretty small and miniscule problem, but the behavior is unexpected nonetheless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions