mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 02:48:30 -05:00
Merge VS Code 1.23.1 (#1520)
This commit is contained in:
@@ -31,6 +31,20 @@ export class CursorCollection {
|
||||
this.killSecondaryCursors();
|
||||
}
|
||||
|
||||
public startTrackingSelections(): void {
|
||||
this.primaryCursor.startTrackingSelection(this.context);
|
||||
for (let i = 0, len = this.secondaryCursors.length; i < len; i++) {
|
||||
this.secondaryCursors[i].startTrackingSelection(this.context);
|
||||
}
|
||||
}
|
||||
|
||||
public stopTrackingSelections(): void {
|
||||
this.primaryCursor.stopTrackingSelection(this.context);
|
||||
for (let i = 0, len = this.secondaryCursors.length; i < len; i++) {
|
||||
this.secondaryCursors[i].stopTrackingSelection(this.context);
|
||||
}
|
||||
}
|
||||
|
||||
public updateContext(context: CursorContext): void {
|
||||
this.context = context;
|
||||
}
|
||||
@@ -193,6 +207,10 @@ export class CursorCollection {
|
||||
const currentViewSelection = current.viewSelection;
|
||||
const nextViewSelection = next.viewSelection;
|
||||
|
||||
if (!this.context.config.multiCursorMergeOverlapping) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let shouldMergeCursors: boolean;
|
||||
if (nextViewSelection.isEmpty() || currentViewSelection.isEmpty()) {
|
||||
// Merge touching cursors if one of them is collapsed
|
||||
|
||||
Reference in New Issue
Block a user