Skip to content

The typescript language service in VS doesn't consider tsconfig's types entry #9740

Closed
@Tragetaschen

Description

@Tragetaschen

TypeScript Version: 2.0.0-beta / "2.0.0.0" in Help -> About

Code

"devDependencies": {
  "@types/jquery": "1.10.27",
  "typescript": "2.0.0"
}
{
    "compilerOptions": {
        "types": ["jquery"]
    }
}
var a: JQuery;

Running tsc on the command line works as expected. When I remove for example the "jquery" entry from the types array in tsconfig.json I get the appropriate error for a.

Expected behavior:
Opening the ts file in Visual Studio 2015 with 2.0.0-beta installed should show no errors.

Actual behavior:
VS complains about the type JQuery not known. When I manually add a

/// <reference types="jquery" />

VS stops complaining.

Metadata

Metadata

Assignees

No one assigned

    Labels

    @typesRelates to working with .d.ts files (declaration/definition files) from DefinitelyTypedBugA bug in TypeScriptVisual StudioIntegration with Visual Studio

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions