[PR #14839] [MERGED] Create til::env to help with refreshing environment variables #30276

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14839
Author: @ianjoneill
Created: 2/13/2023
Status: Merged
Merged: 3/13/2023
Merged by: @DHowett

Base: mainHead: dev/miniksa/env


📝 Commits (10+)

  • 6cac096 attempt to replicate algorithm
  • cd1c4b6 IT WORKS!
  • 3fb8a8b make a note
  • 65ada35 Migrate spelling-0.0.21 changes from main
  • 5eb08ff Merge branch 'main' into dev/miniksa/env
  • 6236898 Merge branch 'main' into dev/miniksa/env
  • e409d15 Don't inherit from std::map
  • fd59513 Spelling
  • d5346be Maybe this is the one the bot is complaining about
  • bc92eba Tests should now pass

📊 Changes

6 files changed (+689 additions, -2 deletions)

View changed files

📝 .github/actions/spelling/allow/microsoft.txt (+5 -0)
src/inc/til/env.h (+579 -0)
src/til/ut_til/EnvTests.cpp (+90 -0)
📝 src/til/ut_til/sources (+1 -0)
📝 src/til/ut_til/til.unit.tests.vcxproj (+9 -1)
📝 src/til/ut_til/til.unit.tests.vcxproj.filters (+5 -1)

📄 Description

Adds a helper that replicates how the RegenerateUserEnvironment()
method in shell32.dll behaves.

Co-authored-by: Michael Niksa miniksa@microsoft.com


🔄 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/14839 **Author:** [@ianjoneill](https://github.com/ianjoneill) **Created:** 2/13/2023 **Status:** ✅ Merged **Merged:** 3/13/2023 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/miniksa/env` --- ### 📝 Commits (10+) - [`6cac096`](https://github.com/microsoft/terminal/commit/6cac0969f3d2bf6b5e4a3cb21a1585327e3b8dec) attempt to replicate algorithm - [`cd1c4b6`](https://github.com/microsoft/terminal/commit/cd1c4b6b104096b43cdb514070353eb84a86f696) IT WORKS! - [`3fb8a8b`](https://github.com/microsoft/terminal/commit/3fb8a8be4b45108b34dd0c56c80e323cc1f8d7df) make a note - [`65ada35`](https://github.com/microsoft/terminal/commit/65ada350ce8d123ff29c682e288b57eb7c6f084a) Migrate spelling-0.0.21 changes from main - [`5eb08ff`](https://github.com/microsoft/terminal/commit/5eb08ff8041d6eb90c96789f7d49e5600b4dadac) Merge branch 'main' into dev/miniksa/env - [`6236898`](https://github.com/microsoft/terminal/commit/62368984ffe2174533b3956677a89a8a10f317b4) Merge branch 'main' into dev/miniksa/env - [`e409d15`](https://github.com/microsoft/terminal/commit/e409d152e0a4f38654ac924be05fb36621a14b29) Don't inherit from std::map - [`fd59513`](https://github.com/microsoft/terminal/commit/fd59513416557148031e10b27ccaa4f8276b9d06) Spelling - [`d5346be`](https://github.com/microsoft/terminal/commit/d5346be4808bc1dc2d5bc64fc1bd5fd5d2b4ae60) Maybe this is the one the bot is complaining about - [`bc92eba`](https://github.com/microsoft/terminal/commit/bc92ebafd892362b6a95ab497593f16b655fd63c) Tests should now pass ### 📊 Changes **6 files changed** (+689 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `.github/actions/spelling/allow/microsoft.txt` (+5 -0) ➕ `src/inc/til/env.h` (+579 -0) ➕ `src/til/ut_til/EnvTests.cpp` (+90 -0) 📝 `src/til/ut_til/sources` (+1 -0) 📝 `src/til/ut_til/til.unit.tests.vcxproj` (+9 -1) 📝 `src/til/ut_til/til.unit.tests.vcxproj.filters` (+5 -1) </details> ### 📄 Description Adds a helper that replicates how the `RegenerateUserEnvironment()` method in `shell32.dll` behaves. * Raises #12516 from the dead. * Half of #1125 Co-authored-by: Michael Niksa <miniksa@microsoft.com> --- <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:39:44 +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#30276