You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Applying a DartFix to a customPath does not save the file. Reading the file later with File(path).readAsStringSync() ignores any fixes applied using addXFileEdit until customPath is saved. All unsaved changes are ignored when reading file contents.
Applying SomeFix should only be possible once. After foo is added to the file, the ChangeBuilder shouldn't get created.
I noticed that the analyzer plugin gets file contents from ResourceProvider, but I don't see how to access that. There must be a more reliable way to read the file contents than File(path).readAsStringSync(), or there must be a way to save the customPath file.
The text was updated successfully, but these errors were encountered:
Describe the bug
Applying a DartFix to a
customPath
does not save the file. Reading the file later withFile(path).readAsStringSync()
ignores any fixes applied usingaddXFileEdit
untilcustomPath
is saved. All unsaved changes are ignored when reading file contents.To Reproduce
Expected behavior
Applying
SomeFix
should only be possible once. Afterfoo
is added to the file, the ChangeBuilder shouldn't get created.I noticed that the analyzer plugin gets file contents from ResourceProvider, but I don't see how to access that. There must be a more reliable way to read the file contents than
File(path).readAsStringSync()
, or there must be a way to save thecustomPath
file.The text was updated successfully, but these errors were encountered: