mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
send out missing selection change event when moving cells.
This commit is contained in:
parent
553a11c6c8
commit
b26e0bcf39
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue