mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
fix maximum call stack size reached issue (#14878)
* fix maximum call stack size reached issue * Revert "fix maximum call stack size reached issue" This reverts commit 178675633032a508ddb5585d1adc4f83bb243f55. * add a few array operations * use new push
This commit is contained in:
@@ -34,6 +34,7 @@ import { IDataTreeViewState } from 'vs/base/browser/ui/tree/dataTree';
|
||||
import { IRange } from 'vs/editor/common/core/range';
|
||||
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
|
||||
import { IQueryEditorConfiguration } from 'sql/platform/query/common/query';
|
||||
import { push } from 'vs/base/common/arrays';
|
||||
|
||||
export interface IResultMessageIntern {
|
||||
id?: string;
|
||||
@@ -201,7 +202,7 @@ export class MessagePanel extends Disposable {
|
||||
|
||||
private onMessage(message: IQueryMessage | IQueryMessage[], setInput: boolean = false) {
|
||||
if (isArray(message)) {
|
||||
this.model.messages.push(...message);
|
||||
push(this.model.messages, message);
|
||||
} else {
|
||||
this.model.messages.push(message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user