Skip to content

@types, VSCode and Typescript Code Completion #1715

Closed
@origin1tech

Description

@origin1tech

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    El Capitan
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
    angular-cli: 1.0.0-beta.11-webpack.2
    node: 4.4.4
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
    None
  4. The log given by the failure. Normally this include a stack trace and some
    more information.
    None
  5. Mention any other details that might be useful.

Code completion for @types seems to be hit or miss within VSCode. For example moment works fine and is recognized when imported and you get full code completion of methods etc. Whereas lodash does not.

The tsconfig.json seems to be defined correctly with the typeRoots and if you create a reference inline within the file typescript resolves it fine and you get code completion/intellisense.


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions