-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add logging, test for #10875 #10907
Add logging, test for #10875 #10907
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: I'm going to remove the MapVirtualKeyW(hotkey.ScanCode(), MAPVK_VSC_TO_VK);
in RegisterHotKey
in a future PR.
const auto result = ::RegisterHotKey(_window.get(), index, hotkeyFlags, vkey); | ||
LOG_IF_WIN32_BOOL_FALSE(result); | ||
|
||
TraceLoggingWrite(g_hWindowsTerminalProvider, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this when we now have the TraceLoggingWrite
in the caller?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO yes - they're logging different things. Theoretically they could be combined, but that would be more plumbing to get all the values in one place so meh ¯\_(ツ)_/¯
Hello @zadjii-msft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Summary of the Pull Request
This isn't a fix for #10875, but it is logging that help identify the root cause here. The logging may additionally be helpful for some of the other issues we're seeing elsewhere in the repo, namely #10340.
@lhecker is actually working on the fix for #10875, so hopefully this test will help validate.
References
PR Checklist
details
While I was here, I noticed that
KeyBindingsTests::KeyChords
has been broken for some time now. So I fixed that too.