flutter-update-exports READMEFlutter Update Exports is a VSCode extension that simplifies keeping export statements up-to-date. MotivationIn Flutter development, it is a common practice to develop a library
or collection of For example, this is a common layout:
It is also common to see this same hierarchy, but separated by a
These top-level But keeping these top-level files in sync while "in the zone" like in the middle of a large refactor is a pain and a major distraction. The motivation for this VSCode extension is to make it easy to quickly update these export files to reduce the pain and distraction. FeaturesFlutter Update Exports has two modes depending on which The first mode is called "In-target mode." In this mode, the extension attempts to modify the file it is run on. The second mode is called "In-child-dir mode." In this mode, the extension attempts to modify a single file in the current file's parent directory. How it determines which mode it is in depends on the name of the current file, its contents, and the names of the directories in the file's current directory. In-target modeIf the current Alternatively, if the current For example, if "Flutter Update Exports" is invoked on a file called
In-child-dir modeIf the extension is not in "In-target mode", it defaults to "In-child-dir
mode." In this mode, a new file in the parent directory will be edited
or created with As a special case, if the name of the parent directory itself is within
a For example, if "Flutter Update Exports" is invoked on a file called
For the special case example, if "Flutter Update Exports" is invoked on
a file called Reporting ProblemsIt is my goal to be able to use this plugin on large group projects, so every attempt has been made to make this robust. If, however, problems are found, please raise issues on the GitHub issue tracker for this repo along with a (short) example demonstrating the "before" and "after" results of running this plugin on the example code. Even better, please submit a PR with your new "before"/"after" example coded-up as a unit test along with the code to fix the problem, and I'll try to incorporate the fix into the plugin. Please remember to state which version of the plugin you are using! Known Issues
Release Notes0.0.2
0.0.1
Enjoy! LicenseCopyright 2019 Glenn M. Lewis. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |