@@ -143,7 +143,7 @@ export function runDeleteAction(editor: IActiveNotebookEditor, cell: ICellViewMo
143
143
return { kind : SelectionStateType . Index , focus : { start : 0 , end : 0 } , selections : [ { start : 0 , end : 0 } ] } ;
144
144
}
145
145
}
146
- } , undefined ) ;
146
+ } , undefined , true ) ;
147
147
} else {
148
148
const focus = editor . getFocus ( ) ;
149
149
const edits : ICellReplaceEdit [ ] = [ {
@@ -169,14 +169,14 @@ export function runDeleteAction(editor: IActiveNotebookEditor, cell: ICellViewMo
169
169
170
170
textModel . applyEdits ( edits , true , { kind : SelectionStateType . Index , focus : editor . getFocus ( ) , selections : editor . getSelections ( ) } , ( ) => ( {
171
171
kind : SelectionStateType . Index , focus : newFocus , selections : finalSelections
172
- } ) , undefined ) ;
172
+ } ) , undefined , true ) ;
173
173
} else {
174
174
// users decide to delete a cell out of current focus/selection
175
175
const newFocus = focus . start > targetCellIndex ? { start : focus . start - 1 , end : focus . end - 1 } : focus ;
176
176
177
177
textModel . applyEdits ( edits , true , { kind : SelectionStateType . Index , focus : editor . getFocus ( ) , selections : editor . getSelections ( ) } , ( ) => ( {
178
178
kind : SelectionStateType . Index , focus : newFocus , selections : finalSelections
179
- } ) , undefined ) ;
179
+ } ) , undefined , true ) ;
180
180
}
181
181
}
182
182
}
@@ -222,7 +222,8 @@ export async function moveCellRange(context: INotebookCellActionContext, directi
222
222
selections : editor . getSelections ( )
223
223
} ,
224
224
( ) => ( { kind : SelectionStateType . Index , focus : newFocus , selections : [ finalSelection ] } ) ,
225
- undefined
225
+ undefined ,
226
+ true
226
227
) ;
227
228
const focusRange = editor . getSelections ( ) [ 0 ] ?? editor . getFocus ( ) ;
228
229
editor . revealCellRangeInView ( focusRange ) ;
@@ -250,7 +251,8 @@ export async function moveCellRange(context: INotebookCellActionContext, directi
250
251
selections : editor . getSelections ( )
251
252
} ,
252
253
( ) => ( { kind : SelectionStateType . Index , focus : newFocus , selections : [ finalSelection ] } ) ,
253
- undefined
254
+ undefined ,
255
+ true
254
256
) ;
255
257
256
258
const focusRange = editor . getSelections ( ) [ 0 ] ?? editor . getFocus ( ) ;
@@ -304,7 +306,8 @@ export async function copyCellRange(context: INotebookCellActionContext, directi
304
306
selections : selections
305
307
} ,
306
308
( ) => ( { kind : SelectionStateType . Index , focus : focus , selections : selections } ) ,
307
- undefined
309
+ undefined ,
310
+ true
308
311
) ;
309
312
} else {
310
313
// insert down, move selections
@@ -328,7 +331,8 @@ export async function copyCellRange(context: INotebookCellActionContext, directi
328
331
selections : selections
329
332
} ,
330
333
( ) => ( { kind : SelectionStateType . Index , focus : newFocus , selections : newSelections } ) ,
331
- undefined
334
+ undefined ,
335
+ true
332
336
) ;
333
337
334
338
const focusRange = editor . getSelections ( ) [ 0 ] ?? editor . getFocus ( ) ;
0 commit comments