Change the way we insert Injected Parameter (#13171)

This commit is contained in:
Vasu Bhog
2020-11-02 09:14:37 -08:00
committed by GitHub
parent b2e06fd440
commit 351516f08d

View File

@@ -369,7 +369,7 @@ export class NotebookModel extends Disposable implements INotebookModel {
*/
if (cellModel.isInjectedParameter) {
cellModel.source = cellModel.source.slice(1);
cellModel.source = '# Injected-Parameters\n' + cellModel.source;
cellModel.source = ['# Injected-Parameters\n'].concat(cellModel.source);
}
this.trackMarkdownTelemetry(<nb.ICellContents>c, cellModel);
return cellModel;