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
{{ message }}
Repository navigation
Wrapping a widget moves the cursor to the closing bracket #4061
@bwilkerson this sounds reasonable to me and would be a fairly simple fix. Although the cursor defaulting to the end of the string may be LSP-specific (there is an implicit final tabstop at the end of any snippet if there isn't an explicit one) so I don't know how adding a selection offset to the edit may affect other clients. Any thoughts?
The change I would propose is something like this:
The same assist in IntelliJ currently leaves the cursor at the same offset as before the edit was applied, so adding a reasonable selection point seems like a win there as well.
Activity
DanTup commentedon Jul 18, 2022
@bwilkerson this sounds reasonable to me and would be a fairly simple fix. Although the cursor defaulting to the end of the string may be LSP-specific (there is an implicit final tabstop at the end of any snippet if there isn't an explicit one) so I don't know how adding a selection offset to the edit may affect other clients. Any thoughts?
The change I would propose is something like this:
bwilkerson commentedon Jul 18, 2022
The same assist in IntelliJ currently leaves the cursor at the same offset as before the edit was applied, so adding a reasonable selection point seems like a win there as well.
[analysis_server] Set selection/selectionLength for Flutter "Wrap wit…