fix tests

This commit is contained in:
Joao Moreno
2016-02-25 09:06:45 +01:00
parent d17316afa9
commit cecdf875d5

View File

@@ -204,9 +204,11 @@ export class ModelServiceImpl implements IModelService {
this._configurationService = configurationService;
let readDefaultEOL = (config:any) => {
if (config.files.eol === '\r\n') {
const eol = config.files && config.files.eol;
if (eol === '\r\n') {
this._defaultEOL = editorCommon.DefaultEndOfLine.CRLF;
} else if (config.files.eol === '\n') {
} else if (eol === '\n') {
this._defaultEOL = editorCommon.DefaultEndOfLine.LF;
}
};