-
Notifications
You must be signed in to change notification settings - Fork 507
FIX: React snippets #543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX: React snippets #543
Conversation
Fixed the issue where multiple ${1} was used in the same snippet which raised an error in Neovim
Corrected snippet syntax to of Java public class
is this getting merged? |
Hey @ydkulks thanks! Could you resolve conflicts ? I'll merge then. |
Hi @rafamadriz, as requested, I have resolved the merge conflicts |
snippets/javascript/react-es7.json
Outdated
<<<<<<< HEAD | ||
"import React from 'react'", | ||
"", | ||
"export default function ${TM_FILENAME_BASE}() {", | ||
======= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you double check the conflicts @ydkulks, I'm still seeing a few merge conflict markers in the diff.
snippets/javascript/react.json
Outdated
@@ -1,4 +1,374 @@ | |||
{ | |||
<<<<<<< HEAD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also seeing the merge conflict marker here too
1. Retained the changes which removed import statement of react in react-es7.json file 2. Retained the changes with 2 space indents in react.json file
Thanks @ydkulks ! |
${1}
was used in the same snippet which raised an error in Neovim.${1/(.*)/${1:/capitalize}/}
does not capitalize the useState name's first letter, which raised an error. So, made a temp fix to manually enter the capitalized name.