check setting directly to avoid value reset (#8583)

This commit is contained in:
Alan Ren
2019-12-05 15:57:13 -08:00
committed by GitHub
parent 0bf4790a64
commit 3de95af25c
8 changed files with 17 additions and 24 deletions

View File

@@ -4,12 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import * as testRunner from 'vscode/lib/testrunner';
import * as vscode from 'vscode';
import { SuiteType, getSuiteType } from 'adstest';
import { context } from './testContext';
import * as path from 'path';
const suite = getSuiteType();
@@ -62,10 +57,6 @@ if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY) {
};
}
if (!vscode.workspace.getConfiguration('test')['testSetupCompleted']) {
context.RunTest = false;
}
testRunner.configure(options);
export = testRunner;