Skip to content

Emmet does not work inside script tag with type="text/ng-template" #51768

@jwhitmarsh

Description

@jwhitmarsh

This is identical to #34921 but for "text/ng-template"

Emmet expansion (via Tab, or via Command Palette) doens't work on text inside a <script> tag with this type. These tags are used in AngularJS for templates - https://docs.angularjs.org/api/ng/directive/script

  • VSCode Version: Version 1.24.0 (1.24.0)
  • OS Version: macOS 10.12.6

Steps to Reproduce:

  1. Create an HTML file like this:
<script type="text/ng-template">
  
</script> 
  1. Write an emmet string inside the script tag and press Tab/use command palette to trigger expansion. Nothing happens.
<script type="text/ng-template">
div>p  
</script> 
  1. Write an emmet string inside the script tag and press Tab/use command palette to trigger expansion. It works.
<script type="text/ng-template">

</script> 
div>p

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

Metadata

Metadata

Assignees

Labels

emmetEmmet related issuesfeature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions