[PR #10546] [MERGED] Set working directory when invoked from shell extension #28096

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10546
Author: @ianjoneill
Created: 7/2/2021
Status: Merged
Merged: 7/9/2021
Merged by: @undefined

Base: mainHead: f-shell-extension-working-directory


📝 Commits (1)

  • fac906f Set working directory when invoked from shell extension

📊 Changes

1 file changed (+4 additions, -3 deletions)

View changed files

📝 src/cascadia/ShellExtension/OpenTerminalHere.cpp (+4 -3)

📄 Description

Sets the working directory of the terminal when invoked from the shell extension. This ensures that new tabs opened with a starting directory of . open in the directory that the terminal was invoked from.

Closes #8933

Validation Steps Performed

Manually tested - default PowerShell profile set to use home directory, Windows PowerShell profile set to use current directory. Launched via the shell extension and the default profile opened in the explorer directory, as did a new Windows PowerShell tab.


🔄 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/10546 **Author:** [@ianjoneill](https://github.com/ianjoneill) **Created:** 7/2/2021 **Status:** ✅ Merged **Merged:** 7/9/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `f-shell-extension-working-directory` --- ### 📝 Commits (1) - [`fac906f`](https://github.com/microsoft/terminal/commit/fac906f2476bba5f2d8a4739aae1d275f222a42a) Set working directory when invoked from shell extension ### 📊 Changes **1 file changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/ShellExtension/OpenTerminalHere.cpp` (+4 -3) </details> ### 📄 Description Sets the working directory of the terminal when invoked from the shell extension. This ensures that new tabs opened with a starting directory of `.` open in the directory that the terminal was invoked from. Closes #8933 ## Validation Steps Performed Manually tested - default PowerShell profile set to use home directory, Windows PowerShell profile set to use current directory. Launched via the shell extension and the default profile opened in the explorer directory, as did a new Windows PowerShell tab. --- <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:26:18 +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#28096