This commit is contained in:
Don Jayamanne 2021-08-19 12:23:01 -07:00
parent 6cbf300b65
commit 23cfb0b997

View file

@ -41,7 +41,7 @@ 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)) : ' ';
const indentAmount = contents ? detectIndent(contents.substring(0, 1_000)).indent : ' ';
const preferredCellLanguage = getPreferredLanguage(json.metadata);
// Ensure we always have a blank cell.