Skip to content

Commit 65b710f

Browse files
EmilySeville7cfgEmilySeville7cfg
authored andcommitted
fix(snippets): reformat and remove JSON snippet
1 parent 1f4e6dc commit 65b710f

File tree

1 file changed

+7
-24
lines changed

1 file changed

+7
-24
lines changed

server/src/snippets.ts

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -491,29 +491,17 @@ export const SNIPPETS: BashCompletionItem[] = [
491491
{
492492
documentation: 'block',
493493
label: 'block',
494-
insertText: [
495-
'{',
496-
'\t${1:command ...}',
497-
'}',
498-
].join('\n'),
494+
insertText: ['{', '\t${1:command ...}', '}'].join('\n'),
499495
},
500496
{
501497
documentation: 'block redirected',
502498
label: 'block-redirected',
503-
insertText: [
504-
'{',
505-
'\t${1:command ...}',
506-
'} > ${2:file}',
507-
].join('\n'),
499+
insertText: ['{', '\t${1:command ...}', '} > ${2:file}'].join('\n'),
508500
},
509501
{
510502
documentation: 'block stderr redirected',
511503
label: 'block-stderr-redirected',
512-
insertText: [
513-
'{',
514-
'\t${1:command ...}',
515-
'} 2> ${2:file}',
516-
].join('\n'),
504+
insertText: ['{', '\t${1:command ...}', '} 2> ${2:file}'].join('\n'),
517505
},
518506
{
519507
documentation: 'variable',
@@ -588,17 +576,17 @@ export const SNIPPETS: BashCompletionItem[] = [
588576
{
589577
documentation: 'string-match',
590578
label: 'string filtering',
591-
insertText: 'sed ${1|-E -n,--regexp-extended --quiet|} \'/${2:pattern}/p\'',
579+
insertText: "sed ${1|-E -n,--regexp-extended --quiet|} '/${2:pattern}/p'",
592580
},
593581
{
594582
documentation: 'string-replace',
595583
label: 'string replacement',
596-
insertText: 'sed ${1|-E,--regexp-extended|} \'s/${2:pattern}/${3:replacement}/\'',
584+
insertText: "sed ${1|-E,--regexp-extended|} 's/${2:pattern}/${3:replacement}/'",
597585
},
598586
{
599587
documentation: 'string-replace-all',
600588
label: 'string replacement',
601-
insertText: 'sed ${1|-E,--regexp-extended|} \'s/${2:pattern}/${3:replacement}/g\'',
589+
insertText: "sed ${1|-E,--regexp-extended|} 's/${2:pattern}/${3:replacement}/g'",
602590
},
603591
{
604592
documentation: 'string-transliterate',
@@ -618,12 +606,7 @@ export const SNIPPETS: BashCompletionItem[] = [
618606
"sed ${1|-E,--regexp-extended|} ':${2:x} N $! b$2 ${3:command}' ${4:file}",
619607
},
620608
{
621-
documentation: 'node print',
622-
label: 'json',
623-
insertText: "jq '.${1:node}' ${2:file}",
624-
},
625-
{
626-
documentation: 'node print',
609+
documentation: 'json print',
627610
label: 'json',
628611
insertText: "jq '.${1:node}' ${2:file}",
629612
},

0 commit comments

Comments
 (0)