r5n-dev / vscode-react-javascript-snippets

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

Replacing the first letter with a capital letter #256

Closed ashuvax closed 2 years ago

ashuvax commented 2 years ago

Replacing the first letter with a capital letter

ashuvax commented 2 years ago

@dsznajder

chillios-dev commented 2 years ago

@ashuvax it's still not the way as this won't work on snippet. the PLACEHOLDERS are replaced in ongoing process not one time on generation. This should be applied during replacement at snippet providing. Take a look at documentations on VSCode placeholder variables and how to interact with them. Closing for now as it's not working correctly. Please also check your changes by using development extension build (Stock alias is F5)

ashuvax commented 2 years ago

@dsznajder When I try to run by f5 I get the following error I would love if you could help me:

Activating extension 'dsznajder.es7-react-js-snippets' failed: Cannot find module 'c: \ Users \ aron \ Documents \ vscode-react-javascript-snippets \ lib \ index.js' Require stack: - c: \ Users \ aron \ AppData \ Local \ Programs \ Microsoft VS Code \ resources \ app \ out \ vs \ loader.js - c: \ Users \ aron \ AppData \ Local \ Programs \ Microsoft VS Code \ resources \ app \ out \ bootstrap- amd.js - c: \ Users \ aron \ AppData \ Local \ Programs \ Microsoft VS Code \ resources \ app \ out \ bootstrap-fork.js.

[dsznajder.es7-react-js-snippets]: The snippet file "file: ///c%3A/Users/aron/Documents/vscode-react-javascript-snippets/lib/snippets/generated.json" could not be read.