Skip to content
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

Merged
6 commits merged into from
Aug 11, 2021
Merged

Add logging, test for #10875 #10907

6 commits merged into from
Aug 11, 2021

Conversation

zadjii-msft
Copy link
Member

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

  • Closes nothing
  • I work here
  • Tests added, and they absolutely fail, but they're localtests, so ¯\_(ツ)_/¯
  • [n/a] Requires documentation to be updated

details

While I was here, I noticed that KeyBindingsTests::KeyChords has been broken for some time now. So I fixed that too.

@github-actions

This comment has been minimized.

@zadjii-msft zadjii-msft added Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. Product-Terminal The new Windows Terminal. labels Aug 11, 2021
@zadjii-msft zadjii-msft requested a review from lhecker August 11, 2021 10:52
Copy link
Member

@lhecker lhecker left a 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.

src/cascadia/Remoting/Monarch.cpp Outdated Show resolved Hide resolved
const auto result = ::RegisterHotKey(_window.get(), index, hotkeyFlags, vkey);
LOG_IF_WIN32_BOOL_FALSE(result);

TraceLoggingWrite(g_hWindowsTerminalProvider,
Copy link
Member

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?

Copy link
Member Author

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 ¯\_(ツ)_/¯

@zadjii-msft zadjii-msft added the AutoMerge Marked for automatic merge by the bot when requirements are met label Aug 11, 2021
@ghost
Copy link

ghost commented Aug 11, 2021

Hello @zadjii-msft!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

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 (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 9c858cd into main Aug 11, 2021
@ghost ghost deleted the dev/migrie/b/10875-tests-only branch August 11, 2021 15:20
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. AutoMerge Marked for automatic merge by the bot when requirements are met Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants