mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-17 19:11:36 -04:00
Refresh master with initial release/0.24 snapshot (#332)
* Initial port of release/0.24 source code * Fix additional headers * Fix a typo in launch.json
This commit is contained in:
@@ -41,13 +41,14 @@ export class ProfilerInput extends EditorInput implements IProfilerSession {
|
||||
this._state = new ProfilerState();
|
||||
// set inital state
|
||||
this.state.change({
|
||||
isConnected: false,
|
||||
isConnected: true,
|
||||
isStopped: false,
|
||||
isPaused: false,
|
||||
isRunning: false,
|
||||
autoscroll: true
|
||||
});
|
||||
this._id = this._profilerService.registerSession(generateUuid(), this);
|
||||
|
||||
this._id = this._profilerService.registerSession(generateUuid(), _connection, this);
|
||||
let searchFn = (val: { [x: string]: string }, exp: string): Array<number> => {
|
||||
let ret = new Array<number>();
|
||||
for (let i = 0; i < this._columns.length; i++) {
|
||||
@@ -124,13 +125,16 @@ export class ProfilerInput extends EditorInput implements IProfilerSession {
|
||||
return this._state;
|
||||
}
|
||||
|
||||
public onMoreRows(rowCount: number, data: data.IProfilerTableRow) {
|
||||
let validColumns = this.sessionTemplate.view.events.find(i => i.name === data.EventClass).columns;
|
||||
Object.keys(rowCount).forEach(k => {
|
||||
if (!validColumns.includes(k)) {
|
||||
delete rowCount[k];
|
||||
}
|
||||
});
|
||||
this._data.push(data);
|
||||
public onMoreRows(events: data.ProfilerSessionEvents) {
|
||||
|
||||
events = undefined;
|
||||
|
||||
// let validColumns = this.sessionTemplate.view.events.find(i => i.name === data.EventClass).columns;
|
||||
// Object.keys(rowCount).forEach(k => {
|
||||
// if (!validColumns.includes(k)) {
|
||||
// delete rowCount[k];
|
||||
// }
|
||||
// });
|
||||
// this._data.push(data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user