Skip to content

Improved types map behavior #16685

Closed
Closed

Description

  • Add new tsserver commandline option --typesMapLocation filename.json
  • Types map looks like this:
{
  "typesMap": {
    /* the current hardcoded thing */
  }
  "simpleMap": ["jquery", "lodash", "leftpad", ...]
}
  • Apply this logic to configured and inferred projects (not just external)

/cc Bill Ticehurst (@billti)

Activity

  1. billti commented on Jun 26, 2017

    @billti
    Member

    Sounds good. Should only be used when Auto-Type-Acquisition is on.

  2. DanielRosenwasser commented on Jul 27, 2017

    @DanielRosenwasser
    Member

    For the benefit of others on the team, what does this do?

  3. RyanCavanaugh commented on Jul 27, 2017

    @RyanCavanaugh
    MemberAuthor

    Two main things:

    • Allows users to drop in a new typeMap.json file if they're having problems with large .js files messing with their VS memory consumption
    • Fixes an issue where ATA wasn't working on .min.js files
  4. 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

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions