import { Code } from './code' ; export abstract class Viewlet { constructor ( protected code ) { } async waitForTitle ( fn ) { await this . code . waitForTextContent ( '.monaco-workbench .part.sidebar > .title > .title-label > h2' , undefined , fn ) ; } }