File tree Expand file tree Collapse file tree
src/client/unittests/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ export abstract class BaseTestManager {
1313 private cancellationTokenSource : vscode . CancellationTokenSource ;
1414 private installer : Installer ;
1515 protected get cancellationToken ( ) : vscode . CancellationToken {
16- return this . cancellationTokenSource && this . cancellationTokenSource . token ;
16+ if ( this . cancellationTokenSource ) {
17+ return this . cancellationTokenSource . token ;
18+ }
1719 }
1820 public dispose ( ) {
1921 }
@@ -63,7 +65,6 @@ export abstract class BaseTestManager {
6365 let delays = new telemetryHelper . Delays ( ) ;
6466 this . _status = TestStatus . Discovering ;
6567
66- this . cancellationTokenSource = new vscode . CancellationTokenSource ( ) ;
6768 this . createCancellationToken ( ) ;
6869 return this . discoverTestsPromise = this . discoverTestsImpl ( ignoreCache )
6970 . then ( tests => {
You can’t perform that action at this time.
0 commit comments