-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
TS Template added by @mjbvz
TypeScript Version: 3.8.3
Search Terms
- refactor
- refactoring
- VSCode Version: 1.43.0
- OS Version: Windows 7 Pro
Steps to Reproduce:
- Add the following text to a typescript file (have not tried javascript):
return "\\[[" + text + "](" + link + ")\\]";
- Choose refactor -> Convert to template string
- Observe the following output:
return `\\\\[[${text}](${link})\\\\]`;
This contains too many backslashes - there should only be one escaped slash in each location, i.e.
return `\\[[${text}](${link})\\]`;
Does this issue occur when all extensions are disabled?: Yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue