mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
(cherry picked from commit d251bbd1a1)
This commit is contained in:
@@ -573,6 +573,11 @@ export class NotebookModel extends Disposable implements INotebookModel {
|
|||||||
|
|
||||||
//Get selection value from current cell
|
//Get selection value from current cell
|
||||||
let newCellContent = model.getValueInRange(selection);
|
let newCellContent = model.getValueInRange(selection);
|
||||||
|
let startPosition = selection.getStartPosition();
|
||||||
|
//If the cursor is at the beginning of the cell with no selection, return
|
||||||
|
if (newCellContent.length === 0 && startPosition.lineNumber === 1 && startPosition.column === 1) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
//Get content after selection
|
//Get content after selection
|
||||||
let tailRange = range.setStartPosition(selection.endLineNumber, selection.endColumn);
|
let tailRange = range.setStartPosition(selection.endLineNumber, selection.endColumn);
|
||||||
|
|||||||
Reference in New Issue
Block a user