Skip to content

"Wrap with widget" does not move the text cursor to the new parent widget when the 'previewLsp' setting is enabled #3143

@doppio

Description

@doppio

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:

  1. Enable the "previewLsp" setting
  2. Move the text cursor to a widget name
  3. Open the context menu (Ctrl + .)
  4. Select "Wrap with widget..."

Expected behavior
The text cursor should immediately select the newly added "widget" text.

Versions (please complete the following information):

  • VS Code version: 1.53.2
  • Dart extension version: 3.19.2
  • Dart/Flutter SDK version: Dart 2.12.0, Flutter 1.26.0-17.5.pre

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions