mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-23 21:30:29 -04:00
15 lines
659 B
TypeScript
15 lines
659 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { Code } from '../../vscode/code';
|
|
|
|
export abstract class Viewlet {
|
|
|
|
constructor(protected code: Code) { }
|
|
|
|
async waitForTitle(fn: (title: string) => boolean): Promise<void> {
|
|
await this.code.waitForTextContent('.monaco-workbench .part.sidebar > .title > .title-label > h2', undefined, fn);
|
|
}
|
|
} |