[PR #11905] [MERGED] Fix hashing of NewTerminalArgs #28794

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11905
Author: @lhecker
Created: 12/8/2021
Status: Merged
Merged: 12/9/2021
Merged by: @undefined

Base: mainHead: dev/lhecker/til-hash-followup


📝 Commits (1)

  • 55ff226 Fix hashing of NewTerminalArgs

📊 Changes

6 files changed (+108 additions, -91 deletions)

View changed files

📝 src/cascadia/LocalTests_SettingsModel/KeyBindingsTests.cpp (+9 -8)
📝 src/cascadia/TerminalSettingsModel/ActionArgs.h (+33 -11)
📝 src/cascadia/TerminalSettingsModel/ActionArgs.idl (+2 -2)
📝 src/cascadia/TerminalSettingsModel/ActionArgsMagic.h (+49 -49)
📝 src/cascadia/TerminalSettingsModel/ActionMap.cpp (+15 -12)
📝 src/cascadia/TerminalSettingsModel/HashUtils.h (+0 -9)

📄 Description

00fe2b0 made the mistake of hashing the pointer of NewTerminalArgs instances
instead of their content. This commit calls NewTerminalArgs::Hash instead.

PR Checklist

  • I work here
  • Tests added/passed

Validation Steps Performed

  • New test passes

🔄 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/11905 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 12/8/2021 **Status:** ✅ Merged **Merged:** 12/9/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/til-hash-followup` --- ### 📝 Commits (1) - [`55ff226`](https://github.com/microsoft/terminal/commit/55ff2262cb70c84c5314149d1dfbfdb4490f22c7) Fix hashing of NewTerminalArgs ### 📊 Changes **6 files changed** (+108 additions, -91 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/LocalTests_SettingsModel/KeyBindingsTests.cpp` (+9 -8) 📝 `src/cascadia/TerminalSettingsModel/ActionArgs.h` (+33 -11) 📝 `src/cascadia/TerminalSettingsModel/ActionArgs.idl` (+2 -2) 📝 `src/cascadia/TerminalSettingsModel/ActionArgsMagic.h` (+49 -49) 📝 `src/cascadia/TerminalSettingsModel/ActionMap.cpp` (+15 -12) 📝 `src/cascadia/TerminalSettingsModel/HashUtils.h` (+0 -9) </details> ### 📄 Description 00fe2b0 made the mistake of hashing the pointer of `NewTerminalArgs` instances instead of their content. This commit calls `NewTerminalArgs::Hash` instead. ## PR Checklist * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * New test passes ✅ --- <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:30:48 +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#28794