LSP Renaming applies changes to the next adjacent word to the previous word
johmsalas opened this issue · 0 comments
johmsalas commented
When the cursor is located in a non word character, the system does not compute correctly the word value and its position
In the following example,
const [currentStep, setCurrentStep] = useState(1)
when the cursor is located on the "," when LSP renaming is used, this is the result:
const [SET_CURRENT_STEP, setCurrentStep] = useState(1)
The plugin reads the word definition from setCurrentStep
and applies on currentStep
's position