mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix outputs constantly focusing on new output (#5959)
- Only scroll if it's the 1st output, not for subsequent ones - Otherwise can't use notebook while a cell is running & regularly updating the outputs
This commit is contained in:
@@ -402,7 +402,9 @@ export class CellModel implements ICellModel {
|
|||||||
// deletes transient node in the serialized JSON
|
// deletes transient node in the serialized JSON
|
||||||
delete output['transient'];
|
delete output['transient'];
|
||||||
this._outputs.push(this.rewriteOutputUrls(output));
|
this._outputs.push(this.rewriteOutputUrls(output));
|
||||||
this.fireOutputsChanged(true);
|
// Only scroll on 1st output being added
|
||||||
|
let shouldScroll = this._outputs.length === 1;
|
||||||
|
this.fireOutputsChanged(shouldScroll);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user