Skip to content

Commit

Permalink
the separator has to be provided by the plugin
Browse files Browse the repository at this point in the history
as generic env append/prepend can't handle path
separators, neither should it be handled here
  • Loading branch information
anton-matosov committed Jul 24, 2024
1 parent 097ad3a commit 140b61b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set --global VSCODE_SHELL_INTEGRATION 1

# Apply any explicit path prefix (see #99878)
if status --is-login; and set -q VSCODE_PATH_PREFIX
set -gx PATH "$VSCODE_PATH_PREFIX:$PATH"
set -gx PATH "$VSCODE_PATH_PREFIX$PATH"
end
set -e VSCODE_PATH_PREFIX

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ "$VSCODE_INJECTION" == "1" ]; then

# Apply any explicit path prefix (see #99878)
if [ -n "${VSCODE_PATH_PREFIX:-}" ]; then
export PATH="$VSCODE_PATH_PREFIX:$PATH"
export PATH="$VSCODE_PATH_PREFIX$PATH"
builtin unset VSCODE_PATH_PREFIX
fi
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [[ $options[norcs] = off && -o "login" ]]; then

# Apply any explicit path prefix (see #99878)
if (( ${+VSCODE_PATH_PREFIX} )); then
export PATH="$VSCODE_PATH_PREFIX:$PATH"
export PATH="$VSCODE_PATH_PREFIX$PATH"
fi
builtin unset VSCODE_PATH_PREFIX
fi

0 comments on commit 140b61b

Please sign in to comment.