Closed ashuvax closed 2 years ago
@dsznajder
@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
)
@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.
Replacing the first letter with a capital letter