File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 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[] = [
153153 {
154154 label : 'if-defined' ,
155155 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' ) ,
159161 } ,
160162 {
161163 label : 'if-not-defined' ,
162164 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' ) ,
166170 } ,
167171 {
168172 label : 'while' ,
You can’t perform that action at this time.
0 commit comments