Skip to content

Auto import suggestions heavily slows intellisense #32174

Open
@ProTip

Description

@ProTip

TypeScript Version: 3.6.0-dev.20190628

Search Terms: auto import auto import performance

Code

Enter this into a blank TypeScript project in VSCode:

import {S3} from 'aws-sdk'

const a: s

Expected behavior:
Intellisense suggestions to pop up in under 500ms.

Actual behavior:
2+ seconds for the suggestions to appear.

After banging my head for a few hours trying to get to the bottom of intellisense slowness(next, insiders, old versions, etc, etc) I narrowed this down to auto import suggestions; disabling this feature removes the delay. I believe tsserver provides this service to VSCode? The aws-sdk does have a huge type surface area..

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions