mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
use windows DISPLAY when running code.sh client within WSL
This commit is contained in:
@@ -55,6 +55,9 @@ function code() {
|
||||
|
||||
function code-wsl()
|
||||
{
|
||||
HOST_IP=$(powershell.exe -Command "& {(Get-NetIPAddress | Where-Object {\$_.InterfaceAlias -like '*WSL*' -and \$_.AddressFamily -eq 'IPv4'}).IPAddress}")
|
||||
export DISPLAY="$HOST_IP:0"
|
||||
|
||||
# in a wsl shell
|
||||
ELECTRON="$ROOT/.build/electron/Code - OSS.exe"
|
||||
if [ -f "$ELECTRON" ]; then
|
||||
|
||||
Reference in New Issue
Block a user