formulahendry/vscode-auto-close-tag

New setting proposal: onlyWithinQuotesOnLanguage

Aperta

#37 aperta il 24 apr 2017

 (5 commenti) (5 reazioni) (0 assegnatari)TypeScript (52 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (180 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Working in a language like typescript causes false tag closes when coding generics. A new setting that restricts closes to only when typing in a quoted string would allow users to keep this feature enabled with far less false closes. Coding angular inline templates is an example of where this might be used.

"auto-close-tag.onlyWithinQuotesOnLanguage": [
    "typescript"
]

Edit: I'm not sure what information the extension environment provides. Maybe there is a better way, such as knowing you're in a generic - or something similar.

Guida contributor