提交 a946fcae 编写于 作者: S Sylvain Joyeux

separate lines with \r\n on Windows

上级 2780fe74
......@@ -12,6 +12,7 @@ import * as Assert from 'vs/base/common/assert';
import * as Paths from 'vs/base/common/paths';
import * as Types from 'vs/base/common/types';
import * as UUID from 'vs/base/common/uuid';
import * as Platform from 'vs/base/common/platform';
import Severity from 'vs/base/common/severity';
import URI from 'vs/base/common/uri';
import { TPromise } from 'vs/base/common/winjs.base';
......@@ -189,6 +190,8 @@ export function createLineMatcher(matcher: ProblemMatcher): ILineMatcher {
}
}
const endOfLine: string = Platform.OS === Platform.OperatingSystem.Windows ? '\r\n' : '\n';
abstract class AbstractLineMatcher implements ILineMatcher {
private matcher: ProblemMatcher;
......@@ -227,7 +230,7 @@ abstract class AbstractLineMatcher implements ILineMatcher {
if (trim) {
value = Strings.trim(value);
}
data[property] += '\n' + value;
data[property] += endOfLine + value;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册