Skip to content

Treat 'default' as keyword while auto-importing #19841

Closed

Description

@mjbvz

From @giridharangm on November 5, 2017 1:19

  • VSCode Version: Code - Insiders 1.18.0-insider (098bb77, 2017-11-04T04:43:03.436Z)
  • OS Version: Windows_NT x64 10.0.15063
  • Extensions:
Extension Author (truncated) Version
vscode-eslint dba 1.4.2
debugger-for-chrome msj 3.5.0
vscode-icons rob 7.17.0

(1 theme extensions excluded)


When tried to create a default export, VSCode doesn't recognize default as the keyword, instead it shows the default(s) from other components.

Like:

image

Copied from original issue: microsoft/vscode#37655

Activity

  1. removed their assignment
    on Nov 8, 2017
  2. added
    VS Code Tracked
    and removed on Nov 8, 2017
  3. added
    Domain: LS: Completion Lists
    on Nov 8, 2017
  4. mhegazy commented on Nov 8, 2017

    @mhegazy
    Contributor

    default should never show in the completion list.. we should use the containing file name instead.. we should also make sure the quickfix behaves the same way if the module file name is used, it can import the default for it..

    let's see if we can get this for TS 2.6.2

  5. ghost closed this as completedin #19875on Nov 9, 2017
  6. locked and limited conversation to collaborators on Jun 14, 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

    BugDomain: LS: Completion ListsVS Code Tracked

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions