@@ -154,7 +154,7 @@ export const SNIPPETS: BashCompletionItem[] = [
154
154
label : 'if-defined' ,
155
155
documentation : 'if with variable existence check' ,
156
156
insertText : [
157
- 'if [[ -n "${${1:variable}+x}" ]]; then' ,
157
+ 'if [[ -n "\\ ${${1:variable}+x}" ]]; then' ,
158
158
'\t${2:command ...}' ,
159
159
'fi' ,
160
160
] . join ( '\n' ) ,
@@ -163,7 +163,7 @@ export const SNIPPETS: BashCompletionItem[] = [
163
163
label : 'if-not-defined' ,
164
164
documentation : 'if with variable existence check' ,
165
165
insertText : [
166
- 'if [[ -z "${${1:variable}+x}" ]]; then' ,
166
+ 'if [[ -z "\\ ${${1:variable}+x}" ]]; then' ,
167
167
'\t${2:command ...}' ,
168
168
'fi' ,
169
169
] . join ( '\n' ) ,
@@ -278,7 +278,7 @@ export const SNIPPETS: BashCompletionItem[] = [
278
278
label : 'while-defined' ,
279
279
documentation : 'while with variable existence check' ,
280
280
insertText : [
281
- 'while [[ -n "${${1:variable}+x}" ]]' ,
281
+ 'while [[ -n "\\ ${${1:variable}+x}" ]]' ,
282
282
'\t${2:command ...}' ,
283
283
'done' ,
284
284
] . join ( '\n' ) ,
@@ -287,7 +287,7 @@ export const SNIPPETS: BashCompletionItem[] = [
287
287
label : 'while-not-defined' ,
288
288
documentation : 'while with variable existence check' ,
289
289
insertText : [
290
- 'while [[ -z "${${1:variable}+x}" ]]' ,
290
+ 'while [[ -z "\\ ${${1:variable}+x}" ]]' ,
291
291
'\t${2:command ...}' ,
292
292
'done' ,
293
293
] . join ( '\n' ) ,
@@ -402,7 +402,7 @@ export const SNIPPETS: BashCompletionItem[] = [
402
402
label : 'until-defined' ,
403
403
documentation : 'until with variable existence check' ,
404
404
insertText : [
405
- 'until [[ -n "${${1:variable}+x}" ]]' ,
405
+ 'until [[ -n "\\ ${${1:variable}+x}" ]]' ,
406
406
'\t${2:command ...}' ,
407
407
'done' ,
408
408
] . join ( '\n' ) ,
@@ -411,7 +411,7 @@ export const SNIPPETS: BashCompletionItem[] = [
411
411
label : 'until-not-defined' ,
412
412
documentation : 'until with variable existence check' ,
413
413
insertText : [
414
- 'until [[ -z "${${1:variable}+x}" ]]' ,
414
+ 'until [[ -z "\\ ${${1:variable}+x}" ]]' ,
415
415
'\t${2:command ...}' ,
416
416
'done' ,
417
417
] . join ( '\n' ) ,
@@ -429,7 +429,7 @@ export const SNIPPETS: BashCompletionItem[] = [
429
429
label : 'for-range' ,
430
430
documentation : 'for with range' ,
431
431
insertText : [
432
- 'for ${1:item} in $(seq ${2:from} ${3:to}); do' ,
432
+ 'for ${1:item} in \\ $(seq ${2:from} ${3:to}); do' ,
433
433
'\t${4:command ...}' ,
434
434
'done' ,
435
435
] . join ( '\n' ) ,
@@ -438,7 +438,7 @@ export const SNIPPETS: BashCompletionItem[] = [
438
438
label : 'for-stepped-range' ,
439
439
documentation : 'for with stepped range' ,
440
440
insertText : [
441
- 'for ${1:item} in $(seq ${2:from} ${3:step} ${4:to}); do' ,
441
+ 'for ${1:item} in \\ $(seq ${2:from} ${3:step} ${4:to}); do' ,
442
442
'\t${5:command ...}' ,
443
443
'done' ,
444
444
] . join ( '\n' ) ,
0 commit comments