mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 01:32:34 -05:00
Profiler toolbar changes (#1615)
* Clear event view pane when starting new session * Removing debug logging * Handling pause button * Cleaning up comments from previous commit * Fixing comments from PR * Fixing a comment I forgot to delete * Bumping dataprotocolclient version * Bumping sqltoolsservice & sqlops-dataprotocolclient version
This commit is contained in:
committed by
GitHub
parent
8e72fdaa52
commit
af2bc859d1
@@ -202,15 +202,15 @@ export class ProfilerEditor extends BaseEditor {
|
||||
this._register(attachSelectBoxStyler(this._sessionTemplateSelector, this.themeService));
|
||||
|
||||
this._actionBar.setContent([
|
||||
{ action: this._startAction },
|
||||
{ action: this._pauseAction },
|
||||
{ action: this._stopAction },
|
||||
{ action: this._connectAction },
|
||||
{ element: Taskbar.createTaskbarSeparator() },
|
||||
{ action: this._autoscrollAction },
|
||||
{ action: this._instantiationService.createInstance(Actions.ProfilerClear, Actions.ProfilerClear.ID, Actions.ProfilerClear.LABEL) },
|
||||
{ action: this._startAction },
|
||||
{ action: this._stopAction },
|
||||
{ element: dropdownContainer },
|
||||
{ action: this._instantiationService.createInstance(Actions.ProfilerEditColumns, Actions.ProfilerEditColumns.ID, Actions.ProfilerEditColumns.LABEL) }
|
||||
{ element: Taskbar.createTaskbarSeparator() },
|
||||
{ action: this._pauseAction },
|
||||
{ action: this._autoscrollAction },
|
||||
{ action: this._instantiationService.createInstance(Actions.ProfilerClear, Actions.ProfilerClear.ID, Actions.ProfilerClear.LABEL) }
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -397,16 +397,14 @@ export class ProfilerEditor extends BaseEditor {
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.isRunning) {
|
||||
this._startAction.enabled = !this.input.state.isRunning;
|
||||
if (e.isPaused){
|
||||
this._pauseAction.paused = this.input.state.isPaused;
|
||||
}
|
||||
|
||||
if (e.isStopped || e.isRunning) {
|
||||
this._stopAction.enabled = !this.input.state.isStopped && this.input.state.isRunning;
|
||||
}
|
||||
|
||||
if (e.isPaused || e.isRunning) {
|
||||
this._pauseAction.enabled = !this.input.state.isPaused && this.input.state.isRunning;
|
||||
this._startAction.enabled = !this.input.state.isRunning && !this.input.state.isPaused;
|
||||
this._stopAction.enabled = !this.input.state.isStopped && (this.input.state.isRunning || this.input.state.isPaused);
|
||||
this._pauseAction.enabled = !this.input.state.isStopped && (this.input.state.isRunning || this.input.state.isPaused);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user