@@ -6,7 +6,6 @@ import { PlatformSearchReq, PlatformSearchResp, PlatformInstallReq, PlatformInst
6
6
import { CoreClientProvider } from './core-client-provider' ;
7
7
import { BoardListReq , BoardListResp } from './cli-protocol/commands/board_pb' ;
8
8
import { ToolOutputServiceServer } from '../common/protocol/tool-output-service' ;
9
- import { Deferred } from '@theia/core/lib/common/promise-util' ;
10
9
11
10
@injectable ( )
12
11
export class BoardsServiceImpl implements BoardsService {
@@ -23,7 +22,6 @@ export class BoardsServiceImpl implements BoardsService {
23
22
24
23
protected selectedBoard : Board | undefined ;
25
24
protected discoveryInitialized = false ;
26
- protected discoveryReady = new Deferred < void > ( ) ;
27
25
protected discoveryTimer : NodeJS . Timeout | undefined ;
28
26
/**
29
27
* Poor man's serial discovery:
@@ -41,7 +39,6 @@ export class BoardsServiceImpl implements BoardsService {
41
39
this . doGetAttachedBoards ( ) . then ( ( { boards } ) => {
42
40
const update = ( oldState : Board [ ] , newState : Board [ ] , message : string ) => {
43
41
this . _attachedBoards = { boards : newState } ;
44
- this . discoveryReady . resolve ( ) ;
45
42
this . discoveryLogger . info ( `${ message } - Discovered boards: ${ JSON . stringify ( newState ) } ` ) ;
46
43
if ( this . client ) {
47
44
this . client . notifyAttachedBoardsChanged ( {
@@ -91,7 +88,6 @@ export class BoardsServiceImpl implements BoardsService {
91
88
}
92
89
93
90
async getAttachedBoards ( ) : Promise < { boards : Board [ ] } > {
94
- await this . discoveryReady . promise ;
95
91
return this . _attachedBoards ;
96
92
}
97
93
0 commit comments