snippets.ts 260 B

12345
  1. // Add a final placeholder at the end of the snippet to allow for
  2. // shift-tabbing back from the penultimate placeholder. See #8697.
  3. export const prepareSnippetTemplate = (template: string): string => {
  4. return template.replace(/\$(\d+)/g, '#{$1}') + '${}'
  5. }