vscode: Wrong command being executed for keybinding

Two users of Dart Code have reported this issue but I’m stuck on how to troubleshoot.

We keybind Ctrl+F5 in Dart Code to the “Flutter: Hot Reload” with a condition of inDebugMode && flutterProejctLoaded. The default Ctrl+F5 provided by VS Code has a condition of !inDebugMode so there should be no conflict.

Here’s a screenshot of the keybinds for Ctrl+F5:

screen shot 2018-07-16 at 8 46 05 am

However, when these users press Ctrl+F5 during a debug session, they see this error:

screen shot 2018-07-16 at 8 46 43 am

This error comes from Code, and I presume it’s because it’s invoking “Start Without Debugging” (the keybind when not debugging). However, the orange status bar (and that they’re trying to hot reload) suggests they are indeed in a debug session. Invoking our command from the palette works fine, so I don’t think there’s an issue with our command.

I don’t know if this is a VS Code issue, but if not, I’m hoping for some ideas on how to track down what’s happening.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 47 (30 by maintainers)

Commits related to this issue

Most upvoted comments

It’s happening to me too, but with Golang.

Thanks; will get them to try again and see what we can find.