You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SyntaxEditor should handle transform any node in an edit that reference the original syntax tree into their mutable equivalents, but seems like I forgot this case for the new nodes in replace edits 😅. For now it should be okay to use clone_for_update and add a fixme, and then we can remove those fixmes once SyntaxEditor is fixed.
Would this also mean we can remove clone_for_update from methods in syntax::ast::syntax_factory::constructors, or should we only handle making mutable clones for nodes found in the SyntaxEditor's original tree?
SyntaxEditor
should handle transform any node in an edit that reference the original syntax tree into their mutable equivalents, but seems like I forgot this case for the new nodes in replace edits 😅. For now it should be okay to useclone_for_update
and add a fixme, and then we can remove those fixmes onceSyntaxEditor
is fixed.Originally posted by @DropDemBits in #18495 (comment)
The text was updated successfully, but these errors were encountered: