forked from microsoft/terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR 7101178: Remove the OneCore redirects for MapVkey/VkeyScan/GetKeyS…
…tate In !1806141, MapVirtualKey and VkKeyScan became part of OneCore (yeah, in 2018!). GetKeyState I can't quite figure out... but it looks like the places we would use it (Win32 Window and Selection) already either don't exist (window) or don't work (selection) in OneCore conhost. Removing these redirects reduces our maintenance burden quite a bit. Because we had to run all keyboard code through the service locator, anything that had a dependency on key translation needed to link the entire console host. Therefore, for anything that conhost depended upon, so did the unit test binaries. Ugh. I chose to keep TranslateCharsetInfo, even though it looks like gdi32 is hosted in OneCore and the code appears as though it would work. It was not in my critical path, and is a very basic local lookup that only powers whether gridlines are available and the console's "Lang ID". TEST RESULTS FROM ONECORE Microsoft.Console.Host.FeatureTests.dll Summary: Total=408, Passed=140, Failed=266, Blocked=0, Not Run=0, Skipped=2 I do not know how to make sure that the feature tests run properly on OneCore. It looks like ModuleSetup is failing, which is unlikely to be related to this change (especially given that conhost *does* launch.) If I re-run the categories individually, they either pass or get marked as skipped intentionally. Microsoft.Console.Host.IntegrityTests.dll Summary: Total=5, Passed=0, Failed=5, Blocked=0, Not Run=0, Skipped=0 Same. Microsoft.Console.Interactivity.Win32.UnitTests.dll Summary: Total=392, Passed=392, Failed=0, Blocked=0, Not Run=0, Skipped=0 Microsoft.Console.TextBuffer.UnitTests.dll Summary: Total=27, Passed=27, Failed=0, Blocked=0, Not Run=0, Skipped=0 Microsoft.Console.Host.UIAutomationTests.dll Summary: Total=6, Passed=0, Failed=0, Blocked=6, Not Run=0, Skipped=0 Microsoft.Console.Types.UnitTests.dll Summary: Total=8, Passed=8, Failed=0, Blocked=0, Not Run=0, Skipped=0 Microsoft.Terminal.Til.UnitTests.dll Summary: Total=290, Passed=290, Failed=0, Blocked=0, Not Run=0, Skipped=0 Microsoft.Console.VirtualTerminal.Parser.UnitTests.dll Summary: Total=748, Passed=747, Failed=0, Blocked=0, Not Run=0, Skipped=1 Microsoft.Console.VirtualTerminal.Adapter.UnitTests.dll Summary: Total=222, Passed=222, Failed=0, Blocked=0, Not Run=0, Skipped=0 Microsoft.Console.Host.UnitTests.dll Summary: Total=5235, Passed=5222, Failed=0, Blocked=12, Not Run=0, Skipped=1 Retrieved from https://microsoft.visualstudio.com os.2020 OS official/rs_wdx_dxp_windev c4c0267e1139d8d205bc9995da7906e5b09f03db Related work items: MSFT-38632962
- Loading branch information
Showing
23 changed files
with
23 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.