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

This commit is contained in:
Raj
2019-03-21 21:31:53 -07:00
committed by Karl Burtram
parent 8b826063b4
commit 0d7d1cf375
+2 -1
View File
@@ -101,7 +101,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