We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ef2555 commit 4e8fefdCopy full SHA for 4e8fefd
packages/common/src/testUtil/mockEditor.ts
@@ -71,9 +71,6 @@ export class MockTextDocument implements TextDocument {
71
this.uri = URI.file(filename);
72
this.languageId = languageId;
73
this.version = 1;
74
- if (contents.indexOf("\r\n") !== -1) {
75
- throw new Error("InMemoryTextDocument does not support CRLF (yet?)");
76
- }
77
this.contents = contents;
78
const rawLines: string[] = contents.match(/[^\n]*\n|[^\n]+/g) ?? [];
79
this.lines = rawLines.map((line, i) => {
0 commit comments