Skip to content

js auto-import bug #19919

Closed
Closed

Description

@mjbvz

From dev-fang on November 9, 2017 18:9

  • VSCode Version: 1.18.0
  • OS Version: Windows 10

Js auto import works well with
export default class className {}
doesn't work with
class className{}
export default className

Steps to Reproduce:

  1. Create a file called test1.js
  2. Type in
    class Test1{}
    export default className
  3. Create a file called test2.js
  4. Type in new Test1, the auto import suggestion doesn't show up

Reproduces without extensions: Yes

Copied from original issue: microsoft/vscode#37974

Activity

  1. added
    VS Code Tracked
    and removed on Nov 10, 2017
  2. removed their assignment
    on Nov 10, 2017
  3. mhegazy commented on Nov 10, 2017

    @mhegazy
    Contributor

    Worth noting that with #19883 in place, if the file name is the same as the class name (className in this example) it will work.

  4. added
    Suggestion
    Domain: LS: Completion Lists
    on Nov 10, 2017
  5. DanielRosenwasser commented on Nov 11, 2017

    @DanielRosenwasser
    Member

    This also seems to be a bug with the quick fix as well.

  6. ghost closed this as completedon Jan 4, 2018
  7. ghost added
    Duplicate
    on Jan 4, 2018
  8. locked and limited conversation to collaborators on Jul 3, 2018
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

    Domain: LS: Completion ListsDuplicateSuggestionVS Code Tracked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions