#4618: Notebook JSON has extra } after save (#4627)

This commit is contained in:
Raj
2019-03-20 11:12:02 -07:00
committed by GitHub
parent 025c97673f
commit 6873353cd4

View File

@@ -100,7 +100,8 @@ export class NotebookEditorModel extends EditorModel {
let content = JSON.stringify(notebookModel.toJSON(), undefined, ' ');
let model = this.textEditorModel.textEditorModel;
let endLine = model.getLineCount();
let endCol = model.getLineLength(endLine);
let endCol = model.getLineMaxColumn(endLine);
this.textEditorModel.textEditorModel.applyEdits([{
range: new Range(1, 1, endLine, endCol),
text: content