mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
change publisher
This commit is contained in:
@@ -25,7 +25,7 @@ if grep -qi Microsoft /proc/version; then
|
|||||||
WIN_CODE_CMD=$(wslpath -w "$(dirname "$(realpath "$0")")/$APP_NAME.cmd")
|
WIN_CODE_CMD=$(wslpath -w "$(dirname "$(realpath "$0")")/$APP_NAME.cmd")
|
||||||
# make sure the cwd is in the windows fs, otherwise there will be a warning from cmd
|
# make sure the cwd is in the windows fs, otherwise there will be a warning from cmd
|
||||||
pushd "$(dirname "$0")" > /dev/null
|
pushd "$(dirname "$0")" > /dev/null
|
||||||
WSL_EXT_ID="ms-vscode.remote-wsl"
|
WSL_EXT_ID="ms-vscode-remote.remote-wsl"
|
||||||
WSL_EXT_WLOC=$(cmd.exe /c "$WIN_CODE_CMD" --locate-extension $WSL_EXT_ID)
|
WSL_EXT_WLOC=$(cmd.exe /c "$WIN_CODE_CMD" --locate-extension $WSL_EXT_ID)
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
if ! [ -z "$WSL_EXT_WLOC" ]; then
|
if ! [ -z "$WSL_EXT_WLOC" ]; then
|
||||||
|
|||||||
+1
-1
@@ -60,7 +60,7 @@ function code-wsl()
|
|||||||
# in a wsl shell
|
# in a wsl shell
|
||||||
local WIN_CODE_CLI_CMD=$(wslpath -w "$ROOT/scripts/code-cli.bat")
|
local WIN_CODE_CLI_CMD=$(wslpath -w "$ROOT/scripts/code-cli.bat")
|
||||||
if ! [ -z "$WIN_CODE_CLI_CMD" ]; then
|
if ! [ -z "$WIN_CODE_CLI_CMD" ]; then
|
||||||
local WSL_EXT_ID="ms-vscode.remote-wsl"
|
local WSL_EXT_ID="ms-vscode-remote.remote-wsl"
|
||||||
local WSL_EXT_WLOC=$(cmd.exe /c "$WIN_CODE_CLI_CMD" --locate-extension $WSL_EXT_ID)
|
local WSL_EXT_WLOC=$(cmd.exe /c "$WIN_CODE_CLI_CMD" --locate-extension $WSL_EXT_ID)
|
||||||
if ! [ -z "$WSL_EXT_WLOC" ]; then
|
if ! [ -z "$WSL_EXT_WLOC" ]; then
|
||||||
# replace \r\n with \n in WSL_EXT_WLOC
|
# replace \r\n with \n in WSL_EXT_WLOC
|
||||||
|
|||||||
Reference in New Issue
Block a user