File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -153,16 +153,20 @@ export const SNIPPETS: BashCompletionItem[] = [
153
153
{
154
154
label : 'if-defined' ,
155
155
documentation : 'if with variable existence check' ,
156
- insertText : [ 'if [[ -n "${${1:variable}+x}" ]]' , '\t${2:command ...}' , 'fi' ] . join (
157
- '\n' ,
158
- ) ,
156
+ insertText : [
157
+ 'if [[ -n "${${1:variable}+x}" ]]; then' ,
158
+ '\t${2:command ...}' ,
159
+ 'fi' ,
160
+ ] . join ( '\n' ) ,
159
161
} ,
160
162
{
161
163
label : 'if-not-defined' ,
162
164
documentation : 'if with variable existence check' ,
163
- insertText : [ 'if [[ -z "${${1:variable}+x}" ]]' , '\t${2:command ...}' , 'fi' ] . join (
164
- '\n' ,
165
- ) ,
165
+ insertText : [
166
+ 'if [[ -z "${${1:variable}+x}" ]]; then' ,
167
+ '\t${2:command ...}' ,
168
+ 'fi' ,
169
+ ] . join ( '\n' ) ,
166
170
} ,
167
171
{
168
172
label : 'while' ,
You can’t perform that action at this time.
0 commit comments