vscode
vscode copied to clipboard
Square brackets break Emmet in TypeScript files
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.71.2
- OS Version: MacOS 12.5.1
Steps to Reproduce:
- Enable Emmet for TypeScript files, using the
html
language - Type a snippet with an attribute, like
a[href]
. Emmet does not expand the snippet.
Emmet behaves as expected in HTML files. E used to work prior to the VS Code update that came out in mid-May 2022.
Video showing unexpected behavior in a TypeScript file: https://user-images.githubusercontent.com/883698/191588848-4f666b06-0d4e-49a1-8ac5-1fc59f34df36.mp4
Video showing expected behavior in an HTML file. https://user-images.githubusercontent.com/883698/191589152-29a0712a-b7c7-49df-9002-0c573fc07680.mp4