Skip to content

Import statement completions don't work if in front of certain statements #45158

Open

Description

Bug Report

🔎 Search Terms

  • suggest / suggestions
  • complete / completions
  • import statement completions
  • completionInfo

🕗 Version & Regression Information

4.4.0-dev.20210722

Not a regression

💻 Code

For a JS file:

import 

join('a', 'b')

Start typing join after import to add an import for the path node module

🙁 Actual behavior

No suggestions returned

🙂 Expected behavior

We'd expect import statement suggestions for join. If I comment out join('a', 'b'), I see this working as expected

The specific response is for the completionInfo request is:

Success: false . Message: No content available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Fix AvailableA PR has been opened for this issueHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions