differenciate selection and focus.

This commit is contained in:
rebornix
2021-02-21 19:35:26 -08:00
parent e8966ecaa9
commit de956ce8bd
21 changed files with 150 additions and 122 deletions

View File

@@ -589,12 +589,7 @@ export class ExtHostNotebookController implements ExtHostNotebookShape {
}
if (data.selections) {
if (data.selections.selections.length) {
const firstCell = data.selections.selections[0];
editor.editor.selection = editor.editor.notebookData.getCell(firstCell)?.cell;
} else {
editor.editor.selection = undefined;
}
editor.editor.selection = data.selections.primary !== null ? editor.editor.notebookData.getCell(data.selections.primary)?.cell : undefined;
editor.editor._acceptSelections(data.selections.selections);