add TEST_RESOLVER_USE_SERVER_FROM_SOURCES (#80254)

* remove unused deps

* use TEST_RESOLVER_USE_SERVER_FROM_SOURCES
This commit is contained in:
Benjamin Pasero
2019-09-03 11:25:50 +02:00
committed by GitHub
parent 9647d0e66b
commit 7c4afcf360
3 changed files with 18 additions and 714 deletions

View File

@@ -85,7 +85,7 @@ export function activate(context: vscode.ExtensionContext) {
env['VSCODE_AGENT_FOLDER'] = remoteDataDir;
outputChannel.appendLine(`Using data folder at ${remoteDataDir}`);
if (!commit) { // dev mode
if (!commit || env['TEST_RESOLVER_USE_SERVER_FROM_SOURCES']) { // dev mode
const vscodePath = path.resolve(path.join(context.extensionPath, '..', '..'));
const serverCommandPath = path.join(vscodePath, 'resources', 'server', 'bin-dev', serverCommand);
extHostProcess = cp.spawn(serverCommandPath, commandArgs, { env, cwd: vscodePath });