-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris enhancement
Milestone
Description
- Have two files, as described below.
- Attempt to rename foo into _foo.
Got:
Alert appears: Renamed top level variable will be invisible in ''.
There is no option to force the rename.
Expected:
Alert appears: Renamed top level variable will be invisible in main.dart
Alert has "Force" button that renames anyway - I would like to rename and then fix the errors.
This is especially annoying if given item is used 100x times in one file and 10x in other files, because now you have to find all references of it, remove them, and then attempt the rename again. Overall takes much longer than forced rename which we had before.
Sample files:
// main.dart
import 'other.dart';
void main(List<String> arguments) {
print('Hello world! $foo');
}// other.dart
var foo = 1;
Metadata
Metadata
Assignees
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris enhancement