romaomb · GitHub

Describe the bug:
It seems that whenever we set "console": "externalTerminal" or "console": "terminal" in the launch.json for Flutter apps, the configuration is being ignored and the Flutter logs are displayed in the Debug Console, even if you add "dart.cliConsole": "externalTerminal" in the settings.json. It's working fine for Dart apps, though.

@DanTup, could it be related to #3434?

To Reproduce:

  1. Create a Flutter app
  2. Create a launch configuration and set console to terminal or externalTerminal:
{
    "configurations": [
        {
            "name": "Flutter",
            "type": "dart",
            "request": "launch",
            "program": "lib\\main.dart",
            "console": "externalTerminal"
        }
    ]
}
  1. The logs will be shown in the Debug Console.

Expected behavior
See the Flutter logs in the selected terminal. For me, the most important thing is externalTerminal, since it helps me a lot with my windows placement (vscode | emulator + terminal)

Versions:

  • Windows 10
  • VS Code version: 1.63.2
  • Dart extension version: v3.32.0
  • Dart/Flutter SDK version: Dart 2.15.1 | Flutter 2.8.1

Read the original on github.com ↗