Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
There was a problem hiding this comment.
Pull request overview
This PR fixes an issue with opening projects in PowerShell on Windows. The problem was that the previous implementation used the generic openerOpenPath for PowerShell, which didn't properly handle the path when opening the terminal. The fix introduces a dedicated PowerShell handler that correctly sets the working directory before launching the shell.
Changes:
- Moved
resolvedAppcalculation afterresolvedPathin the openPath function to ensure paths are resolved before app detection - Added PowerShell detection logic to intercept PowerShell launches and use a custom handler
- Created a new Tauri command
open_in_powershellthat spawns PowerShell with the correct working directory
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/desktop/src/index.tsx | Moved resolvedApp after resolvedPath, added isPowershell detection function, and routes PowerShell opens to the new command |
| packages/desktop/src/bindings.ts | Added TypeScript binding for the new openInPowershell Tauri command |
| packages/desktop/src-tauri/src/os/windows.rs | Implemented open_in_powershell function that spawns PowerShell in the correct directory; also reformatted imports alphabetically |
| packages/desktop/src-tauri/src/lib.rs | Added open_in_powershell Tauri command with platform-specific implementation and registered it in the specta builder |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Issue for this PR
Closes #15111
Type of change
What does this PR do?
fixes the path when trying open current project in powershell
If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!
How did you verify your code works?
run desktop app on windows and try opening project in powershell
Screenshots / recordings
2026-02-25.20-39-01.mp4
If this is a UI change, please include a screenshot or recording.
Checklist
If you do not follow this template your PR will be automatically rejected.