Skip to content

Import fix for export = #25135

Closed
Closed
@ghost

Description

TypeScript Version: 3.0.0-dev.20180621

Code

/// <reference path="fourslash.ts" />

// @Filename: /a.d.ts
////declare function a(): void;
////export = a;

// @Filename: /b.ts
////a;

goTo.file("/b.ts");
verify.importFixAtPosition(["?"]);

Expected behavior:

Get an import fix.

Actual behavior:

No fix. getAllReExportingModules doesn't handle this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Quick FixesEditor-provided fixes, often called code actions.FixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions