You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decrement line ends if they end with a carriage return. (microsoft#31220)
* Decrement line ends if they end with a carriage return.
* Changed handling of newlines and inlined regex operation.
* fixed misname of hintSpan
* added tests
* revert inline of regex match and use getLineEndOfPosition
* fixed lint error and changed a silly thing in tests
assert(textAfterSpanCollapse.match(options.newLine===NewLineKind.CarriageReturnLineFeed ? /\r\n/ : /[^\r]\n/),"expected to find appropriate newlines");
50
+
assert(!textAfterSpanCollapse.match(options.newLine===NewLineKind.CarriageReturnLineFeed ? /[^\r]\n/ : /\r\n/),"expected not to find inappropriate newlines");
51
+
}
52
+
41
53
it("should exist and respect provided compiler options",()=>{
42
54
verifyBothNewLines(`
43
55
function foo() {
44
56
return 2 + 2;
45
57
}
46
58
`);
47
59
});
60
+
61
+
it("should respect CRLF line endings around outlining spans",()=>{
0 commit comments