Skip to content
This repository was archived by the owner on Apr 8, 2023. It is now read-only.

Commit 0ffe756

Browse files
committed
v0.7.1 Fix some mistakes with
semi-colons and closing brackets
1 parent 25e8fcb commit 0ffe756

File tree

7 files changed

+150
-133
lines changed

7 files changed

+150
-133
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this extension will be documented in this file.
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7+
## [0.7.1] - 2021-09-15
8+
9+
### Fixed
10+
11+
- Fixed some mistakes with missing semi-colons and closing brackets.
12+
- Fixed link to Open VSX marketplace.
13+
714
## [0.7.0] - 2021-08-21
815

916
### Changed

README.md

+118-108
Original file line numberDiff line numberDiff line change
@@ -48,113 +48,121 @@ You can install the [Snippets Ranger extension](https://marketplace.visualstudio
4848

4949
I didn't repeat any of the builtin JavaScript snippets (see [FAQ for more](#where-do-the-standard-markdown-snippets-come-from)).
5050

51-
<table data-path="/home/rob/programming/workspace/js/VS Code/vscode-javascript-snippets/snippets/snippets.code-snippets">
52-
<thead><tr><th>Prefix</th><th>Name</th><th>Description</th><th>Body</th><th>Action</th></tr></thead>
53-
<tbody><tr>
54-
<td>array concat</td>
55-
<td>Array.prototype.concat</td>
56-
<td>Joins two or more arrays, and returns a copy of the joined arrays</td><td><code>let ${1:newArray} = ${2:array1}.concat(${3:array2})<br>$0<br></code></td>
57-
58-
</tr><tr>
59-
<td>array copyWithin</td>
60-
<td>Array.prototype.copyWithin</td>
61-
<td>Copies array elements within the array, to and from specified positions. Syntax: array.copyWithin(target, start, end).</td><td><code>${1:array}.copyWithin(${1:target}, ${2:start}, ${3:end});<br>$0<br></code></td>
62-
63-
</tr><tr>
64-
<td>array every</td>
65-
<td>Array.prototype.every</td>
66-
<td>Checks if every element in an array pass a test.</td><td><code>let ${1:boolean} = ${2:array}.every((${3:item}) =&gt; {<br> return $4<br>}<br>$0<br></code></td>
67-
68-
</tr><tr>
69-
<td>array fill</td>
70-
<td>Array.prototype.fill</td>
71-
<td>Fill the elements in an array with a static value.</td><td><code>${1:array}.fill(${1:target}, ${2:start}, ${3:end});<br>$0<br></code></td>
72-
73-
</tr><tr>
74-
<td>array filter</td>
75-
<td>Array.prototype.filter</td>
76-
<td>Creates a new array with every element in an array that pass a test</td><td><code>let ${1:newArray} = ${2:array}.filter((${3:item}) =&gt; {<br> return $4<br>}<br>$0<br></code></td>
77-
78-
</tr><tr>
79-
<td>array find</td>
80-
<td>Array.prototype.find</td>
81-
<td>Returns the value of the first element in an array that pass a test.</td><td><code>let ${1:result} = ${2:array}.find((${3:item}) =&gt; {<br> return $4<br>}<br>$0<br></code></td>
82-
83-
</tr><tr>
84-
<td>array findIndex</td>
85-
<td>Array.prototype.findIndex</td>
86-
<td>Returns the index of the first element in an array that pass a test</td><td><code>let ${1:result} = ${2:array}.findIndex((${3:item}) =&gt; {<br> return $4<br>}<br>$0<br></code></td>
87-
88-
</tr><tr>
89-
<td>array includes</td>
90-
<td>Array.prototype.includes</td>
91-
<td>Check if an array contains the specified element. It is case sensitive.</td><td><code>let ${1:boolean} = ${2:array}.includes(${3:element}, ${4:start})<br>$0<br></code></td>
92-
93-
</tr><tr>
94-
<td>array indexOf</td>
95-
<td>Array.prototype.indexOf</td>
96-
<td>Search the array for an element and return its position.</td><td><code>let ${1:index} = ${2:array}.indexOf(${3:item}, ${4:start})<br>$0<br></code></td>
97-
98-
</tr><tr>
99-
<td>array map</td>
100-
<td>Array.prototype.map</td>
101-
<td>Creates a new array populated with the results of calling the provided function on every element in the array.</td><td><code>let ${1:newArray} = ${2:array}.map((${3:item}) =&gt; {<br> return $4<br>}<br>$0<br></code></td>
102-
103-
</tr><tr>
104-
<td>array push</td>
105-
<td>Array.prototype.push</td>
106-
<td>Add new items to the end of an array.</td><td><code>${1:array}.push((${2:items});<br>$0<br></code></td>
107-
108-
</tr><tr>
109-
<td>array reduce</td>
110-
<td>Array.prototype.reduce</td>
111-
<td>Reduce the values of an array to a single value (going left-to-right).</td><td><code>let ${1:newArray} = ${2:array}.reduce((accumulator, currentValue) =&gt; {<br> return $4<br>}<br>$0<br></code></td>
112-
113-
</tr><tr>
114-
<td>array reduceRight</td>
115-
<td>Array.prototype.reduceRight</td>
116-
<td>Reduce the values of an array to a single value (going left-to-right).</td><td><code>let ${1:newArray} = ${2:array}.reduceRight((accumulator, currentValue) =&gt; {<br> return $4<br>}<br>$0<br></code></td>
117-
118-
</tr><tr>
119-
<td>array slice</td>
120-
<td>Array.prototype.slice</td>
121-
<td>Selects a part of an array, and returns the new array.</td><td><code>let ${1:newArray} = ${2:array}.slice(${3:start}, ${4:end});<br>${0}<br></code></td>
122-
123-
</tr><tr>
124-
<td>array some</td>
125-
<td>Array.prototype.some</td>
126-
<td>Checks if any of the elements in an array pass a test.</td><td><code>let ${1:result} = ${2:array}.some((${3:item}) =&gt; {<br> return $4<br>}<br>${0}<br></code></td>
127-
128-
</tr><tr>
129-
<td>array splice</td>
130-
<td>Array.prototype.splice</td>
131-
<td>Adds/Removes elements from an array.</td><td><code>${1:array}.splice(${3:index}, ${4:howManyToRemove}, ${5:newItems});<br>${0}<br></code></td>
132-
133-
</tr><tr>
134-
<td>array unshift</td>
135-
<td>Array.prototype.unshift</td>
136-
<td>Adds new elements to the beginning of an array, and returns the new length.</td><td><code>${1:array}.unshift(${3:items});<br>${0}<br></code></td>
137-
138-
</tr><tr>
139-
<td>array destructure</td>
140-
<td>Array destructure</td>
141-
<td>Assign values from array elements to new variables using destructuring.</td><td><code>const [${1:variables}] = ${2:arrayName};<br>$0<br></code></td>
142-
</tr><tr>
143-
144-
<td>json parse</td>
145-
<td>json parse</td>
146-
<td>Parses a JSON string and returns a JavaScript object.</td><td><code>let ${1:obj} = JSON.parse(${2:string});<br> $0</code></td>
147-
148-
</tr><tr>
149-
<td>json stringify</td>
150-
<td>json stringify</td>
151-
<td>Convert a JavaScript object to a JSON string.</td><td><code>let ${1:string} = JSON.parse(${2:obj});<br/>$0</code></td>
152-
153-
</tr></tbody></table>
51+
<table>
52+
<thead>
53+
<tr>
54+
<th>Prefix</th>
55+
<th>Description</th>
56+
<th>Body</th>
57+
</tr>
58+
</thead>
59+
<tbody>
60+
<tr>
61+
<td>array concat</td>
62+
<td>Joins two or more arrays, and returns a copy of the joined arrays</td>
63+
<td>let ${1:newArray} = ${2:array1}.concat(${3:array2});<br>$0<br></td>
64+
</tr>
65+
<tr>
66+
<td>array copyWithin</td>
67+
<td>Copies array elements within the array, to and from specified positions. Syntax: array.copyWithin(target, start, end).</td>
68+
<td>${1:array}.copyWithin(${2:target}, ${3:start}, ${4:end});<br>$0<br></td>
69+
</tr>
70+
<tr>
71+
<td>array every</td>
72+
<td>Checks if every element in an array pass a test.</td>
73+
<td>let ${1:boolean} = ${2:array}.every((${3:item}) =&gt; {<br> $4<br>});<br>$0<br></td>
74+
</tr>
75+
<tr>
76+
<td>array fill</td>
77+
<td>Fill the elements in an array with a static value.</td>
78+
<td>${1:array}.fill(${2:target}, ${3:start}, ${4:end});<br>$0<br></td>
79+
</tr>
80+
<tr>
81+
<td>array filter</td>
82+
<td>Creates a new array with every element in an array that pass a test</td>
83+
<td>let ${1:newArray} = ${2:array}.filter((${3:item}) =&gt; {<br> $4<br>});<br>$0<br></td>
84+
</tr>
85+
<tr>
86+
<td>array find</td>
87+
<td>Returns the value of the first element in an array that pass a test.</td>
88+
<td>let ${1:result} = ${2:array}.find((${3:item}) =&gt; {<br> $4<br>});<br>$0<br></td>
89+
</tr>
90+
<tr>
91+
<td>array findIndex</td>
92+
<td>Returns the index of the first element in an array that pass a test</td>
93+
<td>let ${1:result} = ${2:array}.findIndex((${3:item}) =&gt; {<br> $4<br>});<br>$0<br></td>
94+
</tr>
95+
<tr>
96+
<td>array includes</td>
97+
<td>Check if an array contains the specified element. It is case sensitive.</td>
98+
<td>let ${1:boolean} = ${2:array}.includes(${3:element}, ${4:start});<br>$0<br></td>
99+
</tr>
100+
<tr>
101+
<td>array indexOf</td>
102+
<td>Search the array for an element and return its position.</td>
103+
<td>let ${1:index} = ${2:array}.indexOf(${3:item}, ${4:start});<br>$0<br></td>
104+
</tr>
105+
<tr>
106+
<td>array map</td>
107+
<td>Creates a new array populated with the results of calling the provided function on every element in the array.</td>
108+
<td>let ${1:newArray} = ${2:array}.map((${3:item}) =&gt; {<br> $4<br>});<br>$0<br></td>
109+
</tr>
110+
<tr>
111+
<td>array push</td>
112+
<td>Add new items to the end of an array.</td>
113+
<td>${1:array}.push(${2:items});<br>$0<br></td>
114+
</tr>
115+
<tr>
116+
<td>array reduce</td>
117+
<td>Reduce the values of an array to a single value (going left-to-right).</td>
118+
<td>let ${1:newValue} = ${2:array}.reduce((sum, currentValue) =&gt; {<br> $4<br>});<br>$0<br></td>
119+
</tr>
120+
<tr>
121+
<td>array reduceRight</td>
122+
<td>Reduce the values of an array to a single value (going left-to-right).</td>
123+
<td>let ${1:newValue} = ${2:array}.reduceRight((sum, currentValue) =&gt; {<br> $4<br>});<br>$0<br></td>
124+
</tr>
125+
<tr>
126+
<td>array slice</td>
127+
<td>Selects a part of an array, and returns the new array.</td>
128+
<td>let ${1:newArray} = ${2:array}.slice(${3:start}, ${4:end});<br>${0}<br></td>
129+
</tr>
130+
<tr>
131+
<td>array some</td>
132+
<td>Checks if any of the elements in an array pass a test.</td>
133+
<td>let ${1:result} = ${2:array}.some((${3:item}) =&gt; {<br> $4<br>});<br>${0}<br></td>
134+
</tr>
135+
<tr>
136+
<td>array splice</td>
137+
<td>Adds/Removes elements from an array.</td>
138+
<td>${1:array}.splice(${3:index}, ${4:howManyToRemove}, ${5:newItems});<br>${0}<br></td>
139+
</tr>
140+
<tr>
141+
<td>array unshift</td>
142+
<td>Adds new elements to the beginning of an array, and returns the new length.</td>
143+
<td>${1:array}.unshift(${3:items});<br>${0}<br></td>
144+
</tr>
145+
<tr>
146+
<td>array destructure</td>
147+
<td>Assign values from array elements to new variables using destructuring.</td>
148+
<td>const [${1:variables}] = ${2:arrayName};<br>$0<br></td>
149+
</tr>
150+
<tr>
151+
<td>json parse</td>
152+
<td>Parses a JSON string and returns a JavaScript object</td>
153+
<td>let ${1:obj} = JSON.parse(${2:string});<br>$0<br></td>
154+
</tr>
155+
<tr>
156+
<td>json stringify</td>
157+
<td>Convert a JavaScript object to a JSON string.</td>
158+
<td>let ${1:string} = JSON.parse(${2:obj});<br>$0<br></td>
159+
</tr>
160+
</tbody>
161+
</table>
154162

155163
## Installation
156164

157-
1. The extension is listed in the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=robole.javascript-snippets) and [Open VSX Marketplace](https://open-vsx.org/extension/robole/markdown-snippets) where you can download or install it directly.
165+
1. The extension is listed in the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=robole.javascript-snippets) and [Open VSX Marketplace](https://open-vsx.org/extension/robole/javascript-snippets) where you can download or install it directly.
158166
1. From the Command-line: Run the command `code --install-extension robole.javascript-snippets`.
159167

160168
## FAQ
@@ -203,13 +211,15 @@ The `args.name` property <u>must exactly match</u> the snippet name.
203211

204212
You can read my comprehensive guide on Snippets on FreeCodeCamp: [Visual Studio Code Snippets – the Definitive VS Code Snippet Guide for Beginners](https://www.freecodecamp.org/news/definitive-guide-to-snippets-visual-studio-code/). It's not just for beginners! 😉
205213

206-
## Show gratitude
214+
## Show appreciation
207215

208-
If you are happy with the extension, please star the repo, and leave a review to help others find it. 🌟🌟🌟🌟🌟
216+
If you are happy with the extension: please star the repo 🌟, and [leave a review in the visual studio marketplace](https://marketplace.visualstudio.com/items?itemName=robole.marky-stats&ssr=false#review-details) to help others find it. 🌟🌟🌟🌟🌟
209217

210-
You can [buy me a coffee](https://ko-fi.com/roboleary) if you would like to enable me to make more great open-source software and tutorials. ☕🙏
218+
You can show your appreciation by [buying me a coffee or sponsoring me](https://ko-fi.com/roboleary). This will offer me encouragement to continue, and will provide a path to dedicating more time to open-source in the future.
211219

212-
[![buy me a coffee on kofi](img/buymeacoffee.png)](https://ko-fi.com/roboleary)
220+
<p align="center">
221+
<a href="https://ko-fi.com/roboleary"><img src="img/coffee.png" alt="buy me a coffee"></a>
222+
</p>
213223

214224
## Image Attribution
215225

img/buymeacoffee.png

-37.5 KB
Binary file not shown.

img/coffee.png

8.86 KB
Loading

img/demo.gif

1.44 MB
Loading

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"description": "Descriptive, easy to find JavaScript snippets, without nonsense abbreviations.",
99
"icon": "img/logo.png",
10-
"version": "0.7.0",
10+
"version": "0.7.1",
1111
"engines": {
1212
"vscode": ">=1.0.0"
1313
},

0 commit comments

Comments
 (0)