Skip to content

clg semicolon #218

Closed
Closed
@mecirmartin

Description

@mecirmartin

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

Activity

changed the title [-]console.log semicolon[/-] [+]`clg` semicolon[/+] on Jan 22, 2022
mecirmartin

mecirmartin commented on Jan 22, 2022

@mecirmartin
Author

@dsznajder
Created PR for this issue #219

ice-chillios

ice-chillios commented on Feb 8, 2022

@ice-chillios
Member

@mecirmartin Fixed in v4.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @ice-chillios@mecirmartin

      Issue actions

        `clg` semicolon · Issue #218 · r5n-labs/vscode-react-javascript-snippets