Use the TextSource EOL when updating the model

pull/29655/head
Alex Dima 2017-08-28 22:13:16 +02:00
parent eb52beaec2
commit 576a133367
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ export class ModelServiceImpl implements IModelService {
}
// Otherwise find a diff between the values and update model
// TODO: update BOM, EOL
model.setEOL(textSource.EOL === '\r\n' ? editorCommon.EndOfLineSequence.CRLF : editorCommon.EndOfLineSequence.LF);
model.pushEditOperations(
[new Selection(1, 1, 1, 1)],
ModelServiceImpl._computeEdits(model, textSource),