Revert "Merge pull request #131035 from DonJayamanne/issue129370"

This reverts commit b23486ef7a, reversing
changes made to 9e0732389b.
This commit is contained in:
Don Jayamanne
2021-08-24 16:27:10 -07:00
parent 7894e40044
commit c397afa3bd
4 changed files with 22 additions and 258 deletions
+2 -2
View File
@@ -40,8 +40,8 @@ export class NotebookSerializer implements vscode.NotebookSerializer {
}
}
// Then compute indent from the contents (only use first 1K characters as a perf optimization)
const indentAmount = contents ? detectIndent(contents.substring(0, 1_000)).indent : ' ';
// Then compute indent from the contents
const indentAmount = contents ? detectIndent(contents).indent : ' ';
const preferredCellLanguage = getPreferredLanguage(json.metadata);
// Ensure we always have a blank cell.