We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 81125b8 + 1fc9819 commit 2d51e28Copy full SHA for 2d51e28
server/src/snippets.ts
@@ -153,16 +153,20 @@ export const SNIPPETS: BashCompletionItem[] = [
153
{
154
label: 'if-defined',
155
documentation: 'if with variable existence check',
156
- insertText: ['if [[ -n "${${1:variable}+x}" ]]', '\t${2:command ...}', 'fi'].join(
157
- '\n',
158
- ),
+ insertText: [
+ 'if [[ -n "${${1:variable}+x}" ]]; then',
+ '\t${2:command ...}',
159
+ 'fi',
160
+ ].join('\n'),
161
},
162
163
label: 'if-not-defined',
164
- insertText: ['if [[ -z "${${1:variable}+x}" ]]', '\t${2:command ...}', 'fi'].join(
165
166
+ 'if [[ -z "${${1:variable}+x}" ]]; then',
167
168
169
170
171
172
label: 'while',
0 commit comments