Skip to content

Caret doesn't move to a new widget when using "Wrap with widget..." command #3015

@kubaprzetakiewicz

Description

@kubaprzetakiewicz

Describe the bug
When using the context menu to wrap the widget in another widget, the caret doesn't move to the new parent anymore.

To Reproduce
Steps to reproduce the behavior:

  1. Position the caret inside the widget name
  2. Open the context menu / Fixes menu via either the bulb or Cmd + .
  3. Choose Wrap with widget...
  4. Observe the caret staying at the original place instead of moving to the new widget parent - this was super useful for quick selection expansion to cover the whole word.

Expected behavior
The caret should move to the new, enclosing widget.

Screenshots
screen recording of the issue

Versions

VS Code version:

Version: 1.52.0
Commit: 940b5f4bb5fa47866a54529ed759d95d09ee80be
Date: 2020-12-10T22:46:53.673Z (5 days ago)
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 20.1.0

Dart extension version:
dart-code.dart-code - v3.17.1
dart-code.flutter - v3.17.0

Dart/Flutter SDK version:

[✓] Flutter (Channel master, 1.25.0-9.0.pre.88, on macOS 11.0.1 20B50 darwin-x64, locale en-GB)
    • Flutter version 1.25.0-9.0.pre.88 at /Users/kubcio/.flutter
    • Framework revision e24e763872 (4 hours ago), 2020-12-16 07:33:03 -0500
    • Engine revision e9f2f0eaea
    • Dart version 2.12.0 (build 2.12.0-157.0.dev)

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