mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 17:22:42 -05:00
Profiler display fixes (#1949)
* Fixing details tab, window resizing, and having profiler options in object explorer * Fixing displaying connection names * spacing * Removing unnecessary code
This commit is contained in:
committed by
GitHub
parent
c23328564f
commit
f24f576b72
@@ -166,6 +166,7 @@ export class ProfilerTableEditor extends BaseEditor implements IProfilerControll
|
||||
public layout(dimension: Dimension): void {
|
||||
this._currentDimensions = dimension;
|
||||
this._profilerTable.layout(dimension);
|
||||
this._profilerTable.autosizeColumns();
|
||||
this._onDidChangeConfiguration.fire({ layoutInfo: true });
|
||||
}
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ class BasicView extends View {
|
||||
private _previousSize: number;
|
||||
private _collapsed: boolean;
|
||||
public headerSize: number;
|
||||
|
||||
constructor(
|
||||
initialSize: number,
|
||||
private _element: HTMLElement,
|
||||
@@ -58,6 +59,7 @@ class BasicView extends View {
|
||||
opts: IViewOptions
|
||||
) {
|
||||
super(initialSize, opts);
|
||||
this._previousSize = initialSize;
|
||||
}
|
||||
|
||||
render(container: HTMLElement, orientation: Orientation): void {
|
||||
|
||||
@@ -151,7 +151,11 @@ export class ProfilerInput extends EditorInput implements IProfilerSession {
|
||||
|
||||
public get connectionName(): string {
|
||||
if (this._connection !== null) {
|
||||
return `${ this._connection.serverName } ${ this._connection.databaseName }`;
|
||||
if (this._connection.databaseName) {
|
||||
return `${ this._connection.serverName } ${ this._connection.databaseName }`;
|
||||
} else {
|
||||
return `${ this._connection.serverName }`;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return nls.localize('profilerInput.notConnected', "Not connected");
|
||||
|
||||
@@ -98,7 +98,6 @@ export interface IProfilerSettings {
|
||||
|
||||
export interface IColumnViewTemplate {
|
||||
name: string;
|
||||
width: string;
|
||||
eventsMapped: Array<string>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user