Set an environment variable in the VSCode terminal to the currently opened workspace or folder, enabling its use in Git commands and user scripts.
This extension sets an environment variable to the currently opened workspace. If no workspace is open, it sets the variable to the currently opened folder.
Example .gitconfig
[core]
editor = code -r --wait $FILE $WORKSPACE
[diff]
tool = vscode
[difftool "vscode"]
cmd = "code -r --wait --diff $LOCAL $REMOTE $WORKSPACE"workspace2env.envVarName: "The name of the environment variable to set. Default: WORKSPACE"
Initial release.
Now it set eviromet variable directly in each terminal.