add eol to IMainCellDto, no more attach/dettach text document but use the actual (sync'd) document or a fallback cell document

This commit is contained in:
Johannes Rieken
2020-07-16 12:55:31 +02:00
parent f3fed74a92
commit 80a3310946
6 changed files with 239 additions and 97 deletions

View File

@@ -168,6 +168,7 @@ class DocumentAndEditorState {
handle: cell.handle,
uri: cell.uri,
source: cell.textBuffer.getLinesContent(),
eol: cell.textBuffer.getEOL(),
language: cell.language,
cellKind: cell.cellKind,
outputs: cell.outputs,
@@ -573,6 +574,7 @@ export class MainThreadNotebookController implements IMainNotebookController {
handle: cell.handle,
uri: cell.uri,
source: cell.textBuffer.getLinesContent(),
eol: cell.textBuffer.getEOL(),
language: cell.language,
cellKind: cell.cellKind,
outputs: cell.outputs,
@@ -613,6 +615,7 @@ export class MainThreadNotebookController implements IMainNotebookController {
handle: cell.handle,
uri: cell.uri,
source: cell.textBuffer.getLinesContent(),
eol: cell.textBuffer.getEOL(),
language: cell.language,
cellKind: cell.cellKind,
outputs: cell.outputs,