Vitaly
Vitaly
Hey, @AgentRBY I pushed a few changes: - now we support code actions with snippet, but I didn't update code actions, just merged develop - showed you how its possible...
I think all code actions except wrap into memo and useCallback should use snippet edit, see declareMissingProperties.ts for example
Would you be up for cleaning up wrap memo & callback actions? (if you like the idea I showed in useMemo action) ALso I'm currently thinking of how its possible...
Would you be up for cleaning up wrap memo & callback actions? (if you like the idea I showed in useMemo action) ALso I'm currently thinking of how its possible...
@CodiumAI-Agent /review
Will be enabled by default. + add a setting to remove them instead
> Create ref I suppose *before* example should contain not defined indentifier, so this is quickfix to define ref with the name (similar to `Create (prop_name) prop` or builtin define...
Get props clue: https://github.com/tamj0rd2/ts-quickfixes/blob/6635d5b4a2ccd8fbd2831ae280fd2f1bd8577ca0/packages/plugin/src/helpers.ts#L124
I think this can be done with [p42: split declaration and initialization](https://p42.ai/documentation/code-assist/split-variable-declaration-and-initialization) and than wrapping current line into try try-catch with either the same p42 action or Surround extension. The...
> The idea seems interesting, but didn't have experience to make such code actions that infers variable type (I really wanted to make similar code action for extracting selection into...