Skip to content

"from" keyword displaying incorrect completions #54818

@armanio123

Description

@armanio123

Bug Report

When typing an import statement the from keyword is not shown on the completion list correctly. Note that this only happens in js and jsx files.

Related item: https://developercommunity.visualstudio.com/t/Javascript:-from-keyword-overwritten-b/10383619

image

🔎 Search Terms

completion import from

💻 Code

file.js:

import Foo fro| // <--- At this point fromBar is being suggested by completions.

function fromBar() {}

🙁 Actual behavior

from keyword on an import statement shows any valid completion that contains "from".

🙂 Expected behavior

Only the from keyword should be displayed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions