r5n-dev / vscode-react-javascript-snippets

Extension for React/Javascript snippets with search supporting ES7+ and babel features
MIT License
1.72k stars 441 forks source link

`clg` semicolon #218

Closed mecirmartin closed 2 years ago

mecirmartin commented 2 years ago

Hey, your extension is great, but i have trouble with clg each and every day When using arrow function and clg snippet, the semicolon at the end introduces syntax error

For example: i am writing code like this:

fetch('x').then(res => clg)

this creates

fetch('x').then(res => console.log();)

which is obviously syntax error and i have to remove the semicolon is there any chance the semicolon could be removed from the snippet? Thanks for the answer

Would love to create PR for this issue

mecirmartin commented 2 years ago

@dsznajder Created PR for this issue #219

ice-chillios commented 2 years ago

@mecirmartin Fixed in v4.3.1