We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81125b8 commit bc07391Copy full SHA for bc07391
server/src/snippets.ts
@@ -153,14 +153,14 @@ 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(
+ insertText: ['if [[ -n "${${1:variable}+x}" ]]; then', '\t${2:command ...}', 'fi'].join(
157
'\n',
158
),
159
},
160
161
label: 'if-not-defined',
162
163
- insertText: ['if [[ -z "${${1:variable}+x}" ]]', '\t${2:command ...}', 'fi'].join(
+ insertText: ['if [[ -z "${${1:variable}+x}" ]]'; then, '\t${2:command ...}', 'fi'].join(
164
165
166
0 commit comments