Skip to content

Commit 4e8fefd

Browse files
committed
we support crlf (i think)
1 parent 4ef2555 commit 4e8fefd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/common/src/testUtil/mockEditor.ts

-3
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ export class MockTextDocument implements TextDocument {
7171
this.uri = URI.file(filename);
7272
this.languageId = languageId;
7373
this.version = 1;
74-
if (contents.indexOf("\r\n") !== -1) {
75-
throw new Error("InMemoryTextDocument does not support CRLF (yet?)");
76-
}
7774
this.contents = contents;
7875
const rawLines: string[] = contents.match(/[^\n]*\n|[^\n]+/g) ?? [];
7976
this.lines = rawLines.map((line, i) => {

0 commit comments

Comments
 (0)