diff --git a/resources/server/bin-dev/remote-cli/code.cmd b/resources/server/bin-dev/remote-cli/code.cmd index fd1d2c5ca4941..4d8214ead19df 100644 --- a/resources/server/bin-dev/remote-cli/code.cmd +++ b/resources/server/bin-dev/remote-cli/code.cmd @@ -1,6 +1,7 @@ @echo off setlocal SET VSCODE_PATH=%~dp0..\..\..\.. +SET VSCODE_DEV=1 FOR /F "tokens=* USEBACKQ" %%g IN (`where /r "%VSCODE_PATH%\.build\node" node.exe`) do (SET "NODE=%%g") call "%NODE%" "%VSCODE_PATH%\out\server-cli.js" "Code Server - Dev" "" "" "code.cmd" %* endlocal diff --git a/resources/server/bin-dev/remote-cli/code.sh b/resources/server/bin-dev/remote-cli/code.sh index 1d0bc9b5c8542..3deeb272c7c8f 100755 --- a/resources/server/bin-dev/remote-cli/code.sh +++ b/resources/server/bin-dev/remote-cli/code.sh @@ -10,6 +10,8 @@ else VSCODE_PATH=$(dirname $(dirname $(dirname $(dirname $(dirname $(readlink -f $0)))))) fi +export VSCODE_DEV=1 + PROD_NAME="Code Server - Dev" VERSION="" COMMIT="" diff --git a/src/server-cli.ts b/src/server-cli.ts index 3ed0c87a46664..4d1afa4018a44 100644 --- a/src/server-cli.ts +++ b/src/server-cli.ts @@ -30,4 +30,4 @@ if (process.env['VSCODE_DEV']) { await bootstrapESM(); // Load Server -await import('./vs/server/node/server.cli'); +await import('./vs/server/node/server.cli.js'); diff --git a/src/vs/server/node/server.cli.ts b/src/vs/server/node/server.cli.ts index eb68e8aa8b53f..654a769cd270f 100644 --- a/src/vs/server/node/server.cli.ts +++ b/src/vs/server/node/server.cli.ts @@ -154,7 +154,7 @@ export async function main(desc: ProductDescription, args: string[]): Promise { console.log(res); @@ -305,7 +305,7 @@ export async function main(desc: ProductDescription, args: string[]): Promise {