mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 02:48:30 -05:00
Merge from vscode 79a1f5a5ca0c6c53db617aa1fa5a2396d2caebe2
This commit is contained in:
@@ -82,6 +82,28 @@ export class CursorCollection {
|
||||
return result;
|
||||
}
|
||||
|
||||
public getTopMostViewPosition(): Position {
|
||||
let result = this.primaryCursor.viewState.position;
|
||||
for (let i = 0, len = this.secondaryCursors.length; i < len; i++) {
|
||||
const viewPosition = this.secondaryCursors[i].viewState.position;
|
||||
if (viewPosition.isBefore(result)) {
|
||||
result = viewPosition;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public getBottomMostViewPosition(): Position {
|
||||
let result = this.primaryCursor.viewState.position;
|
||||
for (let i = 0, len = this.secondaryCursors.length; i < len; i++) {
|
||||
const viewPosition = this.secondaryCursors[i].viewState.position;
|
||||
if (result.isBeforeOrEqual(viewPosition)) {
|
||||
result = viewPosition;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public getSelections(): Selection[] {
|
||||
let result: Selection[] = [];
|
||||
result[0] = this.primaryCursor.modelState.selection;
|
||||
@@ -204,7 +226,7 @@ export class CursorCollection {
|
||||
const currentSelection = current.selection;
|
||||
const nextSelection = next.selection;
|
||||
|
||||
if (!this.context.config.multiCursorMergeOverlapping) {
|
||||
if (!this.context.cursorConfig.multiCursorMergeOverlapping) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user