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:
However, when these users press Ctrl
+F5
during a debug session, they see this error:
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
- debug: simplify context keys computation fixes #54378 — committed to microsoft/vscode by isidorn 6 years ago
It’s happening to me too, but with Golang.
Thanks; will get them to try again and see what we can find.