mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
@@ -74,7 +74,7 @@ However we always want it to be the width of the container it is resizing.
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
height: auto;
|
height: auto;
|
||||||
width: 180px;
|
width: 240px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* query plan header that contains the relative query cost, query statement and recommendations */
|
/* query plan header that contains the relative query cost, query statement and recommendations */
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import { IContextViewService } from 'vs/platform/contextview/browser/contextView
|
|||||||
import { INotificationService } from 'vs/platform/notification/common/notification';
|
import { INotificationService } from 'vs/platform/notification/common/notification';
|
||||||
import { IThemeService } from 'vs/platform/theme/common/themeService';
|
import { IThemeService } from 'vs/platform/theme/common/themeService';
|
||||||
import { zoomIconClassNames } from 'sql/workbench/contrib/queryplan2/browser/constants';
|
import { zoomIconClassNames } from 'sql/workbench/contrib/queryplan2/browser/constants';
|
||||||
|
import { Button } from 'sql/base/browser/ui/button/button';
|
||||||
|
|
||||||
export class CustomZoomWidget extends QueryPlanWidgetBase {
|
export class CustomZoomWidget extends QueryPlanWidgetBase {
|
||||||
private _actionBar: ActionBar;
|
private _actionBar: ActionBar;
|
||||||
@@ -53,10 +54,19 @@ export class CustomZoomWidget extends QueryPlanWidgetBase {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const applyButton = new Button(this.container, {
|
||||||
|
title: localize('customZoomApplyButtonTitle', "Apply Zoom (Enter)")
|
||||||
|
});
|
||||||
|
applyButton.setWidth('60px');
|
||||||
|
applyButton.label = localize('customZoomApplyButton', "Apply");
|
||||||
|
|
||||||
|
applyButton.onDidClick(async e => {
|
||||||
|
await new CustomZoomAction().run(self);
|
||||||
|
});
|
||||||
|
|
||||||
// Adding action bar
|
// Adding action bar
|
||||||
this._actionBar = new ActionBar(this.container);
|
this._actionBar = new ActionBar(this.container);
|
||||||
this._actionBar.context = this;
|
this._actionBar.context = this;
|
||||||
this._actionBar.pushAction(new CustomZoomAction(), { label: false, icon: true });
|
|
||||||
this._actionBar.pushAction(new CancelZoom(), { label: false, icon: true });
|
this._actionBar.pushAction(new CancelZoom(), { label: false, icon: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user