mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fixes
This commit is contained in:
parent
6cbf300b65
commit
23cfb0b997
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue