File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/vs/workbench/contrib/notebook/browser/view/cellParts Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -329,8 +329,12 @@ export class CodeCell extends Disposable {
329
329
} ) ) ;
330
330
331
331
this . _register ( this . templateData . editor . onDidChangeCursorSelection ( ( e ) => {
332
- if ( e . source === 'restoreState' || e . oldModelVersionId === 0 ) {
333
- // do not reveal the cell into view if this selection change was caused by restoring editors...
332
+ if (
333
+ // do not reveal the cell into view if this selection change was caused by restoring editors
334
+ e . source === 'restoreState' || e . oldModelVersionId === 0
335
+ // nor if the text editor is not actually focused (e.g. inline chat is focused and modifying the cell content)
336
+ || ! this . templateData . editor . hasTextFocus ( )
337
+ ) {
334
338
return ;
335
339
}
336
340
You can’t perform that action at this time.
0 commit comments