-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use
/
in relative path for Windows (#788)
## Description As we all know, Windows uses `\` as a path separator, so it is reasonable to generate configs that use the same separator for Windows. But for *Run Configurations* and *Pubspec Dependencies*, `/` works on all platforms. Using `/` will significantly reduce the pain when those configurations are checked out to their code version control. This is first implemented by 86a87a6. ### Diff on Windows Before: ```xml <component name="ProjectRunConfigurationManager"> <configuration default="false" name="Flutter Run -> 'app'" type="FlutterRunConfigurationType" factoryName="Flutter"> <option name="filePath" value="$PROJECT_DIR$/app\lib\main.dart" /> <method v="2" /> </configuration> </component> ``` ```yaml dependency_overrides: package_a: path: ..\\package_a ``` After: ```xml <component name="ProjectRunConfigurationManager"> <configuration default="false" name="Flutter Run -> 'app'" type="FlutterRunConfigurationType" factoryName="Flutter"> <option name="filePath" value="$PROJECT_DIR$/app/lib/main.dart" /> <method v="2" /> </configuration> </component> ``` ```yaml dependency_overrides: package_a: path: ../package_a ``` ## Type of Change * [x] 🛠️ `fix` -- Bug fix (non-breaking change which fixes an issue)
- Loading branch information
Showing
4 changed files
with
59 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters