Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Open Powershell window here' functionality breaks when script launches at start of session #324

Open
ivomfrazao opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ivomfrazao
Copy link

Describe the bug
When opening a shell using the context-menu command of "open here", the session should open with its current directory being the folder where I clicked that command. However, it opens at the System32 folder.
https://github.com/user-attachments/assets/91f4066f-d0c7-4c73-9206-95527f18af04

When using the same shell, but using the "powershell" command at the navigation bar, it works fine.
https://github.com/user-attachments/assets/0349f80d-6b88-4009-af6f-f37dc3e9f6df

To Reproduce
Steps to reproduce the behavior:

  1. Have the plugin start at the start of session of Powershell using the command provided is init powershell | Add-Content $profile
  2. In a folder, Shift + right-click anywhere in the folder.
  3. In the context menu that opens, click 'Open Powershell window here'

Expected behavior
The Powershell session opens with its current directory being the folder where the command was launched from.

Environment

  • OS: Windows 10 Enterprise 22H2, OS build 19045.5247
  • Output of is --version: 0.0.1-rc.19
  • Nodejs Version: v22.12.0
  • Shell: PowerShell
  • Shell Version: 5.1.19041.5247
@ivomfrazao ivomfrazao added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant