Skip to content

import fix / autocomplete requires type checking JS/JSX #36134

Open
@hedgepigdaniel

Description

@hedgepigdaniel

Extracted issue from https://code.visualstudio.com/docs/nodejs/working-with-javascript#_type-checking-javascript

Auto complete of imports in JS/JSX files does not work properly unless type checking of JS/JSX files is explicitly enabled. This is counter intuitive, and forces the user to endure potentially unwanted type errors in order to have working autocomplete of imports.

It's extra confusing because the autocomplete does work for symbols exported from modules that are already imported (so it seems like it should work but is flaky). It took me a long time to find this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions