Skip to content

Import fix for export = #25135

Closed
Closed

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.

Activity

  1. ghost added
    BugA bug in TypeScript
    on Jun 21, 2018
  2. ghost added
    Domain: LS: Quick FixesEditor-provided fixes, often called code actions.
    on Jun 21, 2018
  3. ghost added
    FixedA PR has been merged for this issue
    on Jul 17, 2018
  4. ghost closed this as completedin #25708on Aug 28, 2018
  5. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: 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