Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic typings install does not trigger project refresh #27670

Open
mjbvz opened this issue Oct 9, 2018 · 1 comment
Open

Automatic typings install does not trigger project refresh #27670

mjbvz opened this issue Oct 9, 2018 · 1 comment
Labels
Bug A bug in TypeScript
Milestone

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Oct 9, 2018

From microsoft/vscode#59436

TypeScript Version: 3.2.0-dev.20181009

Search Terms:

  • ATA, automatic typings acquisition

Code
Tested on macos with npm 6.4.1.

  1. Clear the typings cache.
  2. For a new JS project with contents:

package.json

{
    "dependencies": {
        "express": "4.16.3"
    }
}

main.js

import * as express from "express"
 
let a = express()
  1. Open the project in vscode

  2. Run npm install

  3. Open main.js

  4. Notice the ... suggestion on the import stating could not find a declaration file for module 'express'

  5. Check ATA directory and see that express typings have been installed

Bug
The ... suggestion is never removed and we fail to get proper typings for express. After reloading the javascript project we do start seeing the correct suggestions

@mjbvz mjbvz added the VS Code Tracked There is a VS Code equivalent to this issue label Oct 9, 2018
@sheetalkamat
Copy link
Member

@DanielRosenwasser , @RyanCavanaugh Currently there is discrepancy between the way error is generated and typing requests queueing. ATA happens only if module is not resolved (to js or ts file) but error is generated if the resolution is not ts or json file. Which behavior is correct?

@mjbvz mjbvz removed VS Code Tracked There is a VS Code equivalent to this issue labels Nov 1, 2018
@weswigham weswigham added Needs Proposal This issue needs a plan that clarifies the finer details of how it could be implemented. Domain: TSServer Issues related to the TSServer Bug A bug in TypeScript labels Nov 1, 2018
@rbuckton rbuckton added this to the TypeScript 3.4.0 milestone Dec 15, 2018
@RyanCavanaugh RyanCavanaugh removed Domain: TSServer Issues related to the TSServer Needs Proposal This issue needs a plan that clarifies the finer details of how it could be implemented. labels Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

5 participants