Skip to content

Commit 3ca1cc4

Browse files
committed
Clean up TODOs for microsoft#18445
1 parent db3f7c5 commit 3ca1cc4

72 files changed

Lines changed: 2 additions & 75 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/harness/fourslash.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2568,9 +2568,7 @@ Actual: ${stringify(fullActual)}`);
25682568
const originalContent = scriptInfo.content;
25692569
for (const codeFix of codeFixes) {
25702570
this.applyEdits(codeFix.changes[0].fileName, codeFix.changes[0].textChanges, /*isFormattingEdit*/ false);
2571-
let text = this.rangeText(ranges[0]);
2572-
// TODO:GH#18445 (remove this line to see errors in many `importNameCodeFix` tests)
2573-
text = text.replace(/\r\n/g, "\n");
2571+
const text = this.rangeText(ranges[0]);
25742572
actualTextArray.push(text);
25752573
scriptInfo.updateContent(originalContent);
25762574
}

tests/cases/fourslash/codeFixAddMissingMember.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
verify.codeFix({
1010
description: "Declare property 'foo'",
1111
index: 0,
12-
// TODO: GH#18445
1312
newFileContent: `class C {
1413
foo: number;
1514
method() {

tests/cases/fourslash/codeFixAddMissingMember2.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
verify.codeFix({
1010
description: "Add index signature for property 'foo'",
1111
index: 1,
12-
// TODO: GH#18445
1312
newFileContent: `class C {
1413
[x: string]: number;
1514
method() {

tests/cases/fourslash/codeFixAddMissingMember3.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
verify.codeFix({
1010
description: "Declare static property 'foo'",
1111
index: 0,
12-
// TODO: GH#18445
1312
newFileContent: `class C {
1413
static foo: number;
1514
static method() {

tests/cases/fourslash/codeFixAddMissingMember4.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
verify.codeFix({
1616
description: "Initialize property 'foo' in the constructor",
1717
index: 0,
18-
// TODO: GH#18445
1918
newFileContent: `class C {
2019
constructor() {
2120
this.foo = undefined;

tests/cases/fourslash/codeFixAddMissingMember5.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
verify.codeFix({
1414
description: "Initialize static property 'foo'",
1515
index: 0,
16-
// TODO: GH#18445
1716
newFileContent: `class C {
1817
static method() {
1918
()=>{ this.foo === 10 };

tests/cases/fourslash/codeFixAddMissingMember6.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
verify.codeFix({
1414
description: "Initialize property 'foo' in the constructor",
1515
index: 0,
16-
// TODO: GH#18445
1716
newFileContent: `class C {
1817
constructor() {
1918
this.foo = undefined;

tests/cases/fourslash/codeFixAddMissingMember7.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
verify.codeFix({
1212
description: "Initialize static property 'foo'",
1313
index: 2,
14-
// TODO: GH#18445
1514
newFileContent: `class C {
1615
static p = ()=>{ this.foo === 10 };
1716
}

tests/cases/fourslash/codeFixAddMissingMember_all.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
verify.codeFixAll({
1212
fixId: "addMissingMember",
1313
newFileContent:
14-
// TODO: GH#18445
1514
`class C {
1615
x: number;
1716
y(): any {

tests/cases/fourslash/codeFixAddMissingMember_all_js.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
verify.codeFixAll({
1717
fixId: "addMissingMember",
1818
newFileContent:
19-
// TODO: GH#18445
2019
`class C {
2120
y() {
2221
throw new Error("Method not implemented.");

0 commit comments

Comments
 (0)