* Improve testing of code fixes, and improve diagnostic messages * Disambiguate `newFileContent` from `newRangeContent`
16 lines
285 B
TypeScript
16 lines
285 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////class C {
|
|
//// foo: number;
|
|
//// constructor() {[|
|
|
//// foo = 10;
|
|
//// |]}
|
|
////}
|
|
|
|
verify.codeFix({
|
|
description: "Add 'this.' to unresolved variable.",
|
|
newRangeContent: `
|
|
this.foo = 10;
|
|
`
|
|
});
|