strict null trouble

This commit is contained in:
Johannes Rieken
2019-03-19 15:45:18 +01:00
parent 6c17a35f11
commit cfd4cb8c81
3 changed files with 5 additions and 3 deletions

View File

@@ -607,7 +607,7 @@ export class ExtHostTextEditor implements vscode.TextEditor {
});
return this._proxy.$tryApplyEdits(this._id, editData.documentVersionId, edits, {
setEndOfLine: TypeConverters.EndOfLine.from(editData.setEndOfLine),
setEndOfLine: editData.setEndOfLine && TypeConverters.EndOfLine.from(editData.setEndOfLine),
undoStopBefore: editData.undoStopBefore,
undoStopAfter: editData.undoStopAfter
});