fix inlay hints for template literal type (#56309)

This commit is contained in:
Zzzen authored and GitHub committed 2023-11-28 13:34:33 -08:00
1 parent e98ae5a5c4
commit c250aed310
4 files changed
+181 -6

No files matched your search

+2 -1
View File
@@ -5823,7 +5823,8 @@ export function createDiagnosticCollection(): DiagnosticCollection {
}
const templateSubstitutionRegExp = /\$\{/g;
function escapeTemplateSubstitution(str: string): string {
/** @internal */
export function escapeTemplateSubstitution(str: string): string {
return str.replace(templateSubstitutionRegExp, "\\${");
}