Closed petervandivier closed 4 years ago
possibly related - https://github.com/microsoft/vscode/issues/42661
Thanks @petervandivier we are currently tracking this request (support for multiple workspaces) with issue #2153 so I will mark this as a duplicate--thanks!
This issue has been marked as duplicate and has not had any activity for 1 day. It has been closed for housekeeping purposes.
Issue Description
The PowerShell Integrated Console is not my default terminal. In a multi-root project, when opening a .ps1 file, the integrated console launches automatically. This is useful since often I'll want to F5 / F8 bits of that file. Sadly however, the working directory of the integrated console is not set to the root folder of the file that induced the launch. If the .ps1 file I'm using is using resources at a relative location and doesn't otherwise handle for the different working directory, this becomes inconvenient. Surely though, it is better to launch the console to the working directory of the file that caused the launch.
Repro
When clicking on the file
bar.ps1
to open it, you will note that opens to the "baz" working directory.Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
|Extension|Author|Version| |---|---|---| |ansys-apdl-syntax|smhrjn|0.0.11| |autoconf|maelvalais|0.1.0| |azure-account|ms-vscode|0.8.9| |azure-pipelines|ms-azure-devops|1.165.1| |better-toml|bungcip|0.3.2| |cmake|twxs|0.0.17| |cpptools|ms-vscode|0.27.0| |csharp|ms-dotnettools|1.21.16| |hosts|tommasov|1.1.1| |markdown-preview-enhanced|shd101wyy|0.5.2| |powershell|ms-vscode|2020.3.0| |python|ms-python|2020.3.71659| |rainbow-csv|mechatroner|1.6.0| |restructuredtext|lextudio|125.0.0| |ruby|rebornix|0.27.0| |vagrant|bbenoist|0.5.0| |vscode-docker|ms-azuretools|1.0.0| |vscode-raml|blzjns|3.0.1| |vscode-ruby|wingrunr21|0.27.0| |vscode-svg-previewer|vitaliymaz|0.5.1|