send out missing selection change event when moving cells.

This commit is contained in:
rebornix 2020-05-26 08:07:51 -07:00
parent 553a11c6c8
commit b26e0bcf39
2 changed files with 5 additions and 4 deletions

View file

@ -35,6 +35,7 @@ export class MainThreadNotebookDocument extends Disposable {
this._textModel = new NotebookTextModel(handle, viewType, uri);
this._register(this._textModel.onDidModelChange(e => {
this._proxy.$acceptModelChanged(this.uri, e);
this._proxy.$acceptEditorPropertiesChanged(uri, { selections: { selections: this._textModel.selections }, metadata: null });
}));
this._register(this._textModel.onDidSelectionChange(e => {
const selectionsChange = e ? { selections: e } : null;

View file

@ -469,10 +469,10 @@ export async function changeCellToKind(kind: CellKind, context: INotebookCellAct
}
export interface INotebookCellActionContext {
cellTemplate?: BaseCellRenderTemplate;
cell: ICellViewModel;
notebookEditor: INotebookEditor;
ui?: boolean;
readonly cellTemplate?: BaseCellRenderTemplate;
readonly cell: ICellViewModel;
readonly notebookEditor: INotebookEditor;
readonly ui?: boolean;
}
abstract class InsertCellCommand extends NotebookAction {