mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
profiler extension bug fixes (#3490)
This commit is contained in:
@@ -55,10 +55,10 @@ CommandsRegistry.registerCommand({
|
|||||||
|
|
||||||
let promise;
|
let promise;
|
||||||
if (connectionProfile) {
|
if (connectionProfile) {
|
||||||
promise = connectionService.connectIfNotConnected(connectionProfile);
|
promise = connectionService.connectIfNotConnected(connectionProfile, 'connection', true);
|
||||||
} else {
|
} else {
|
||||||
// if still no luck, we will open the Connection dialog and let user connect to a server
|
// if still no luck, we will open the Connection dialog and let user connect to a server
|
||||||
promise = connectionDialogService.openDialogAndWait(connectionService, { connectionType: 1, providers: [mssqlProviderName] }).then((profile) => {
|
promise = connectionDialogService.openDialogAndWait(connectionService, { connectionType: 0, showDashboard: false, providers: [mssqlProviderName] }).then((profile) => {
|
||||||
connectionProfile = profile as ConnectionProfile;
|
connectionProfile = profile as ConnectionProfile;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -308,8 +308,6 @@ export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSas
|
|||||||
// ----- Public
|
// ----- Public
|
||||||
|
|
||||||
public focusFindInput(): void {
|
public focusFindInput(): void {
|
||||||
this._findInput.select();
|
|
||||||
// Edge browser requires focus() in addition to select()
|
|
||||||
this._findInput.focus();
|
this._findInput.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -218,6 +218,7 @@ export class ProfilerTableEditor extends BaseEditor implements IProfilerControll
|
|||||||
if (p) {
|
if (p) {
|
||||||
this._profilerTable.setActiveCell(p.row, p.col);
|
this._profilerTable.setActiveCell(p.row, p.col);
|
||||||
this._updateFinderMatchState();
|
this._updateFinderMatchState();
|
||||||
|
this._finder.focusFindInput();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -557,6 +557,7 @@ export class ProfilerEditor extends BaseEditor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public focus() {
|
public focus() {
|
||||||
|
this._profilerEditorContextKey.set(true);
|
||||||
super.focus();
|
super.focus();
|
||||||
let savedViewState = this._savedTableViewStates.get(this.input);
|
let savedViewState = this._savedTableViewStates.get(this.input);
|
||||||
if (savedViewState) {
|
if (savedViewState) {
|
||||||
|
|||||||
@@ -66,7 +66,8 @@ export class ProfilerInput extends EditorInput implements IProfilerSession {
|
|||||||
let searchFn = (val: { [x: string]: string }, exp: string): Array<number> => {
|
let searchFn = (val: { [x: string]: string }, exp: string): Array<number> => {
|
||||||
let ret = new Array<number>();
|
let ret = new Array<number>();
|
||||||
for (let i = 0; i < this._columns.length; i++) {
|
for (let i = 0; i < this._columns.length; i++) {
|
||||||
if (val[this._columns[i]].includes(exp)) {
|
let colVal = val[this._columns[i]];
|
||||||
|
if (colVal && colVal.toLocaleLowerCase().includes(exp.toLocaleLowerCase())) {
|
||||||
ret.push(i);
|
ret.push(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user