Skip to content

Commit

Permalink
fix: wsl can't open projects
Browse files Browse the repository at this point in the history
  • Loading branch information
shiipou authored Aug 28, 2023
1 parent 3d23ba0 commit 99eeead
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clone
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ if [ "$1" = "upgrade" ]; then
exit
fi

path_prefix=''
# Regex for github https or ssh url
regex="^(http|https|git)(:\/\/|@)([^\/:]+)[\/:]([^\/:]+)\/(.+)(.git)?$"
if [[ "$OSTYPE" == "darwin"* ]]; then
Expand All @@ -28,6 +29,7 @@ elif [[ "$OSTYPE" == "msys" ]]; then
PROJECTS_FILE="/c/Users/$USERNAME/AppData/Roaming/Code/User/globalStorage/alefragnani.project-manager/projects.json"
elif [[ $(grep -i microsoft /proc/version) ]]; then
PROJECTS_FILE="/mnt/c/Users/$USER/AppData/Roaming/Code/User/globalStorage/alefragnani.project-manager/projects.json"
path_prefix='vscode-remote://wsl'
else
PROJECTS_FILE="$HOME/.config/Code/User/globalStorage/alefragnani.project-manager/projects.json"
fi
Expand Down

0 comments on commit 99eeead

Please sign in to comment.