mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
* distro * renable web smoke * add missing script * update node version * update node version everywhere * ensure playwright drivers are installed * fix screenshot capture * try this * rewrite connection dialog code * fix permissions * more wip * replace more $ with ^ * revert changes * refactor and revert more changes * add screen shot functionality to playwright * fix compile * fix profiler compile * don't run new files for web * continue on error for web * continue on error for web not normal * revert some changes
31 lines
993 B
TypeScript
31 lines
993 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 '../code';
|
|
import { QuickAccess } from '../quickaccess';
|
|
import { Dialog } from './dialog';
|
|
|
|
const NEW_SESSION_DIALOG_TITLE: string = 'Start New Profiler Session';
|
|
|
|
export class Profiler extends Dialog {
|
|
|
|
constructor(code: Code, private quickopen: QuickAccess) {
|
|
super(NEW_SESSION_DIALOG_TITLE, code);
|
|
}
|
|
|
|
async launchProfiler(): Promise<void> {
|
|
await this.quickopen.runCommand('Profiler: Launch Profiler');
|
|
}
|
|
|
|
async waitForNewSessionDialog() {
|
|
await this.waitForNewDialog();
|
|
}
|
|
|
|
async waitForNewSessionDialogAndStart() {
|
|
await this.waitForNewSessionDialog();
|
|
await this.clickDialogButton('Start');
|
|
}
|
|
}
|