mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-19 03:21:36 -04:00
Merge from vscode 52dcb723a39ae75bee1bd56b3312d7fcdc87aeed (#6719)
This commit is contained in:
@@ -14,13 +14,17 @@ export class CopyLinesCommand implements editorCommon.ICommand {
|
||||
private readonly _isCopyingDown: boolean;
|
||||
|
||||
private _selectionDirection: SelectionDirection;
|
||||
private _selectionId: string;
|
||||
private _selectionId: string | null;
|
||||
private _startLineNumberDelta: number;
|
||||
private _endLineNumberDelta: number;
|
||||
|
||||
constructor(selection: Selection, isCopyingDown: boolean) {
|
||||
this._selection = selection;
|
||||
this._isCopyingDown = isCopyingDown;
|
||||
this._selectionDirection = SelectionDirection.LTR;
|
||||
this._selectionId = null;
|
||||
this._startLineNumberDelta = 0;
|
||||
this._endLineNumberDelta = 0;
|
||||
}
|
||||
|
||||
public getEditOperations(model: ITextModel, builder: editorCommon.IEditOperationBuilder): void {
|
||||
@@ -58,7 +62,7 @@ export class CopyLinesCommand implements editorCommon.ICommand {
|
||||
}
|
||||
|
||||
public computeCursorState(model: ITextModel, helper: editorCommon.ICursorStateComputerData): Selection {
|
||||
let result = helper.getTrackedSelection(this._selectionId);
|
||||
let result = helper.getTrackedSelection(this._selectionId!);
|
||||
|
||||
if (this._startLineNumberDelta !== 0 || this._endLineNumberDelta !== 0) {
|
||||
let startLineNumber = result.startLineNumber;
|
||||
|
||||
Reference in New Issue
Block a user