ipatalas / vscode-postfix-ts

Postfix notation for TypeScript/Javascript - extension for VS Code
MIT License
158 stars 43 forks source link

lowercase/uppercase doesn't work #119

Open dylanphantixr opened 6 days ago

dylanphantixr commented 6 days ago
{
      "name": "useState",
      "body": "const [{{expr}}, set{{expr:uppercase}}] = React.useState();",
      "when": []
  }

Starting from your capitalize example, I changed capitalize to uppercase, and it doesn't work. It results in:

const [myState, set{{expr:uppercase}}] = React.useState();

lowercase doesn't work either

dylanphantixr commented 6 days ago

Oh I see in the code that it's lower and upper, not lowercase and uppercase. Might be good to update the readme/docs.

ipatalas commented 5 days ago

Good catch, fixed it in the README, thanks!