mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-23 21:30:29 -04:00
Merge from vscode e1d3dd53d17fb1529a002e4d6fb066db0a0bd385 (#6460)
* Merge from vscode e1d3dd53d17fb1529a002e4d6fb066db0a0bd385 * fix servers icon * fix tests
This commit is contained in:
@@ -581,7 +581,7 @@ export class DeleteAllLeftAction extends AbstractDeleteAllToBoundaryAction {
|
||||
return new Range(selection.startLineNumber, 1, selection.startLineNumber, selection.startColumn);
|
||||
}
|
||||
} else {
|
||||
return selection;
|
||||
return new Range(selection.startLineNumber, 1, selection.endLineNumber, selection.endColumn);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -268,7 +268,7 @@ suite('Editor Contrib - Line Operations', () => {
|
||||
|
||||
editor.setSelections([new Selection(2, 2, 2, 2), new Selection(2, 4, 2, 5)]);
|
||||
deleteAllLeftAction.run(null!, editor);
|
||||
assert.equal(model.getLineContent(2), 'ord', '002');
|
||||
assert.equal(model.getLineContent(2), 'd', '002');
|
||||
|
||||
editor.setSelections([new Selection(3, 2, 3, 5), new Selection(3, 7, 3, 7)]);
|
||||
deleteAllLeftAction.run(null!, editor);
|
||||
@@ -276,11 +276,11 @@ suite('Editor Contrib - Line Operations', () => {
|
||||
|
||||
editor.setSelections([new Selection(4, 3, 4, 3), new Selection(4, 5, 5, 4)]);
|
||||
deleteAllLeftAction.run(null!, editor);
|
||||
assert.equal(model.getLineContent(4), 'lljour', '004');
|
||||
assert.equal(model.getLineContent(4), 'jour', '004');
|
||||
|
||||
editor.setSelections([new Selection(5, 3, 6, 3), new Selection(6, 5, 7, 5), new Selection(7, 7, 7, 7)]);
|
||||
deleteAllLeftAction.run(null!, editor);
|
||||
assert.equal(model.getLineContent(5), 'horlworld', '005');
|
||||
assert.equal(model.getLineContent(5), 'world', '005');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user