mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
fix tests
This commit is contained in:
@@ -204,9 +204,11 @@ export class ModelServiceImpl implements IModelService {
|
|||||||
this._configurationService = configurationService;
|
this._configurationService = configurationService;
|
||||||
|
|
||||||
let readDefaultEOL = (config:any) => {
|
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;
|
this._defaultEOL = editorCommon.DefaultEndOfLine.CRLF;
|
||||||
} else if (config.files.eol === '\n') {
|
} else if (eol === '\n') {
|
||||||
this._defaultEOL = editorCommon.DefaultEndOfLine.LF;
|
this._defaultEOL = editorCommon.DefaultEndOfLine.LF;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user