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

Is there a way to change the startup directory for the PowerShell process? #89

Closed
lujomu opened this issue Dec 6, 2021 · 3 comments
Closed
Labels
enhancement New feature or request

Comments

@lujomu
Copy link

lujomu commented Dec 6, 2021

It seems the current startup directory is the VSCode app directory ($Env:LocalAppData\Programs\Microsoft VS Code in Windows). Is there a way to set it, for example, to the VSCode workspace folder (${workspaceFolder})?

I know there is $PSScriptRoot to reference the current test file's directory, but there seems to be no straight forward/consistent way to reference the workspace root (directory).

@JustinGrote
Copy link
Collaborator

I can look into enabling it to follow wherever you have PSIC defined or a separate setting, but $PSScriptRoot is indeed the recommended way to reference relative paths in tests.

@JustinGrote JustinGrote added the enhancement New feature or request label Dec 12, 2021
@lujomu
Copy link
Author

lujomu commented Dec 12, 2021

The PSIC cwd is a great idea! That way the behavior would be consistent with the PowerShell extension's run/debug commands.

@JustinGrote
Copy link
Collaborator

This was fixed a while ago in c3cb336

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants