mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-11 02:32:35 -05:00
Merge from master
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import { IRange } from 'vs/editor/common/core/range';
|
||||
|
||||
/**
|
||||
@@ -240,7 +238,7 @@ export class ModelRawContentChangedEvent {
|
||||
}
|
||||
|
||||
public static merge(a: ModelRawContentChangedEvent, b: ModelRawContentChangedEvent): ModelRawContentChangedEvent {
|
||||
const changes = [].concat(a.changes).concat(b.changes);
|
||||
const changes = ([] as ModelRawChange[]).concat(a.changes).concat(b.changes);
|
||||
const versionId = b.versionId;
|
||||
const isUndoing = (a.isUndoing || b.isUndoing);
|
||||
const isRedoing = (a.isRedoing || b.isRedoing);
|
||||
@@ -264,7 +262,7 @@ export class InternalModelContentChangeEvent {
|
||||
}
|
||||
|
||||
private static _mergeChangeEvents(a: IModelContentChangedEvent, b: IModelContentChangedEvent): IModelContentChangedEvent {
|
||||
const changes = [].concat(a.changes).concat(b.changes);
|
||||
const changes = ([] as IModelContentChange[]).concat(a.changes).concat(b.changes);
|
||||
const eol = b.eol;
|
||||
const versionId = b.versionId;
|
||||
const isUndoing = (a.isUndoing || b.isUndoing);
|
||||
|
||||
Reference in New Issue
Block a user