fix(50415): Language server debug failure - Did not expect GetAccessor to have an Identifier in its trivia - #50470
Conversation
bd27b3b to
8856f78
Compare
Daniel Rosenwasser (@DanielRosenwasser) We need to clone nodes only for one of them - TypeScript/src/services/codefixes/helpers.ts Lines 82 to 84 in 0715791 |
|
I understand that - I guess it doesn't entirely matter, but there are so many defensive copies all over the method other than in the updated section of code that I felt like it was probably better to be consistent than risk someone else glancing at the one place where we don't do a defensive copy. If you're open to it, I was thinking of switching |
|
Looks good to me, thanks. I don't really have an opinion on what Daniel suggested, so it's up to you and him. |
|
Gabriela Araujo Britto (@gabritto) I'll add updates |
Fixes #50415