Insert generated cell in Analyze in Notebook at index 0, rather than replacing first cell's contents. (#6965)

This commit is contained in:
Cory Rivera
2019-08-27 11:19:17 -07:00
committed by GitHub
parent f6140ebd11
commit 8031f8b199

View File

@@ -234,12 +234,11 @@ async function analyzeNotebook(oeContext?: azdata.ObjectExplorerContext): Promis
+ os.EOL + '.option("header", "true")' + os.EOL + '.csv("{0}"))' + os.EOL + 'df.show(10)';
editor.edit(editBuilder => {
editBuilder.replace(0, {
editBuilder.insertCell({
cell_type: 'code',
source: analyzeCommand.replace('{0}', hdfsPath)
});
}, 0);
});
}
}
}