We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9904593 commit 87fd1d4Copy full SHA for 87fd1d4
1 file changed
resources/win32/bin/code.sh
@@ -11,8 +11,11 @@ if grep -qi Microsoft /proc/version; then
11
# in a wsl shell
12
WIN_CODE_CMD=$(wslpath -w "$(dirname "$(realpath "$0")")/$APP_NAME.cmd")
13
if ! [ -z "$WIN_CODE_CMD" ]; then
14
+ # make sure the cwd is in the windows fs, otherwise there will be a warning from cmd
15
+ pushd "$(dirname "$0")" > /dev/null
16
WSL_EXT_ID="ms-vscode.remote-wsl"
17
WSL_EXT_WLOC=$(cmd.exe /c "$WIN_CODE_CMD" --locate-extension $WSL_EXT_ID)
18
+ popd > /dev/null
19
if ! [ -z "$WSL_EXT_WLOC" ]; then
20
# replace \r\n with \n in WSL_EXT_WLOC, get linux path for
21
WSL_CODE=$(wslpath -u "${WSL_EXT_WLOC%%[[:cntrl:]]}")/scripts/wslCode.sh
0 commit comments