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
Here, I'd really want the cursor to end up on A, such that I can rename it. I've looked into quickly fixing this, and it seems we simply don't have an API for that!
What I'd love the API to look like is either this:
…ykril
internal: Migrate assists to the structured snippet API, part 6/7
Continuing from #16082
Migrates the following assists:
- `extract_function`
- `generate_getter_or_setter`
- `generate_impl`
- `generate_new`
- `replace_derive_with_manual_impl`
Would've been the final PR in the structured snippet migration series, but I didn't notice that `generate_trait_from_impl` started to use `{insert,replace}_snippet` when I first started the migration 😅. This appears to be a pretty self-contained change, so I'll leave that for a separate future PR.
This also removes the last usages of `render_snippet`, which was a follow up goal of #11638. 🎉
…opDemBits
internal: Migrate assists to the structured snippet API, part 6/7
Continuing from #16082
Migrates the following assists:
- `extract_function`
- `generate_getter_or_setter`
- `generate_impl`
- `generate_new`
- `replace_derive_with_manual_impl`
Would've been the final PR in the structured snippet migration series, but I didn't notice that `generate_trait_from_impl` started to use `{insert,replace}_snippet` when I first started the migration 😅. This appears to be a pretty self-contained change, so I'll leave that for a separate future PR.
This also removes the last usages of `render_snippet`, which was a follow up goal of #11638. 🎉
Some of our assists don't place cursor correctly:
Peek.2022-03-06.17-00.mp4
Here, I'd really want the cursor to end up on A, such that I can rename it. I've looked into quickly fixing this, and it seems we simply don't have an API for that!
What I'd love the API to look like is either this:
or this
After we have this API, we should
render_snippet
API and see if we can replace that with structured editing.The text was updated successfully, but these errors were encountered: