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
{{ message }}
Repository navigation
VSCode Dart Extension // customTool arg does not work with flutter #3756
Describe the bug
When using the "customTool" property of the vscode launch.config, the dart extension ignores it if it's a flutter project rather than a dart project.
To Reproduce
Steps to reproduce the behavior:
Create a flutter project flutter create -t app custom_tool_flutter_test
Create a launch.config inside the .vscode directory:
Observe that the output implies the customTool was ignored:
Launching lib/main.dart on macOS in debug mode...
Expected behavior
The "echo" binary should have been used instead of the "flutter" binary and resulted in all arguments originally passed to flutter being echoed to the console output. No dart or flutter files should have been compiled or run.
Versions (please complete the following information):
Thanks! I could repro this - there are two ways of using custom tools for Flutter (one is for Bazel workspaces using flutter.json), and the second one was incorrectly always overwriting the first (even when it was undefined).
Activity
DanTup commentedon Jan 4, 2022
Thanks! I could repro this - there are two ways of using custom tools for Flutter (one is for Bazel workspaces using
flutter.json), and the second one was incorrectly always overwriting the first (even when it was undefined).