Skip to content

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

Merged
merged 4 commits into from
Apr 29, 2025
Merged

FIX: React snippets #543

merged 4 commits into from
Apr 29, 2025

Conversation

ydkulks
Copy link
Contributor

@ydkulks ydkulks commented Jan 2, 2025

  1. Fixed the issue where multiple ${1} was used in the same snippet which raised an error in Neovim.
  2. Also for useState snippet, ${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.

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
@GianlucaP106
Copy link

is this getting merged?

@rafamadriz
Copy link
Owner

Hey @ydkulks thanks! Could you resolve conflicts ? I'll merge then.

@ydkulks
Copy link
Contributor Author

ydkulks commented Apr 14, 2025

Hi @rafamadriz, as requested, I have resolved the merge conflicts

Comment on lines 1062 to 1066
<<<<<<< HEAD
"import React from 'react'",
"",
"export default function ${TM_FILENAME_BASE}() {",
=======
Copy link
Collaborator

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.

@@ -1,4 +1,374 @@
{
<<<<<<< HEAD
Copy link
Collaborator

@OkelleyDevelopment OkelleyDevelopment Apr 20, 2025

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
@rafamadriz
Copy link
Owner

Thanks @ydkulks !

@rafamadriz rafamadriz merged commit 572f566 into rafamadriz:main Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants