Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'
8
lib/vscode/resources/win32/VisualElementsManifest.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<Application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<VisualElements
|
||||
BackgroundColor="#2D2D30"
|
||||
ShowNameOnSquare150x150Logo="on"
|
||||
Square150x150Logo="resources\app\resources\win32\code_150x150.png"
|
||||
Square70x70Logo="resources\app\resources\win32\code_70x70.png"
|
||||
ForegroundText="light" />
|
||||
</Application>
|
6
lib/vscode/resources/win32/bin/code.cmd
Normal file
@ -0,0 +1,6 @@
|
||||
@echo off
|
||||
setlocal
|
||||
set VSCODE_DEV=
|
||||
set ELECTRON_RUN_AS_NODE=1
|
||||
"%~dp0..\@@NAME@@.exe" "%~dp0..\resources\app\out\cli.js" %*
|
||||
endlocal
|
62
lib/vscode/resources/win32/bin/code.sh
Normal file
@ -0,0 +1,62 @@
|
||||
#!/usr/bin/env sh
|
||||
#
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
if [ "$VSCODE_WSL_DEBUG_INFO" = true ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
COMMIT="@@COMMIT@@"
|
||||
APP_NAME="@@APPNAME@@"
|
||||
QUALITY="@@QUALITY@@"
|
||||
NAME="@@NAME@@"
|
||||
DATAFOLDER="@@DATAFOLDER@@"
|
||||
VSCODE_PATH="$(dirname "$(dirname "$(realpath "$0")")")"
|
||||
ELECTRON="$VSCODE_PATH/$NAME.exe"
|
||||
|
||||
IN_WSL=false
|
||||
if [ -n "$WSL_DISTRO_NAME" ]; then
|
||||
# $WSL_DISTRO_NAME is available since WSL builds 18362, also for WSL2
|
||||
IN_WSL=true
|
||||
else
|
||||
WSL_BUILD=$(uname -r | sed -E 's/^[0-9.]+-([0-9]+)-Microsoft.*|.*/\1/')
|
||||
if [ -n "$WSL_BUILD" ]; then
|
||||
if [ "$WSL_BUILD" -ge 17063 ]; then
|
||||
# WSLPATH is available since WSL build 17046
|
||||
# WSLENV is available since WSL build 17063
|
||||
IN_WSL=true
|
||||
else
|
||||
# If running under older WSL, don't pass cli.js to Electron as
|
||||
# environment vars cannot be transferred from WSL to Windows
|
||||
# See: https://github.com/microsoft/BashOnWindows/issues/1363
|
||||
# https://github.com/microsoft/BashOnWindows/issues/1494
|
||||
"$ELECTRON" "$@"
|
||||
exit $?
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if [ $IN_WSL = true ]; then
|
||||
|
||||
export WSLENV="ELECTRON_RUN_AS_NODE/w:$WSLENV"
|
||||
CLI=$(wslpath -m "$VSCODE_PATH/resources/app/out/cli.js")
|
||||
|
||||
# use the Remote WSL extension if installed
|
||||
WSL_EXT_ID="ms-vscode-remote.remote-wsl"
|
||||
|
||||
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --locate-extension $WSL_EXT_ID >/tmp/remote-wsl-loc.txt 2>/dev/null </dev/null
|
||||
WSL_EXT_WLOC=$(cat /tmp/remote-wsl-loc.txt)
|
||||
|
||||
if [ -n "$WSL_EXT_WLOC" ]; then
|
||||
# replace \r\n with \n in WSL_EXT_WLOC
|
||||
WSL_CODE=$(wslpath -u "${WSL_EXT_WLOC%%[[:cntrl:]]}")/scripts/wslCode.sh
|
||||
"$WSL_CODE" "$COMMIT" "$QUALITY" "$ELECTRON" "$APP_NAME" "$DATAFOLDER" "$@"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
elif [ -x "$(command -v cygpath)" ]; then
|
||||
CLI=$(cygpath -m "$VSCODE_PATH/resources/app/out/cli.js")
|
||||
else
|
||||
CLI="$VSCODE_PATH/resources/app/out/cli.js"
|
||||
fi
|
||||
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
|
||||
exit $?
|
BIN
lib/vscode/resources/win32/bower.ico
Normal file
After Width: | Height: | Size: 149 KiB |
BIN
lib/vscode/resources/win32/c.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/code.ico
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
lib/vscode/resources/win32/code_150x150.png
Normal file
After Width: | Height: | Size: 395 B |
BIN
lib/vscode/resources/win32/code_70x70.png
Normal file
After Width: | Height: | Size: 338 B |
BIN
lib/vscode/resources/win32/config.ico
Normal file
After Width: | Height: | Size: 148 KiB |
BIN
lib/vscode/resources/win32/cpp.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/csharp.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/css.ico
Normal file
After Width: | Height: | Size: 146 KiB |
BIN
lib/vscode/resources/win32/default.ico
Normal file
After Width: | Height: | Size: 145 KiB |
BIN
lib/vscode/resources/win32/go.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/html.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/inno-big-100.bmp
Normal file
After Width: | Height: | Size: 151 KiB |
BIN
lib/vscode/resources/win32/inno-big-125.bmp
Normal file
After Width: | Height: | Size: 217 KiB |
BIN
lib/vscode/resources/win32/inno-big-150.bmp
Normal file
After Width: | Height: | Size: 332 KiB |
BIN
lib/vscode/resources/win32/inno-big-175.bmp
Normal file
After Width: | Height: | Size: 445 KiB |
BIN
lib/vscode/resources/win32/inno-big-200.bmp
Normal file
After Width: | Height: | Size: 580 KiB |
BIN
lib/vscode/resources/win32/inno-big-225.bmp
Normal file
After Width: | Height: | Size: 730 KiB |
BIN
lib/vscode/resources/win32/inno-big-250.bmp
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
lib/vscode/resources/win32/inno-small-100.bmp
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
lib/vscode/resources/win32/inno-small-125.bmp
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
lib/vscode/resources/win32/inno-small-150.bmp
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
lib/vscode/resources/win32/inno-small-175.bmp
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
lib/vscode/resources/win32/inno-small-200.bmp
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
lib/vscode/resources/win32/inno-small-225.bmp
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
lib/vscode/resources/win32/inno-small-250.bmp
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
lib/vscode/resources/win32/jade.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/java.ico
Normal file
After Width: | Height: | Size: 149 KiB |
BIN
lib/vscode/resources/win32/javascript.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/json.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/less.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/markdown.ico
Normal file
After Width: | Height: | Size: 146 KiB |
BIN
lib/vscode/resources/win32/php.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/powershell.ico
Normal file
After Width: | Height: | Size: 146 KiB |
BIN
lib/vscode/resources/win32/python.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/react.ico
Normal file
After Width: | Height: | Size: 150 KiB |
BIN
lib/vscode/resources/win32/ruby.ico
Normal file
After Width: | Height: | Size: 146 KiB |
BIN
lib/vscode/resources/win32/sass.ico
Normal file
After Width: | Height: | Size: 148 KiB |
BIN
lib/vscode/resources/win32/shell.ico
Normal file
After Width: | Height: | Size: 144 KiB |
BIN
lib/vscode/resources/win32/sql.ico
Normal file
After Width: | Height: | Size: 146 KiB |
BIN
lib/vscode/resources/win32/typescript.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/vue.ico
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
lib/vscode/resources/win32/xml.ico
Normal file
After Width: | Height: | Size: 148 KiB |
BIN
lib/vscode/resources/win32/yaml.ico
Normal file
After Width: | Height: | Size: 146 KiB |