Closed
Description
Prerequisites
- I have written a descriptive issue title.
- I have searched all issues to ensure it has not already been reported.
Summary
Our team's repositories all track our .code-workspace
files to make sure people are working with the same settings. However, we obviously can't include an absolute path in the powershell.cwd
setting because we can't ensure it will be the same between users. Unfortunately, there seems to be no way to avoid this issue, and worst case, we keep having to remove the automatically appended setting.
Proposed Design
I can think of 3 ways to circumvent this problem:
- Add an option that, when opening a file in PS-language, recursively scan in the file's directory for a workspace setting file, going up a folder if nothing could be found. If one is found, pick the workspace directory the file is located in, (choosing the nearest if there are nested folders) and use that as the Cwd for the session.
- Add an option that reads the Cwd path from a different file that can be included in the
.gitignore
. You could enforce it to be located in the same directory as the workspace settings. - Add an option that doesn't write the Cwd path into the settings, and just caches them instead, prompting the user to specify a folder every time after the cache is cleared.