TypeScript/tests/cases/fourslash/codeFixUseDefaultImport_all.ts
Andy 3e32e15895
Add 'fixAllDescription' property to CodeFixAction (#22616)
* Add 'fixAllDescription' property to CodeFixAction

* Code review

* Add to protocol

* Make fixAllDescription be just a string
2018-03-27 18:21:21 -07:00

21 lines
438 B
TypeScript

/// <reference path='fourslash.ts' />
// @allowSyntheticDefaultImports: true
// @Filename: /a.d.ts
////declare const x: number;
////export = x;
// @Filename: /b.ts
////import * as [|a1|] from "./a";
////import [|a2|] = require("./a");
goTo.file("/b.ts");
verify.codeFixAll({
fixId: "useDefaultImport",
fixAllDescription: "Convert all to default imports",
newFileContent:
`import a1 from "./a";
import a2 from "./a";`,
});