formulahendry/vscode-auto-close-tag

New setting proposal: onlyWithinQuotesOnLanguage

オープン

#37 opened on 2017/04/24

 (5 件のコメント) (5 件のリアクション) (0 人の担当者)TypeScript (52 件のフォーク)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (180 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド