mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
fix inlay hints for template literal type (#56309)
This commit is contained in:
1 parent
e98ae5a5c4
commit
c250aed310
4 files changed
+181
-6
No files matched your search
@@ -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, "\\${");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user