mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
This reverts commit d15a3fcc98.
This commit is contained in:
24
scripts/code-web.js
Normal file
24
scripts/code-web.js
Normal file
@@ -0,0 +1,24 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
const opn = require('opn');
|
||||
const cp = require('child_process');
|
||||
const path = require('path');
|
||||
|
||||
const proc = cp.execFile(path.join(__dirname, process.platform === 'win32' ? 'remoteExtensionAgent.bat' : 'remoteExtensionAgent.sh'));
|
||||
|
||||
let launched = false;
|
||||
proc.stdout.on("data", data => {
|
||||
if (!launched && data.toString().indexOf('Extension host agent listening on 8000')) {
|
||||
launched = true;
|
||||
|
||||
setTimeout(() => {
|
||||
const url = 'http://127.0.0.1:8000';
|
||||
console.log(`Open ${url} in your browser`);
|
||||
|
||||
opn(url);
|
||||
}, 100);
|
||||
}
|
||||
});
|
||||
@@ -58,7 +58,7 @@ function code() {
|
||||
function code-wsl()
|
||||
{
|
||||
# in a wsl shell
|
||||
local WIN_CODE_CLI_CMD=$(wslpath -w "$ROOT/scripts/code-cli.bat" 2>/dev/null)
|
||||
local WIN_CODE_CLI_CMD=$(wslpath -w "$ROOT/scripts/code-cli.bat")
|
||||
if ! [ -z "$WIN_CODE_CLI_CMD" ]; then
|
||||
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)
|
||||
|
||||
@@ -32,10 +32,6 @@ call .\scripts\test.bat --runGlob **\*.integrationTest.js %*
|
||||
call .\scripts\node-electron.bat .\node_modules\mocha\bin\_mocha .\extensions\*\server\out\test\**\*.test.js
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
if exist ".\resources\server\test\test-remote-integration.bat" (
|
||||
call .\resources\server\test\test-remote-integration.bat
|
||||
)
|
||||
|
||||
rmdir /s /q %VSCODEUSERDATADIR%
|
||||
|
||||
popd
|
||||
|
||||
@@ -27,10 +27,6 @@ mkdir -p $ROOT/extensions/emmet/test-fixtures
|
||||
./scripts/code.sh $ROOT/extensions/emmet/test-fixtures --extensionDevelopmentPath=$ROOT/extensions/emmet --extensionTestsPath=$ROOT/extensions/emmet/out/test --disable-extensions --user-data-dir=$VSCODEUSERDATADIR --skip-getting-started
|
||||
rm -rf $ROOT/extensions/emmet/test-fixtures
|
||||
|
||||
if [ -f ./resources/server/test/test-remote-integration.sh ]; then
|
||||
./resources/server/test/test-remote-integration.sh
|
||||
fi
|
||||
|
||||
# Tests in commonJS
|
||||
cd $ROOT/extensions/css-language-features/server && $ROOT/scripts/node-electron.sh test/index.js
|
||||
cd $ROOT/extensions/html-language-features/server && $ROOT/scripts/node-electron.sh test/index.js
|
||||
|
||||
Reference in New Issue
Block a user