From ecf1441081ef70ee5185d54d0b923ab5709e9c7c Mon Sep 17 00:00:00 2001 From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:29:35 +0200 Subject: [PATCH] fix: escape literal `$` in `for-range` snippets --- server/src/snippets.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/snippets.ts b/server/src/snippets.ts index 5f4718055..81bac7d73 100644 --- a/server/src/snippets.ts +++ b/server/src/snippets.ts @@ -429,7 +429,7 @@ export const SNIPPETS: BashCompletionItem[] = [ label: 'for-range', documentation: 'for with range', insertText: [ - 'for ${1:item} in $(seq ${2:from} ${3:to}); do', + 'for ${1:item} in \\$(seq ${2:from} ${3:to}); do', '\t${4:command ...}', 'done', ].join('\n'), @@ -438,7 +438,7 @@ export const SNIPPETS: BashCompletionItem[] = [ label: 'for-stepped-range', documentation: 'for with stepped range', insertText: [ - 'for ${1:item} in $(seq ${2:from} ${3:step} ${4:to}); do', + 'for ${1:item} in \\$(seq ${2:from} ${3:step} ${4:to}); do', '\t${5:command ...}', 'done', ].join('\n'),