8/7/2023 0 Comments Vs code format on save![]() ![]() When this is enabled, it assumes that a nested package has it's own dart_dev configuration file and will scan for the tool directory relative to the detected nested pubspec. Enabling this is likely undesirable if your dart_dev config is in the project root or you do not have nested packages. By default, this extension always assumes that the content root (usually the project root) is the root of the Dart package.Įnabling this is desirable when the project root (or the content root) has no pubspec (and there's one nested in the project) or there is a nested dart_dev config file (with its own pubspec). This impacts the OverReact Format executable version. Because the extension will run in the context of what is determined the Dart package, it will only use the pubspec from that package. The scanning occurs along the targeted file path and therefore will not detect a pubspec file that is not within a parent directory of the file getting formatted. Scan for Nested PackagesĪllows the extension to scan for pubspec.yaml files that are nested somewhere in the project (defaulting to the project root) when the formatter runs. If both are set, Custom Line Length will take precendence and auto detection will be skipped. If Custom Line Length is greater than 0, it is considered set. NOTE: Both this and Detect Custom Line Length cannot be set at the same time. In the case you need to run the format command with a custom line-length, but the Detect Custom Line Length is not viable, it is possible to set a line-length through the extension using the "Custom Line Length" setting. This is enabled by default, but will only have an effect if the project is using OverReact Format. If OverReact Format is being used, this extension has the capability to pull a line-length from the standard dart_dev/config.dart file used to configure Workiva's DartDev tool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |