mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix for issue 2725 and ux fixes (#2992)
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
import 'vs/css!sql/parts/profiler/media/profiler';
|
||||||
import { IProfilerService } from 'sql/parts/profiler/service/interfaces';
|
import { IProfilerService } from 'sql/parts/profiler/service/interfaces';
|
||||||
import { IProfilerController } from 'sql/parts/profiler/editor/controller/interfaces';
|
import { IProfilerController } from 'sql/parts/profiler/editor/controller/interfaces';
|
||||||
import { ProfilerInput } from 'sql/parts/profiler/editor/profilerInput';
|
import { ProfilerInput } from 'sql/parts/profiler/editor/profilerInput';
|
||||||
@@ -157,7 +157,7 @@ export class ProfilerClear extends Action {
|
|||||||
public static LABEL = nls.localize('profiler.clear', "Clear Data");
|
public static LABEL = nls.localize('profiler.clear', "Clear Data");
|
||||||
|
|
||||||
constructor(id: string, label: string) {
|
constructor(id: string, label: string) {
|
||||||
super(id, label);
|
super(id, label, 'clear-results');
|
||||||
}
|
}
|
||||||
|
|
||||||
run(input: ProfilerInput): TPromise<void> {
|
run(input: ProfilerInput): TPromise<void> {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
'use strict';
|
'use strict';
|
||||||
import 'vs/css!./media/profilerDialog';
|
import 'vs/css!sql/parts/profiler/media/profiler';
|
||||||
|
|
||||||
import { Modal } from 'sql/base/browser/ui/modal/modal';
|
import { Modal } from 'sql/base/browser/ui/modal/modal';
|
||||||
import { attachModalDialogStyler } from 'sql/common/theme/styler';
|
import { attachModalDialogStyler } from 'sql/common/theme/styler';
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ export class ProfilerTableEditor extends BaseEditor implements IProfilerControll
|
|||||||
this._stateListener.dispose();
|
this._stateListener.dispose();
|
||||||
}
|
}
|
||||||
this._stateListener = input.state.addChangeListener(e => this._onStateChange(e));
|
this._stateListener = input.state.addChangeListener(e => this._onStateChange(e));
|
||||||
|
input.data.onRowCountChange(() => { this._profilerTable.updateRowCount(); });
|
||||||
|
|
||||||
if (this._findCountChangeListener) {
|
if (this._findCountChangeListener) {
|
||||||
this._findCountChangeListener.dispose();
|
this._findCountChangeListener.dispose();
|
||||||
|
|||||||
@@ -252,6 +252,7 @@ export class ProfilerEditor extends BaseEditor {
|
|||||||
{ action: this._pauseAction },
|
{ action: this._pauseAction },
|
||||||
{ action: this._autoscrollAction },
|
{ action: this._autoscrollAction },
|
||||||
{ action: this._instantiationService.createInstance(Actions.ProfilerClear, Actions.ProfilerClear.ID, Actions.ProfilerClear.LABEL) },
|
{ action: this._instantiationService.createInstance(Actions.ProfilerClear, Actions.ProfilerClear.ID, Actions.ProfilerClear.LABEL) },
|
||||||
|
{ element: Taskbar.createTaskbarSeparator() },
|
||||||
{ element: viewTemplateContainer },
|
{ element: viewTemplateContainer },
|
||||||
{ element: Taskbar.createTaskbarSeparator() },
|
{ element: Taskbar.createTaskbarSeparator() },
|
||||||
{ element: this._connectionInfoText }
|
{ element: this._connectionInfoText }
|
||||||
@@ -344,6 +345,10 @@ export class ProfilerEditor extends BaseEditor {
|
|||||||
]
|
]
|
||||||
}, { forceFitColumns: true });
|
}, { forceFitColumns: true });
|
||||||
|
|
||||||
|
this._detailTableData.onRowCountChange(() => {
|
||||||
|
this._detailTable.updateRowCount();
|
||||||
|
});
|
||||||
|
|
||||||
this._tabbedPanel.pushTab({
|
this._tabbedPanel.pushTab({
|
||||||
identifier: 'detailTable',
|
identifier: 'detailTable',
|
||||||
title: nls.localize('details', "Details"),
|
title: nls.localize('details', "Details"),
|
||||||
|
|||||||
1
src/sql/parts/profiler/media/clear.svg
Normal file
1
src/sql/parts/profiler/media/clear.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.065 13H15v2H2.056v-2h5.009zm3.661-12H7.385L8.44 2.061 7.505 3H15V1h-4.274zM3.237 9H2.056v2H15V9H3.237zm4.208-4l.995 1-.995 1H15V5H7.445z" fill="#424242"/><path d="M5.072 4.03L7.032 6 5.978 7.061l-1.96-1.97-1.961 1.97L1 6l1.96-1.97L1 2.061 2.056 1l1.96 1.97L5.977 1l1.057 1.061L5.072 4.03z" fill="#A1260D"/></svg>
|
||||||
|
After Width: | Height: | Size: 419 B |
1
src/sql/parts/profiler/media/clear_inverse.svg
Normal file
1
src/sql/parts/profiler/media/clear_inverse.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.065 13H15v2H2.056v-2h5.009zm3.661-12H7.385L8.44 2.061 7.505 3H15V1h-4.274zM3.237 9H2.056v2H15V9H3.237zm4.208-4l.995 1-.995 1H15V5H7.445z" fill="#C5C5C5"/><path d="M5.072 4.03L7.032 6 5.978 7.061l-1.96-1.97-1.961 1.97L1 6l1.96-1.97L1 2.061 2.056 1l1.96 1.97L5.977 1l1.057 1.061L5.072 4.03z" fill="#F48771"/></svg>
|
||||||
|
After Width: | Height: | Size: 419 B |
@@ -11,3 +11,11 @@
|
|||||||
.tree-row > * {
|
.tree-row > * {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vs .icon.clear-results {
|
||||||
|
background-image: url('clear.svg');
|
||||||
|
}
|
||||||
|
|
||||||
|
.vs-dark .icon.clear-results {
|
||||||
|
background-image: url('clear_inverse.svg');
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user