#Apply diff when refactor selected code block
1 messages · Page 1 of 1 (latest)
this has to do with how the language server works and not the extension, in fact, i would like having this as an option too
maybe @timber cedar can help with this?
@hidden bolt do you have a screenshot of this just to make sure I'm understanding correctly? This is for cases where you select some code and click refactor?
When i click on a code block, it will show Refactor code block button (left image), when i click on a function, it will show Refactor function button (right image).
Only the Refactor function has the Apply diff button
yes, how to apply diff code block too
in the vs extension, i've made it so that when there is no selected code, the extension will auto recognize the code block where the caret is in and makes that the selection
We can see how feasible this is on our side. We have special handling for function / class definitions in languages that we parse since we have language-specific parsing understanding.