[language-typescript] Use proper comment delimiters in TypeScript…

…when inside of a TS block within a TSX interpolation.

Some mixing of TS and TSX is too ambiguous for the “Toggle Line Comments” command, but in this case we've got a brace-delimited block inside of a TSX interpolation. That's practically guaranteed to mean we've got a line with _only_ TypeScript on it, so we should use an ordinary TS line comment.
This commit is contained in:
Andrew Dupont 2024-01-23 16:17:06 -08:00
parent 1b2163f1ad
commit a0595b275d

View File

@ -17,3 +17,12 @@
'commentEnd': ' */}',
'increaseIndentPattern': "{[^}\"']*$|\\[[^\\]\"']*$|\\([^)\"']*$|<[a-zA-Z][^/]*$|^\\s*>$",
'decreaseIndentPattern': "^\\s*(\\s*/[*].*[*]/\\s*)*[}\\])]|^\\s*(</|/>)"
'.meta.tag.tsx .meta.block.ts.tsx':
editor:
commentStart: '// '
comments:
line: '//'
block:
start: '/*'
end: '*/'