c60ff902f1
Fixes #15515
45 lines
No EOL
1.4 KiB
TypeScript
45 lines
No EOL
1.4 KiB
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @Filename: /a.ts
|
|
////"use strict";
|
|
////export class A { }
|
|
|
|
// @Filename: /b.ts
|
|
////"use strict";
|
|
////export class B extends A { }
|
|
|
|
// @Filename: /c.ts
|
|
/////*---------------------------------------------------------------------------------------------
|
|
//// * Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//// * Licensed under the MIT License. See License.txt in the project root for license information.
|
|
//// *--------------------------------------------------------------------------------------------*/
|
|
////"use strict";
|
|
////export class B extends A { }
|
|
|
|
goTo.file("/b.ts");
|
|
verify.codeFixAll({
|
|
fixId: "fixMissingImport",
|
|
fixAllDescription: "Add all missing imports",
|
|
newFileContent:
|
|
`"use strict";
|
|
|
|
import { A } from "./a";
|
|
|
|
export class B extends A { }`,
|
|
});
|
|
|
|
goTo.file("/c.ts");
|
|
verify.codeFixAll({
|
|
fixId: "fixMissingImport",
|
|
fixAllDescription: "Add all missing imports",
|
|
newFileContent:
|
|
`/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
"use strict";
|
|
|
|
import { A } from "./a";
|
|
|
|
export class B extends A { }`,
|
|
}); |