"Remove widget" is not available when it's from a library imported with an alias #4169
Labels
in editor
Relates to code editing or language features
in lsp/analysis server
Something to be fixed in the Dart analysis server
is bug
Milestone
Describe the bug
When a library is imported with an alias (ex:
import 'package:flutter/material.dart' as material;
), the option "Remove widget" is not available on the widget from this library (ex:material.Center()
).To Reproduce
Steps to reproduce the behavior:
Or check out https://github.com/ValentinVignal/flutter_app_stable/tree/flutter-vscode/remove-widget.
2. Toggle the code actions on
Center
and then onmaterial.Center
.3. Notice that the code action "Remove widget" is available for
Center
but not formaterial.Center
.Expected behavior
I expected to be able to remove
Center
andmaterial.Center
Screenshots
On
Center
:On
material.Center
:Please complete the following information:
The text was updated successfully, but these errors were encountered: