Describe the bug
Normally, when the context menu is used to "Wrap with widget...", the cursor automatically selects the new "widget" text so the user can immediately type the name of the new parent widget. However, when the "previewLsp" setting is enabled, the cursor does not move from where it was when the context menu was invoked.
To Reproduce
Steps to reproduce the behavior:
Ctrl + .)Expected behavior
The text cursor should immediately select the newly added "widget" text.
Versions (please complete the following information):
I looked into this, and re-discovered that it's because LSP has no support for code snippets (required to set cursor positions) in code actions. This might be a result of VS Code not having a good API for this either (the way it works in non-LSP involves custom code to apply the edit that is not trivial for LSP).
The relevant LSP issues are at:
This is fixed by #3215.
Most helpful comment
This is fixed by #3215.