Skip to content

Add missing member fix should work for missing function #26217

Closed

Description

TypeScript Version: 3.1.0-dev.20180804

Code

class C {}
new C().m();

f();

namespace N { export const x = 0; }
N.f();

import * as m from "./mod";
m.f();

Expected behavior:

Codefix for both m() and for every f().

Actual behavior:

Codefix for only m().

Activity

  1. ghost added
    Suggestion
    on Aug 6, 2018
  2. ghost added
    Domain: LS: Quick Fixes
    on Aug 6, 2018
  3. lukaszpolowczyk commented on Mar 5, 2021

    @lukaszpolowczyk

    Duplicate of my issue:
    microsoft/vscode#44837

    My issue was closed as "* out-of-scope", and here someone is doing it (almost completely).

    Matt Bierner (@mjbvz) I am glad that this has been realized.
    But maybe the original needs to be marked?

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

    CommittedDomain: LS: Quick FixesSuggestion

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions