mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 011858832762aaff245b2336fb1c38166e7a10fb (#4663)
This commit is contained in:
@@ -21,7 +21,7 @@ export class MoveLinesCommand implements ICommand {
|
||||
private readonly _autoIndent: boolean;
|
||||
|
||||
private _selectionId: string;
|
||||
private _moveEndPositionDown: boolean;
|
||||
private _moveEndPositionDown?: boolean;
|
||||
private _moveEndLineSelectionShrink: boolean;
|
||||
|
||||
constructor(selection: Selection, isMovingDown: boolean, autoIndent: boolean) {
|
||||
|
||||
@@ -196,10 +196,9 @@ suite('Editor Contrib - Line Operations', () => {
|
||||
const endOfNonono = new Selection(5, 11, 5, 11);
|
||||
|
||||
editor.setSelections([beforeSecondWasoSelection, endOfBCCSelection, endOfNonono]);
|
||||
let selections;
|
||||
|
||||
deleteAllLeftAction.run(null!, editor);
|
||||
selections = editor.getSelections();
|
||||
let selections = editor.getSelections()!;
|
||||
|
||||
assert.equal(model.getLineContent(2), '');
|
||||
assert.equal(model.getLineContent(3), ' waso waso');
|
||||
@@ -227,7 +226,7 @@ suite('Editor Contrib - Line Operations', () => {
|
||||
], [5, 1, 5, 1]);
|
||||
|
||||
deleteAllLeftAction.run(null!, editor);
|
||||
selections = editor.getSelections();
|
||||
selections = editor.getSelections()!;
|
||||
|
||||
assert.equal(model.getLineContent(1), 'hi my name is Carlos Matos waso waso');
|
||||
assert.equal(selections.length, 2);
|
||||
|
||||
Reference in New Issue
Block a user