[PR #2927] [MERGED] teach wil about c++/winrt exceptions by including cppwinrt.h #25152

Open
opened 2026-01-31 09:07:38 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/2927
Author: @DHowett-MSFT
Created: 9/27/2019
Status: ✅ Merged
Merged: 9/30/2019
Merged by: @DHowett-MSFT

Base: master ← Head: dev/duhowett/WHYWILWHY


📝 Commits (1)

  • c8f9bf8 teach wil about c++/winrt exceptions by including cppwinrt.h

📊 Changes

5 files changed (+10 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalApp/lib/pch.h (+2 -0)
📝 src/cascadia/TerminalConnection/pch.h (+2 -0)
📝 src/cascadia/TerminalControl/pch.h (+2 -0)
📝 src/cascadia/TerminalSettings/pch.h (+1 -0)
📝 src/cascadia/WindowsTerminal/pch.h (+3 -0)

📄 Description

It turns out that if you CATCH_LOG without including this file, and you
end up catching a C++/WinRT hresult_exception, IT TURNS IT INTO A
FAILFAST.

Fixes #2591
Fixes #2881
Fixes #2807

PR Checklist

  • Closes some issues
  • author works here
  • Tests still pass
  • Requires documentation to be updated
  • I've discussed this with core contributors already.

Validation Steps Performed

Really went ham on the clipboard. Like, wow.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/2927 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 9/27/2019 **Status:** ✅ Merged **Merged:** 9/30/2019 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/WHYWILWHY` --- ### 📝 Commits (1) - [`c8f9bf8`](https://github.com/microsoft/terminal/commit/c8f9bf8bec24f512055a05c096cba342f5df6aee) teach wil about c++/winrt exceptions by including cppwinrt.h ### 📊 Changes **5 files changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/lib/pch.h` (+2 -0) 📝 `src/cascadia/TerminalConnection/pch.h` (+2 -0) 📝 `src/cascadia/TerminalControl/pch.h` (+2 -0) 📝 `src/cascadia/TerminalSettings/pch.h` (+1 -0) 📝 `src/cascadia/WindowsTerminal/pch.h` (+3 -0) </details> ### 📄 Description It turns out that if you CATCH_LOG without including this file, and you end up catching a C++/WinRT hresult_exception, IT TURNS IT INTO A FAILFAST. Fixes #2591 Fixes #2881 Fixes #2807 ## PR Checklist * [x] Closes some issues * [x] author works here * [x] Tests still pass * [ ] ~Requires documentation to be updated~ * [x] I've discussed this with core contributors already. ## Validation Steps Performed Really went ham on the clipboard. Like, wow. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:07:38 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25152